{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/src/components/admin/CompanyAdmin/CommitteeKmSettings.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/src/components/admin/CompanyAdmin/CommitteeKmSettings.vue","mtime":1742796810165},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["\nimport API from \"@/api.js\";\nexport default {\n name: \"CommitteeKmSettings\",\n props: [\n \"visible\",\n ],\n data () {\n return {\n visiblve: false,\n editVisible: false,\n params:{\n id: \"\",\n name: \"\",\n orderNo: 1,\n domainId: \"\",\n data: [],\n pageNo: 1,\n linesPerPage: 15\n },\n multipleSelection: [],\n multipleSelectionKeys: []\n }\n },\n computed: {\n committeedialog: {\n get() {\n return this.visible;\n },\n set(val) {\n this.$emit(\"update:visible\", val);\n }\n },\n },\n mounted() {\n this.getCommitteeKmData(this.params);\n },\n \n methods: {\n /**\n * 查询专委会列表\n */\n getCommitteeKmData(e) {\n API.getCommitteeKmData(e, {\n onSucess: resp => {\n this.params.data = resp.data.data;\n } \n })\n },\n\n /**\n * 显示新建弹出框\n */\n handleShow(){\n this.editVisible = false;\n this.visiblve = true;\n },\n\n /**\n * 确定新建专委会\n */\n handleSettingsOk(){\n let data = {\n name: this.params.name,\n orderNo: this.params.orderNo\n }\n API.createCommittee(data, {\n onSucess: resp => {\n if(resp.data.errcode == 0){\n let params = {\n ...this.params,\n id: \"\",\n name: \"\",\n orderNo: 1,\n pageNo: 1,\n linesPerPage: 15\n }\n this.getCommitteeKmData(params);\n this.handleCancel();\n }\n },\n onError: error =>{\n this.$message({\n type: 'warning',\n message: error.response.data.errmsg\n });\n }\n\n })\n },\n\n /**\n * 勾选行时响应\n */\n handleSelectionChange(val){\n let multipleSelectionKeys = [];\n if(val.length){\n val.map((e) => {\n let id = {};\n id = e.id;\n multipleSelectionKeys.push(id);\n })\n }\n this.multipleSelectionKeys = multipleSelectionKeys;\n this.multipleSelection = val;\n },\n\n /**\n * 批量删除专委会\n */\n showDeleteMessageBox(index, row){\n this.$confirm(this.$t('msg.delConfirm'), this.$t('msg.tip'), {\n confirmButtonText: this.$t('msg.confirm'),\n cancelButtonText: this.$t('msg.cancel'),\n type: 'warning',\n }).then(() => {\n API.deleteCommittee(row != undefined ? [row.id] : this.multipleSelectionKeys, {\n onSucess: resp => {\n if(resp.data.errcode == 0){\n let params = {\n pageNo: this.params.pageNo,\n linesPerPage: this.params.linesPerPage\n }\n this.getCommitteeKmData(params);\n this.$message({\n type: 'success',\n message: this.$t('msg.es')\n\n\n });\n }\n }\n })\n }).catch(() => {\n this.$refs.multipleTable.clearSelection();\n this.$message({\n type: 'info',\n message: this.$t('msg.cancel_del')\n });\n });\n },\n\n /**\n * 编辑专委会\n */\n handleEdit(index, row){\n this.params = {\n ...this.params,\n id: row.id,\n name: row.name,\n orderNo: row.orderNo,\n }\n this.visiblve = true;\n this.editVisible = true;\n },\n\n /**\n * 确定编辑专委会\n */\n handleEditOk(){\n let data = {\n id: this.params.id,\n name: this.params.name,\n orderNo: this.params.orderNo\n }\n API.editCommittee(data, {\n onSucess: resp => {\n if(resp.data.errcode == 0){\n let params = {\n ...this.params,\n id: \"\",\n name: \"\",\n orderNo: 1,\n data: [],\n pageNo: 1,\n linesPerPage: 15\n }\n this.getCommitteeKmData(params);\n this.handleCancel();\n }\n } \n })\n },\n\n /**\n * 隐藏新建或编辑专委会弹出框\n */\n handleCancel(){\n let params = {\n ...this.params,\n id: \"\",\n name: \"\",\n orderNo: 1,\n pageNo: 1,\n linesPerPage: 15\n }\n this.params = params;\n this.visiblve = false;\n this.editVisible = false;\n \n },\n\n /**\n * 当前页改变时会触发\n */\n handleCurrentChange(val) {\n let currentPage = {\n pageNo: val,\n linesPerPage: this.params.linesPerPage\n }\n this.getCommitteeKmData(currentPage);\n }\n }\n}\n",null]}