{"version":3,"sources":["webpack:///./src/API/faq.ts","webpack:///./src/assets/images/claim/rect.png","webpack:///./src/views/FAQ/DealerView/index.vue?59a9","webpack:///./src/views/FAQ/DealerView/index.vue","webpack:///./src/views/FAQ/DealerView/index.vue?d3ad","webpack:///./src/views/FAQ/DealerView/index.vue?2df2"],"names":["findAllFaq","params","findAllDealerFaq","deleteFaq","id","getFaqInfo","genFaqId","downloadFile","saveDraft","publish","getFaqRule","getFaqUser","getConfigrateUser","getSavedUserAndRole","deleteUser","deleteRule","clearUserAndRule","saveUserAndRule","getAllDealerType","module","exports","_withScopeId","n","_hoisted_1","class","_hoisted_2","src","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","style","_hoisted_12","_hoisted_13","render","_ctx","_cache","$props","$setup","$data","$options","_component_Breadcrumb","_component_a_space","dataSource","name","path","direction","size","default","category","_","question","answer","fileList","file","index","key","onClick","$event","downloadAttachment","docName","fileName","setup","route","faqId","undefined","documentId","then","res","window","open","value","files","__exports__"],"mappings":"kHAAA,klBAEaA,EAAa,SAACC,GACzB,OAAO,eAAS,oBAAqB,CAAEA,OAAQA,KAEpCC,EAAmB,SAACD,GAC/B,OAAO,eAAS,wBAAyB,CAAEA,OAAQA,KAExCE,EAAY,SAACC,GACxB,OAAO,eAAS,0BAA0BA,IAG/BC,EAAa,SAACJ,GACzB,YADyB,IAAAA,MAAA,IAClB,eAAS,wBAAyB,CAAEA,OAAM,KAEtCK,EAAW,WACtB,OAAO,eAAS,8BAELC,EAAe,SAACH,GAC3B,OAAO,eAAS,yBAAyBA,IAG9BI,EAAY,SAACP,GACxB,YADwB,IAAAA,MAAA,IACjB,eAAU,oBAAqBA,IAI3BQ,EAAU,SAACL,GACtB,OAAO,eAAU,iCAAiCA,IAGvCM,EAAa,SAACT,GACzB,YADyB,IAAAA,MAAA,IAClB,eAAS,mCAAoC,CAAEA,OAAM,KAGjDU,EAAa,SAACV,GAC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FU,+BAAgB,CAC7B6B,MAAA,WACE,IAAMC,EAAQ,iBACRC,EAAQD,EAAMnE,OAAOoE,MACrBf,EAAW,sBAAcgB,GACzBd,EAAW,iBAAI,IACfC,EAAS,iBAAI,IACbC,EAAW,iBAAI,IACfM,EAAqB,SAACL,GAC1B,eAAaA,EAAKY,YAAcZ,EAAKvD,IAAIoE,MAAK,SAACC,GAC7CC,OAAOC,KAAKF,OAahB,OAVA,wBAAU,WACJJ,GACF,eAAW,CAAEjE,GAAIiE,IAASG,MAAK,SAACC,GAC9BhB,EAAOmB,MAAQH,EAAIhB,OACnBH,EAASsB,MAAQH,EAAInB,SACrBE,EAASoB,MAAQH,EAAIjB,SACrBE,EAASkB,MAAQH,EAAII,YAIpB,CACLvB,SAAQ,EACRE,SAAQ,EACRC,OAAM,EACNC,SAAQ,EACRM,mBAAkB,M,iCC1BxB,MAAMc,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASvC,GAAQ,CAAC,YAAY,qBAE1E,gB,kCCTf","file":"js/chunk-672cecfc.12572475.js","sourcesContent":["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","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAQCAYAAADTasWKAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAA6ADAAQAAAABAAAAEAAAAABTVpExAAAARklEQVQIHWNgWPf+GcO6Dx0MV/+zsTD8Z5BkYPhfznDzIwMTAxz8j0NwgCoQHKAK+nMYGZ4jWcq4iIUBKMLAwLiIQZ2/DgAi2RE9IOkxIAAAAABJRU5ErkJggg==\"","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/images/claim/rect.png'\n\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-6982245e\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n id: \"dealerView\",\n class: \"dealerView-wrapper--outer\"\n}\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"dealerView-header\" }, [\n /*#__PURE__*/_createElementVNode(\"section\", null, [\n /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_0,\n class: \"rect\"\n }),\n /*#__PURE__*/_createElementVNode(\"strong\", { class: \"wrap-title\" }, \"查看\")\n ])\n], -1))\nconst _hoisted_3 = { class: \"dealerView-wrapper--inner\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \"分类\", -1))\nconst _hoisted_5 = { class: \"div-input\" }\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \"标题\", -1))\nconst _hoisted_7 = { class: \"div-input\" }\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \"描述\", -1))\nconst _hoisted_9 = { class: \"div-input\" }\nconst _hoisted_10 = { class: \"upload\" }\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", null, [\n /*#__PURE__*/_createElementVNode(\"span\", { style: {\"margin-right\":\"8px\"} }, \"附件\")\n], -1))\nconst _hoisted_12 = { class: \"files\" }\nconst _hoisted_13 = [\"onClick\"]\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_space = _resolveComponent(\"a-space\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createVNode(_component_Breadcrumb, { dataSource: [\n {\n name: '帮助中心查询',\n path: '/faq/dealerManagement',\n },\n {\n name: '查看',\n },\n ] }),\n _createElementVNode(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(_component_a_space, {\n class: \"categroy\",\n direction: \"vertical\",\n size: 6\n }, {\n default: _withCtx(() => [\n _hoisted_4,\n _createElementVNode(\"div\", _hoisted_5, _toDisplayString(_ctx.category), 1)\n ]),\n _: 1\n }),\n _createVNode(_component_a_space, {\n class: \"question\",\n direction: \"vertical\",\n size: 6\n }, {\n default: _withCtx(() => [\n _hoisted_6,\n _createElementVNode(\"div\", _hoisted_7, _toDisplayString(_ctx.question), 1)\n ]),\n _: 1\n }),\n _createVNode(_component_a_space, {\n class: \"answer\",\n direction: \"vertical\",\n size: 6\n }, {\n default: _withCtx(() => [\n _hoisted_8,\n _createElementVNode(\"div\", _hoisted_9, _toDisplayString(_ctx.answer), 1)\n ]),\n _: 1\n }),\n _createElementVNode(\"div\", _hoisted_10, [\n _hoisted_11,\n _createElementVNode(\"div\", _hoisted_12, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.fileList, (file, index) => {\n return (_openBlock(), _createElementBlock(\"span\", {\n class: \"file\",\n key: index\n }, [\n _createElementVNode(\"span\", {\n onClick: ($event: any) => (_ctx.downloadAttachment(file)),\n style: {\"cursor\":\"pointer\"}\n }, _toDisplayString(file.docName || file.fileName), 9, _hoisted_13)\n ]))\n }), 128))\n ])\n ])\n ])\n ])\n ], 64))\n}","\nimport { defineComponent, onMounted, ref } from \"vue\";\nimport { useRoute } from \"vue-router\";\nimport { UndefStr } from \"../types\";\nimport { getFaqInfo, downloadFile } from \"@/API/faq\";\nexport default defineComponent({\n setup() {\n const route = useRoute();\n const faqId = route.params.faqId;\n const category = ref(undefined);\n const question = ref(\"\");\n const answer = ref(\"\");\n const fileList = ref([]);\n const downloadAttachment = (file: any) => {\n downloadFile(file.documentId || file.id).then((res: any) => {\n window.open(res);\n });\n };\n onMounted(() => {\n if (faqId) {\n getFaqInfo({ id: faqId }).then((res: any) => {\n answer.value = res.answer;\n category.value = res.category;\n question.value = res.question;\n fileList.value = res.files;\n });\n }\n });\n return {\n category,\n question,\n answer,\n fileList,\n downloadAttachment,\n };\n },\n});\n","import { render } from \"./index.vue?vue&type=template&id=6982245e&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=6982245e&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-6982245e\"]])\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=6982245e&lang=scss&scoped=true\""],"sourceRoot":""}