{"version":3,"sources":["webpack:///./src/views/FAQ/Enquiry/index.vue?ac02","webpack:///./src/views/FAQ/Enquiry/index.vue","webpack:///./src/views/FAQ/Enquiry/index.vue?bedb","webpack:///./src/views/FAQ/Enquiry/index.vue?1c8d","webpack:///./src/API/faq.ts"],"names":["_withScopeId","n","_hoisted_1","id","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","render","_ctx","_cache","$props","$setup","$data","$options","_component_Breadcrumb","_component_a_input","_component_a_space","_component_a_select_option","_component_a_select","_component_a_button","_component_a_table","_component_a_pagination","dataSource","name","direction","size","spaceSize","default","value","question","$event","placeholder","_","category","ref","allowClear","categoryList","item","key","title","type","$btnPermissions","onClick","reset","handleSearch","rowClassName","record","index","columns","pagination","scroll","x","tableWidth","y","colHeight","action","view","total","onChange","pageChange","onShowSizeChange","sizeChange","pageSize","pageIndex","pageSizeOptions","buildOptionText","props","setup","router","undefined","search","params","then","res","content","totalElements","dataIndex","align","width","ellipsis","slots","customRender","faqId","push","reduce","totalWidth","col","calculateHeight","table","document","getElementsByClassName","clinetHeight","body","clientHeight","top","getBoundingClientRect","window","addEventListener","page","__exports__","findAllFaq","findAllDealerFaq","deleteFaq","getFaqInfo","genFaqId","downloadFile","saveDraft","publish","getFaqRule","getFaqUser","getConfigrateUser","getSavedUserAndRole","deleteUser","deleteRule","clearUserAndRule","saveUserAndRule","getAllDealerType"],"mappings":"yIAEMA,EAAe,SAAAC,GAAK,OAAC,yBAAa,mBAAmBA,EAAEA,IAAI,0BAAcA,GACzEC,EAAa,CACjBC,GAAI,eACJC,MAAO,sBAEHC,EAAa,CACjBF,GAAI,eACJC,MAAO,wBAEHE,EAA2BN,GAAa,WAAmB,uCAAoB,QAAS,CAAEI,MAAO,SAAW,SAAU,MACtHG,EAA2BP,GAAa,WAAmB,uCAAoB,QAAS,CAAEI,MAAO,SAAW,YAAa,MACzHI,EAAa,CAAEJ,MAAO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AAqCA,IAG7CqH,EAAa,SAACrH,GACzB,OAAO,eAAY,qCAAqCA,IAG7CsH,EAAmB,SAACtH,GAC/B,OAAO,eAAY,+BAA+BA,IAGvCuH,EAAkB,SAAC5C,GAC9B,YAD8B,IAAAA,MAAA,IACvB,eAAU,2CAA4CA,IAGlD6C,EAAmB,WAC9B,OAAO,eAAS,oC","file":"js/chunk-450d0654.593e3955.js","sourcesContent":["import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createBlock as _createBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-a3b3c676\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n id: \"dealer-query\",\n class: \"dealer_query-outer\"\n}\nconst _hoisted_2 = {\n id: \"dealer-query\",\n class: \"dealer_query-wrapper\"\n}\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \"Title\", -1))\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \"Category\", -1))\nconst _hoisted_5 = { class: \"function-btn\" }\nconst _hoisted_6 = /*#__PURE__*/_createTextVNode(\"Reset\")\nconst _hoisted_7 = /*#__PURE__*/_createTextVNode(\"Search\")\nconst _hoisted_8 = { class: \"dealer_query-data\" }\nconst _hoisted_9 = /*#__PURE__*/_createTextVNode(\"View\")\nconst _hoisted_10 = { class: \"pagination-container d-f justify-e\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Breadcrumb = _resolveComponent(\"Breadcrumb\")!\n const _component_a_input = _resolveComponent(\"a-input\")!\n const _component_a_space = _resolveComponent(\"a-space\")!\n const _component_a_select_option = _resolveComponent(\"a-select-option\")!\n const _component_a_select = _resolveComponent(\"a-select\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_a_pagination = _resolveComponent(\"a-pagination\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createVNode(_component_Breadcrumb, { dataSource: [\n {\n name: 'Help Center Enquiry',\n },\n ] }),\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_a_space, {\n class: \"dealer-query_form\",\n direction: \"vertical\",\n size: _ctx.spaceSize\n }, {\n default: _withCtx(() => [\n _hoisted_3,\n _createVNode(_component_a_input, {\n value: _ctx.question,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.question) = $event)),\n placeholder: \"Please Input\"\n }, null, 8, [\"value\"])\n ]),\n _: 1\n }, 8, [\"size\"]),\n _createVNode(_component_a_space, {\n class: \"dealer-query_form\",\n direction: \"vertical\",\n size: _ctx.spaceSize\n }, {\n default: _withCtx(() => [\n _hoisted_4,\n _createVNode(_component_a_select, {\n value: _ctx.category,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.category) = $event)),\n ref: \"select\",\n placeholder: \"Please Select\",\n class: \"sel-inp-size\",\n allowClear: \"\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.categoryList, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: item.id,\n key: item.id,\n title: item.type\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item.type), 1)\n ]),\n _: 2\n }, 1032, [\"value\", \"title\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\"])\n ]),\n _: 1\n }, 8, [\"size\"]),\n _createElementVNode(\"div\", _hoisted_5, [\n _createVNode(_component_a_space, {\n size: _ctx.spaceSize,\n direction: \"horizontal\"\n }, {\n default: _withCtx(() => [\n (_ctx.$btnPermissions('FAQ Enquiry Reset'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n onClick: _ctx.reset\n }, {\n default: _withCtx(() => [\n _hoisted_6\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.$btnPermissions('FAQ Enquiry Search'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 1,\n type: \"primary\",\n onClick: _ctx.handleSearch\n }, {\n default: _withCtx(() => [\n _hoisted_7\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"size\"])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _createVNode(_component_a_table, {\n class: \"dealerManagementTable\",\n rowClassName: \n (record, index) => (index % 2 === 1 ? 'table-striped' : null)\n ,\n dataSource: _ctx.dataSource,\n columns: _ctx.columns,\n pagination: false,\n scroll: {\n x: _ctx.tableWidth,\n y: _ctx.colHeight,\n }\n }, {\n action: _withCtx(({ record }) => [\n _createElementVNode(\"span\", null, [\n (_ctx.$btnPermissions('FAQ Enquiry View'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n type: \"link\",\n onClick: ($event: any) => (_ctx.view(record.id))\n }, {\n default: _withCtx(() => [\n _hoisted_9\n ]),\n _: 2\n }, 1032, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n }, 8, [\"rowClassName\", \"dataSource\", \"columns\", \"scroll\"]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createVNode(_component_a_pagination, {\n \"show-size-changer\": \"\",\n \"show-quick-jumper\": \"\",\n total: _ctx.pagination.total,\n \"show-total\": (total) => `Total ${_ctx.pagination.total} items`,\n onChange: _ctx.pageChange,\n onShowSizeChange: _ctx.sizeChange,\n pageSize: _ctx.pagination.pageSize,\n \"onUpdate:pageSize\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.pagination.pageSize) = $event)),\n pageIndex: _ctx.pagination.pageIndex,\n \"onUpdate:pageIndex\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.pagination.pageIndex) = $event)),\n pageSizeOptions: ['10', '20', '30', '40', '50']\n }, {\n buildOptionText: _withCtx((props) => [\n _createElementVNode(\"span\", null, _toDisplayString(props.value) + \"/page\", 1)\n ]),\n _: 1\n }, 8, [\"total\", \"show-total\", \"onChange\", \"onShowSizeChange\", \"pageSize\", \"pageIndex\"])\n ])\n ])\n ])\n ], 64))\n}","\nimport { defineComponent, ref, reactive, nextTick, onMounted } from \"vue\";\nimport { useRouter } from \"vue-router\";\nimport { UndefStr } from \"../types\";\nimport { findAllDealerFaq } from \"@/API/faq\";\nexport default defineComponent({\n setup() {\n const router = useRouter();\n const spaceSize = 6;\n const question = ref(undefined);\n const category = ref(undefined);\n const categoryList = ref([\n { type: \"Technical Support\", id: 1 },\n { type: \"Business Treatment\", id: 2 },\n ]);\n //重置\n const reset = () => {\n question.value = undefined;\n category.value = undefined;\n };\n //分页组件\n const pagination = reactive({\n total: 0,\n pageIndex: 0,\n pageSize: 10,\n });\n //查询\n const search = (pageIndex: number, pageSize: number) => {\n const params = {\n question: question.value,\n category: category.value,\n pageIndex,\n pageSize,\n };\n findAllDealerFaq(params).then((res: any) => {\n dataSource.value = res.content;\n pagination.total = res.totalElements;\n });\n };\n\n const handleSearch = () => {\n pagination.pageIndex = 1;\n search(1, pagination.pageSize);\n };\n search(1, pagination.pageSize);\n const columns = [\n {\n title: \"Category\",\n dataIndex: \"categoryEn\",\n align: \"center\",\n width: 150,\n key: \"1\",\n },\n {\n title: \"Title\",\n dataIndex: \"question\",\n align: \"center\",\n width: 200,\n key: \"2\",\n ellipsis: true,\n },\n {\n title: \"Publish Date\",\n dataIndex: \"publishDate\",\n align: \"center\",\n width: 150,\n key: \"3\",\n },\n {\n title: \"Operation\",\n dataIndex: \"action\",\n align: \"center\",\n width: 200,\n key: \"4\",\n slots: { customRender: \"action\" },\n },\n ];\n //预览\n const view = (faqId: string) => {\n router.push({\n name: \"FAQ View\",\n params: {\n faqId,\n },\n });\n };\n\n const dataSource = ref([]);\n const tableWidth = columns.reduce((totalWidth: number, col: any) => {\n return totalWidth + col.width;\n }, 0);\n const colHeight = ref(500);\n const calculateHeight = () => {\n const table = document.getElementsByClassName(\"dealerManagementTable\")[0];\n const clinetHeight = document.body.clientHeight;\n const top = table.getBoundingClientRect().top;\n colHeight.value = clinetHeight - top - 130;\n };\n nextTick(() => {\n calculateHeight();\n });\n onMounted(() => {\n window.addEventListener(\"resize\", calculateHeight);\n });\n //分页逻辑\n const pageChange = (page: number, pageSize: number) => {\n pagination.pageIndex = page > 0 ? page - 1 : 0;\n pagination.pageSize = pageSize;\n search(pagination.pageIndex, pagination.pageSize);\n };\n const sizeChange = (page: number, pageSize: number) => {\n pagination.pageIndex = page > 0 ? page - 1 : 0;\n pagination.pageSize = pageSize;\n search(pagination.pageIndex, pagination.pageSize);\n };\n\n return {\n spaceSize,\n question,\n category,\n categoryList,\n reset,\n search,\n view,\n columns,\n dataSource,\n tableWidth,\n colHeight,\n pagination,\n pageChange,\n sizeChange,\n handleSearch,\n };\n },\n});\n","import { render } from \"./index.vue?vue&type=template&id=a3b3c676&scoped=true&ts=true\"\nimport script from \"./index.vue?vue&type=script&lang=ts\"\nexport * from \"./index.vue?vue&type=script&lang=ts\"\n\nimport \"./index.vue?vue&type=style&index=0&id=a3b3c676&lang=scss&scoped=true\"\n\nimport exportComponent from \"/app/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a3b3c676\"]])\n\nexport default __exports__","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./index.vue?vue&type=style&index=0&id=a3b3c676&lang=scss&scoped=true\"","import { fetchGet, fetchPost, fetchPut, fetchDelete } from \"./index\";\n\nexport const findAllFaq = (params: {}): Promise => {\n return fetchGet(\"usapi/faq/findall\", { params: params });\n};\nexport const findAllDealerFaq = (params: {}): Promise => {\n return fetchGet(\"usapi/faq/dealer_page\", { params: params });\n};\nexport const deleteFaq = (id: string): Promise => {\n return fetchPut(`usapi/faq/deleteFaq?id=${id}`);\n};\n\nexport const getFaqInfo = (params = {}): Promise => {\n return fetchGet(\"usapi/faq/findfaqbyid\", { params });\n};\nexport const genFaqId = (): Promise => {\n return fetchGet(\"usapi/faq/generate_faq_id\");\n};\nexport const downloadFile = (id: string): Promise => {\n return fetchGet(`usapi/faq/downloadUrl/${id}`);\n};\n\nexport const saveDraft = (params = {}): Promise => {\n return fetchPost(\"usapi/faq/saveFaq\", params);\n};\n\n// edit faq页面publish\nexport const publish = (id: string): Promise => {\n return fetchPost(`usapi/faq/configurate/publish/${id}`);\n};\n\nexport const getFaqRule = (params = {}): Promise => {\n return fetchGet(\"/usapi/faq/configurate/page/rule\", { params });\n};\n\nexport const getFaqUser = (params = {}): Promise => {\n return fetchGet(\"/usapi/faq/configurate/page/user\", { params });\n};\n\n// configurate user分页\nexport const getConfigrateUser = (params = {}): Promise => {\n return fetchPost(\"usapi/faq/configurate/page/user\", params);\n};\n\n// configurate页面显示user and rule\nexport const getSavedUserAndRole = (params = {}): Promise => {\n return fetchGet(\"usapi/faq/configurate/page/user_and_rule\", { params });\n};\n\nexport const deleteUser = (id: string): Promise => {\n return fetchDelete(`usapi/faq/configurate/delete_user/${id}`);\n};\n\nexport const deleteRule = (id: string): Promise => {\n return fetchDelete(`usapi/faq/configurate/delete_rule/${id}`);\n};\n\nexport const clearUserAndRule = (id: string): Promise => {\n return fetchDelete(`usapi/faq/configurate/clear/${id}`);\n};\n\nexport const saveUserAndRule = (params = {}): Promise => {\n return fetchPost(\"usapi/faq/configurate/save_user_and_rule\", params);\n};\n\nexport const getAllDealerType = (): Promise => {\n return fetchGet(\"/dapi/noAuth/dealer/dealerType\");\n};\n"],"sourceRoot":""}