{"remainingRequest":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\SupplierManagement\\onboardingSupplier\\component\\classificationDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\SupplierManagement\\onboardingSupplier\\component\\classificationDialog.vue","mtime":1718916017111},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport {TableMixin} from '@/mixins/tableMixin'\nimport basicData from '@/api/basicData'\nexport default {\n name: 'CmgtSaftyDangerCheckplanFormDialogTroubleshooting', // 排查计划明细\n props: {\n title: String,\n useOrgList: Array,\n },\n data() {\n return {\n showTroubleshooting: false, // 控制弹层显示与隐藏\n multipleSelection: [],\n selectedValue: [],\n tableData: [],\n querys: [\n {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: '',\n },\n ],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0,\n },\n },\n }\n },\n mixins: [TableMixin],\n created() {\n this.loadData()\n },\n methods: {\n // 对顶部选择框进行禁用\n headerCellClassName({row, column, rowIndex, columnIndex}) {\n if (!this.multiple && columnIndex == 0) {\n return 'is-disable'\n }\n },\n rowKey(row) {\n return row.id\n },\n //搜索\n handleSearch() {\n this.loadData()\n },\n //重置\n handleReset() {\n this.querys[0].value = ''\n this.loadData()\n },\n //显示弹框\n add() {\n this.showTroubleshooting = true\n this.$nextTick(function () {\n this.selectedValue = this.useOrgList\n this.initTableSelection()\n })\n },\n // 初始化表格行的选中状态\n initTableSelection() {\n if (this.selectedValue.length) {\n this.selectedValue = this.selectedValue.filter((item, index) => {\n let selectItem = this.tableData.find((tItem) => tItem.id === item.id)\n if (!!selectItem) {\n this.$refs.multipleSelection.toggleRowSelection(selectItem, true)\n }\n return !selectItem\n })\n }\n },\n // 获取list\n loadData() {\n this.loading = true\n this.tableData = []\n this.queryParam.querys = []\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0])\n }\n this.$http\n .post(\n '${portal}/bizSupplierType/v1/page',\n this.queryParam\n )\n .then((res) => {\n this.loading = false\n this.queryParam.pageBean.total = res.data.value.total\n this.queryParam.pageBean.page = res.data.value.page\n this.queryParam.pageBean.pageSize = res.data.value.pageSize\n this.tableData = res.data.value.rows\n this.initTableSelection()\n })\n },\n handleSelectionChange(val) {\n this.multipleSelection = val\n if (this.multipleSelection.length > 1) {\n this.$refs.multipleSelection.toggleRowSelection(\n this.multipleSelection[0],\n false\n )\n }\n },\n // 点击关闭按钮\n handleClose() {\n this.$refs.multipleSelection.clearSelection()\n this.showTroubleshooting = false\n },\n // 保存按钮\n handleSave() {\n let list = []\n list = this.multipleSelection\n this.$emit('load', list)\n this.handleClose()\n },\n handleCurrentChange(page) {\n this.queryParam.pageBean = {...this.queryParam.pageBean, page}\n this.loadData()\n },\n handleSizeChange(pageSize) {\n this.queryParam.pageBean = {...this.queryParam.pageBean, pageSize}\n this.loadData()\n },\n },\n}\n",null]}