{"version":3,"sources":["webpack:///./src/views/Guidang/GuiDangIndex/index.vue?e29e","webpack:///./src/views/Guidang/components/Pagination.vue?a1b4","webpack:///./src/views/Guidang/GuiDangIndex/index.vue?ccd1","webpack:///./src/views/Guidang/GuiDangIndex/useFetchCommon.ts","webpack:///./src/API/rvapi.ts","webpack:///./src/views/Guidang/components/Pagination.vue?fcea","webpack:///./src/views/Guidang/components/Pagination.vue","webpack:///./src/views/Guidang/components/Pagination.vue?25d2","webpack:///./src/views/Guidang/GuiDangIndex/blobDownload.ts","webpack:///./src/views/Guidang/GuiDangIndex/index.vue","webpack:///./src/views/Guidang/GuiDangIndex/index.vue?efd9"],"names":["_withScopeId","n","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","render","_ctx","_cache","$props","$setup","$data","$options","_component_a_select","_component_a_input","_component_a_button","_component_a_table","_component_Pagination","_component_main_wrapper","className","default","value","type","$event","options","typeList","style","allowClear","name","onClick","handlerReset","_","handlerSearch","downAll","align","dataSource","data","bordered","scroll","y","tableHeight","x","columns","pagination","rowKey","item","index","selectedRowKeys","onChange","onSelectChange","operation","record","downLoadFile","handlerPaginationChange","current","num","onShowSizeChange","handlerShowSizeChange","pageSize","size","total","useFetchCommon","parameter","params","sizi","initData","refreshFetch","resetPage","_params","isPagination","Object","assign","keys","forEach","undefined","console","log","fetchApi","then","res","resTransform","list","isend","decodeURIComponent","getRvapiList","getRvBussList","_component_a_pagination","defaultPageSize","pageSizeOptions","handlerChange","props","Number","required","Array","hideOnSinglePage","Boolean","showQuickJumper","showSizeChanger","emits","setup","content","pageNumber","emit","__exports__","url","method","fileName","config","responseType","Promise","resolve","reject","userFileName","headers","split","includes","slice","contentType","blob","Blob","downloadElement","document","createElement","href","window","URL","createObjectURL","download","Date","now","toString","body","appendChild","click","removeChild","revokeObjectURL","message","error","catch","title","dataIndex","key","width","slots","customRender","components","Pagination","useTableHeight","push","label","state","selectedRows","rvapiParams","page","blobDownload","ids","id","length","substring"],"mappings":"yIAAA,W,yDCAA,W,yDCEMA,EAAe,SAAAC,GAAK,OAAC,yBAAa,mBAAmBA,EAAEA,IAAI,0BAAcA,GACzEC,EAA2BF,GAAa,WAAmB,uCAAoB,MAAO,CAAEG,MAAO,uCAAyC,YAAa,MACrJC,EAAa,CAAED,MAAO,kBACtBE,EAAa,CAAEF,MAAO,sBACtBG,EAA2BN,GAAa,WAAmB,uCAAoB,OAAQ,CAAEG,MAAO,cAAgB,QAAS,MACzHI,EAAa,CAAEJ,MAAO,6BACtBK,EAA2BR,GAAa,WAAmB,uCAAoB,OAAQ,CAAEG,MAAO,cAAgB,QAAS,MACzHM,EAAa,CAAEN,MAAO,kCACtBO,EAA0B,6BAAiB,SAC3CC,EAA0B,6BAAiB,UAC3CC,EAA4BZ,GAAa,WAAmB,uCAAoB,MAAO,CAAEG,MAAO,sBAAwB,MAAO,MAC/HU,EAA4Bb,GAAa,WAAmB,uCAAoB,MAAO,CAAEG,MAAO,sBAAwB,MAAO,MAC/HW,EAA4Bd,GAAa,WAAmB,uCAAoB,MAAO,CAAEG,MAAO,sBAAwB,MAAO,MAC/HY,EAA4Bf,GAAa,WAAmB,uCAAoB,MAAO,CAAEG,MAAO,sBAAwB,MAAO,MAC/Ha,EAAc,CAAEb,MAAO,2BACvBc,EAAc,CAAEd,MAAO,wBACvBe,EAA2B,6BAAiB,wBAC5CC,EAAc,CAAC,WAEd,SAASC,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAAsB,8BAAkB,YACxCC,EAAqB,8BAAkB,WACvCC,EAAsB,8BAAkB,YACxCC,EAAqB,8BAAkB,WACvCC,EAAwB,8BAAkB,cAC1CC,EAA0B,8BAAkB,gBAElD,OAAQ,yBAAc,yBAAaA,EAAyB,CAAEC,UAAW,YAA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5H,KAAM,GACNN,KAAM,KAERqB,EAAWY,IAAM,EACjBW,KAGIlC,EAAgB,WACpBW,EAAWY,IAAM,EACjBW,KAIIb,EAA0B,SAACoG,GAC/B9G,EAAWY,IAAMkG,EACjBvF,GAAa,IAGTT,EAAwB,SAACH,EAAiBI,GAC9Cf,EAAWgB,KAAOD,EAClBY,OAAOC,OAAO5B,EAAY,CAAEY,IAAKD,EAASK,KAAMD,IAChDQ,GAAa,IAETd,EAAe,SAAC/B,GACpBsD,QAAQC,IAAIvD,GACZqI,EAAa,CACXlD,IAAK,qBACLC,OAAQ,MACR1C,OAAQ,CACN4F,IAAKtI,EAAMuI,OAIX3H,EAAU,WACd,GAAGqH,EAAMvG,gBAAgB8G,OAAO,CAC7B,IAAI,EAAQ,GACfP,EAAMC,aAAa9E,SAAQ,SAAC5B,GAC1B,GAASA,EAAK+G,GAAE,OAElB,EAAK,EAAGE,UAAU,EAAG,EAAGD,OAAS,GACjClF,QAAQC,IAAI,GACZ,IAAM+E,EAAI,CACRC,GAAE,GAEJxG,EAAauG,QAEVnB,EAAA,KAAQC,MAAM,4CAKnB,OAAO,6DACLjG,YAAW,EACXE,QAAO,EACPN,KAAI,EACJO,WAAU,GACP,oBAAO2G,IAAM,CAChBpF,aAAY,IACT,oBAAOsF,IAAY,CACtBvG,eAAc,EACdnB,aAAY,EACZE,cAAa,EACbqB,wBAAuB,EACvBI,sBAAqB,EACrBL,aAAY,EACZ3B,SAAQ,EACRQ,QAAO,O,UC9Ib,MAAM,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAS3B,GAAQ,CAAC,YAAY,qBAE1E","file":"js/chunk-55f2a36c.61349fee.js","sourcesContent":["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=2b6ea546&scoped=true&lang=scss\"","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!./Pagination.vue?vue&type=style&index=0&id=0cc86eb4&scoped=true&lang=scss\"","import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-2b6ea546\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"title-text bg-fff m-t-8 p-b-20 p-16\" }, \"归档文件查询下载\", -1))\nconst _hoisted_2 = { class: \"p-r d-f bg-fff\" }\nconst _hoisted_3 = { class: \"flex-w-auto m-l-16\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text\" }, \"Type\", -1))\nconst _hoisted_5 = { class: \"flex-w-auto m-l-16 m-r-24\" }\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text\" }, \"Name\", -1))\nconst _hoisted_7 = { class: \"d-f flex-w-auto align-e m-l-40\" }\nconst _hoisted_8 = /*#__PURE__*/_createTextVNode(\"Reset\")\nconst _hoisted_9 = /*#__PURE__*/_createTextVNode(\"Search\")\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex-w-auto m-l-16\" }, null, -1))\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex-w-auto m-l-16\" }, null, -1))\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex-w-auto m-l-16\" }, null, -1))\nconst _hoisted_13 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex-w-auto m-l-16\" }, null, -1))\nconst _hoisted_14 = { class: \"p-16 bg-fff flex-w-auto\" }\nconst _hoisted_15 = { class: \"d-f justify-e m-b-20\" }\nconst _hoisted_16 = /*#__PURE__*/_createTextVNode(\"Batch DownLoad Files\")\nconst _hoisted_17 = [\"onClick\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_a_select = _resolveComponent(\"a-select\")!\n const _component_a_input = _resolveComponent(\"a-input\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_Pagination = _resolveComponent(\"Pagination\")!\n const _component_main_wrapper = _resolveComponent(\"main-wrapper\")!\n\n return (_openBlock(), _createBlock(_component_main_wrapper, { className: \"p-l-r-10\" }, {\n default: _withCtx(() => [\n _hoisted_1,\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _createVNode(_component_a_select, {\n value: _ctx.type,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.type) = $event)),\n options: _ctx.typeList,\n style: {\"width\":\"200px\",\"display\":\"block\"},\n allowClear: \"true\"\n }, null, 8, [\"value\", \"options\"])\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n _hoisted_6,\n _createVNode(_component_a_input, {\n value: _ctx.name,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.name) = $event))\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _createVNode(_component_a_button, {\n class: \"m-l-16 border-btn label-btn\",\n onClick: _ctx.handlerReset\n }, {\n default: _withCtx(() => [\n _hoisted_8\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n class: \"m-l-16 border-btn label-btn\",\n type: \"primary\",\n onClick: _ctx.handlerSearch\n }, {\n default: _withCtx(() => [\n _hoisted_9\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _hoisted_10,\n _hoisted_11,\n _hoisted_12,\n _hoisted_13\n ]),\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"div\", _hoisted_15, [\n _createVNode(_component_a_button, {\n class: \"border-btn label-btn m-r-24\",\n type: \"primary\",\n onClick: _ctx.downAll\n }, {\n default: _withCtx(() => [\n _hoisted_16\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _createVNode(_component_a_table, {\n align: \"center\",\n class: \"tab-container default-self-table-text\",\n dataSource: _ctx.data,\n bordered: \"\",\n scroll: { y: _ctx.tableHeight, x: '' },\n columns: _ctx.columns,\n pagination: false,\n rowKey: (item, index) => index,\n \"row-selection\": {\n selectedRowKeys: _ctx.selectedRowKeys,\n onChange: _ctx.onSelectChange,\n }\n }, {\n operation: _withCtx(({ record }) => [\n _createElementVNode(\"div\", {\n onClick: ($event: any) => (_ctx.downLoadFile(record)),\n class: \"cursor-p color-blue\"\n }, \" DownLoad \", 8, _hoisted_17)\n ]),\n _: 1\n }, 8, [\"dataSource\", \"scroll\", \"columns\", \"rowKey\", \"row-selection\"]),\n _createVNode(_component_Pagination, {\n onChange: _ctx.handlerPaginationChange,\n current: _ctx.pagination.num,\n onShowSizeChange: _ctx.handlerShowSizeChange,\n pageSize: _ctx.pagination.size,\n total: _ctx.pagination.total\n }, null, 8, [\"onChange\", \"current\", \"onShowSizeChange\", \"pageSize\", \"total\"])\n ])\n ]),\n _: 1\n }))\n}","/*\n * @Author: guowu\n * @Date: 2021-11-29 09:48:20\n * @LastEditTime: 2021-12-10 23:55:09\n */\nimport { onMounted, reactive, ref } from \"vue\";\n\ninterface Pagination {\n size: number; //每页多少条\n num: number; //当前页数\n total: number; //总条数\n}\n\ninterface Params {\n [key: string]: any;\n}\n\n/**\n * 所有的返回的分页都是这个数据格式\n * @param parameter\n * @param parameter params ajax 查询参数\n * @param parameter initData 初始化数据\n * @param parameter fetchApi ajax请求api\n * @param parameter resTransform response 处理函数\n * @param parameter isPagination 是否带分页查询\n *\n */\nfunction useFetchCommon(parameter: { params?: Params; initData: T; fetchApi: Function; resTransform?: Function; isPagination?: boolean;isend: boolean }) {\n const pagination = reactive({\n size: parameter.params?.sizi ?? 10,\n num: 1,\n total: 0,\n })\n\n const data = ref(parameter.initData);\n\n /**\n *\n * @param resetPage 是否重置分页page 1\n */\n const refreshFetch = (resetPage = true): void => {\n let _params: Params = {};\n if (parameter.isPagination) {\n _params = resetPage ? Object.assign({}, parameter.params, pagination, { num: 1 }) : Object.assign({}, parameter.params, pagination);\n 'total' in _params && delete _params.total;\n } else {\n _params = parameter.params ?? {};\n }\n Object.keys(_params).forEach(item=>{\n if(_params[item]==undefined){\n _params[item]=''\n }\n })\n console.log(_params);\n parameter.fetchApi(_params).then((res: any) => {\n parameter.resTransform && parameter.resTransform(res);\n if ( 'total' in res) {\n Object.assign(pagination, { total: res.total });\n }\n console.log(pagination,'pagination');\n //处理返回的res.list 和 res.data\n if ('list' in res) {\n data.value = res.list;\n } else if ('data' in res) {\n data.value = res.data;\n } else {\n data.value = res;\n }\n if(parameter.isend){\n (data.value as any).forEach((item: any) => {\n item['attachment_s3_name']=decodeURIComponent(item['attachment_s3_name']) \n });\n }\n \n })\n }\n\n onMounted(refreshFetch);\n\n return {\n pagination,\n data,\n refreshFetch\n };\n}\n\nexport default useFetchCommon;\n","/*\n * @Author: guowu\n * @Date: 2021-12-08 16:53:05\n * @LastEditTime: 2021-12-15 11:40:35\n */\nimport { RvapirListProps,RvapiParams } from \"@/views/Guidang/GuiDangIndex/types\";\nimport { fetchGet } from './index'\nexport const getRvapiList = (params: RvapiParams): Promise => {\n return fetchGet('/rvapi/ar/list', { params });\n}\nexport const getRvBussList = (params: {}): Promise => {\n return fetchGet('/rvapi/ar/buss', { params });\n}\n\n","import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-0cc86eb4\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { 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_a_pagination = _resolveComponent(\"a-pagination\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_a_pagination, {\n total: _ctx.total,\n \"show-size-changer\": \"\",\n \"show-quick-jumper\": \"\",\n current: _ctx.current,\n defaultPageSize: _ctx.defaultPageSize,\n pageSize: _ctx.pageSize,\n pageSizeOptions: _ctx.pageSizeOptions,\n \"show-total\": total => `Total ${total} items`,\n onChange: _ctx.handlerChange,\n onShowSizeChange: _ctx.handlerShowSizeChange\n }, null, 8, [\"total\", \"current\", \"defaultPageSize\", \"pageSize\", \"pageSizeOptions\", \"show-total\", \"onChange\", \"onShowSizeChange\"])\n ]))\n}","\n import { defineComponent } from 'vue';\n\n export default defineComponent({\n name: \"Pagination\",\n props: {\n total: {\n type: Number,\n default: 0,\n required: true\n },\n pageSizeOptions: {\n type: Array,\n },\n pageSize: {\n type: Number,\n default: 10\n },\n defaultPageSize: {\n type: Number,\n default: 10\n },\n current: {\n type: Number,\n default: 1,\n required: true\n },\n hideOnSinglePage: {\n type: Boolean,\n default: false\n },\n showQuickJumper: {\n type: Boolean,\n default: true\n },\n showSizeChanger: {\n type: Boolean,\n default: true\n }\n },\n emits: ['change', 'show-size-change'],\n setup(props, content) {\n const handlerChange = (pageNumber: number) => {\n content.emit('change', pageNumber);\n }\n\n const handlerShowSizeChange = (current: number, pageSize: number) => {\n content.emit('show-size-change', current, pageSize);\n }\n\n return {\n handlerChange,\n handlerShowSizeChange\n }\n }\n })\n","import { render } from \"./Pagination.vue?vue&type=template&id=0cc86eb4&scoped=true&ts=true\"\nimport script from \"./Pagination.vue?vue&type=script&lang=ts\"\nexport * from \"./Pagination.vue?vue&type=script&lang=ts\"\n\nimport \"./Pagination.vue?vue&type=style&index=0&id=0cc86eb4&scoped=true&lang=scss\"\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-0cc86eb4\"]])\n\nexport default __exports__","/*\n * @Author: guowu\n * @Date: 2021-11-15 13:43:50\n * @LastEditTime: 2021-12-14 22:38:20\n */\nimport axios from 'axios'\nimport { AxiosRequestConfig } from '@/API/types'\nimport { message } from \"ant-design-vue\"\n\nexport default (options: AxiosRequestConfig) => {\n const { url, method = 'get', params, fileName = '' } = options;\n const config: any = {\n url: url,\n method,\n responseType: \"blob\",\n\n };\n if (method === \"get\") {\n config[\"params\"] = params;\n } else {\n config[\"data\"] = params;\n }\n console.log(config,'config');\n return new Promise((resolve, reject) => {\n axios(config)\n .then((res: any) => {\n if (res.data.size > 0) {\n let userFileName = ''\n if (!fileName) {\n console.log(res.headers)\n userFileName =decodeURIComponent(decodeURIComponent( res.headers['content-disposition'].split('filename=')[1]))\n \n if (userFileName && userFileName.includes('\"')) userFileName = userFileName.slice(1, -1);\n } else {\n userFileName = fileName\n }\n\n // 文件格式\n const contentType = res.headers['content-type']\n const blob = new Blob([res.data], { type: contentType }) //指定格式为vnd.ms-excel\n const downloadElement = document.createElement('a')\n const href = window.URL.createObjectURL(blob) //创建下载的链接\n downloadElement.href = href\n downloadElement.download = !userFileName ? Date.now().toString() : userFileName //下载后文件名\n document.body.appendChild(downloadElement)\n downloadElement.click() //点击下载\n document.body.removeChild(downloadElement) //下载完成移除元素\n window.URL.revokeObjectURL(href) //释放掉blob对象\n resolve(res)\n } else {\n message.error('Data is null!')\n }\n\n })\n .catch(function (error: string) {\n console.log(error)\n return reject(error)\n })\n })\n}\n\n","\nimport { defineComponent, reactive, toRefs,nextTick } from \"vue\";\nimport useTableHeight from \"@/hooks/useTableHeight\";\nimport useFetchCommon from \"./useFetchCommon\";\nimport { getRvapiList,getRvBussList } from \"@/API/rvapi\";\nimport Pagination from \"@/views/Guidang/components/Pagination.vue\";\nimport { RvapirListProps, RvapiParams, TypeLists } from \"./types\";\nimport blobDownload from \"./blobDownload\";\nimport { message } from 'ant-design-vue';\ntype Key = string | number;\nconst columns = [\n {\n title: \"Type\",\n dataIndex: \"business_type\",\n key: \"type\",\n width: 160,\n align: \"center\",\n },\n {\n title: \"File Name\",\n dataIndex: \"attachment_s3_name\",\n key: \"fileName\",\n width: 260,\n align: \"center\",\n },\n {\n title: \"Operation\",\n dataIndex: \"\",\n key: \"Operation\",\n width: 160,\n slots: { customRender: \"operation\" },\n align: \"center\",\n },\n];\nexport default defineComponent({\n name: \"Guidang\",\n components: {\n Pagination,\n },\n setup() {\n const { tableHeight } = useTableHeight();\n const typeList = reactive([\n \n ]);\n getRvBussList({}).then(res=>{\n res.forEach(item=>{\n typeList.push({\n value:item,\n label:item\n })\n \n })\n console.log(res)\n })\n const state = reactive<{\n selectedRowKeys: Key[];\n selectedRows: RvapirListProps[];\n }>({\n selectedRowKeys: [], // Check here to configure the default column\n selectedRows: [],\n });\n const onSelectChange = (selectedRowKeys: Key[], selectedRows: []) => {\n console.log(\"selectedRowKeys changed: \", selectedRowKeys, selectedRows);\n state.selectedRowKeys = selectedRowKeys;\n state.selectedRows = selectedRows;\n };\n const rvapiParams = reactive({\n name: \"\",\n type: \"\",\n });\n\n const { data, pagination, refreshFetch } = useFetchCommon<\n RvapirListProps[]\n >({\n params: rvapiParams,\n initData: [],\n fetchApi: getRvapiList,\n isPagination: true,\n isend: true,\n });\n \n const handlerReset = () => {\n Object.assign(rvapiParams, {\n name: \"\",\n type: \"\",\n });\n pagination.num = 1;\n refreshFetch();\n };\n\n const handlerSearch = () => {\n pagination.num = 1;\n refreshFetch();\n };\n\n //分页事件处理\n const handlerPaginationChange = (page: number): void => {\n pagination.num = page;\n refreshFetch(false);\n };\n\n const handlerShowSizeChange = (current: number, pageSize: number): void => {\n pagination.size = pageSize;\n Object.assign(pagination, { num: current, size: pageSize });\n refreshFetch(false);\n };\n const downLoadFile = (value: any) => {\n console.log(value);\n blobDownload({\n url: `/rvapi/ar/download`,\n method: \"get\",\n params: {\n ids: value.id,\n },\n });\n };\n const downAll = () => {\n if(state.selectedRowKeys.length){\n let id: any='';\n state.selectedRows.forEach((item) => {\n id += `${item.id},`;\n });\n id = id.substring(0, id.length - 1);\n console.log(id)\n const ids={\n id\n }\n downLoadFile(ids);\n }else{\n message.error('Please select at least one application.');\n }\n \n };\n\n return {\n tableHeight,\n columns,\n data,\n pagination,\n ...toRefs(state),\n refreshFetch,\n ...toRefs(rvapiParams),\n onSelectChange,\n handlerReset,\n handlerSearch,\n handlerPaginationChange,\n handlerShowSizeChange,\n downLoadFile,\n typeList,\n downAll,\n };\n },\n});\n","import { render } from \"./index.vue?vue&type=template&id=2b6ea546&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=2b6ea546&scoped=true&lang=scss\"\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-2b6ea546\"]])\n\nexport default __exports__"],"sourceRoot":""}