{"remainingRequest":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!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\\questionsList\\component\\noticeDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\SupplierManagement\\questionsList\\component\\noticeDialog.vue","mtime":1720125638808},{"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\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"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":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.array.find\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\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//\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 // 排查计划明细\n props: {\n useOrgList: Array\n },\n data: function data() {\n return {\n showTroubleshooting: false,\n // 控制弹层显示与隐藏\n multipleSelection: [],\n selectedValue: [],\n activeName: '1',\n url: '',\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'procureOrgId',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'projectNumber',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'noticeTitle',\n relation: 'AND',\n value: ''\n }],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n sorter: [{\n direction: 'DESC',\n property: 'create_time_'\n }]\n },\n currentUser: {}\n };\n },\n mixins: [TableMixin],\n created: function created() {\n this.currentUser = JSON.parse(sessionStorage.getItem('currentUserDetail'));\n this.querys[0].value = this.currentUser.org[0].orgId;\n },\n methods: {\n rowKey: function rowKey(row) {\n return row.id;\n },\n //搜索\n handleSearch: function handleSearch() {\n this.loadData();\n },\n //重置\n handleReset: function handleReset() {\n this.querys[0].value = this.currentUser.org[0].orgId;\n this.querys[1].value = '';\n this.querys[2].value = '';\n this.loadData();\n },\n //显示弹框\n add: function add() {\n var _this = this;\n\n this.showTroubleshooting = true;\n this.loadData();\n this.$nextTick(function () {\n _this.selectedValue = _this.useOrgList;\n\n _this.initTableSelection();\n });\n },\n // 初始化表格行的选中状态\n initTableSelection: function initTableSelection() {\n var _this2 = this;\n\n if (this.selectedValue.length) {\n this.selectedValue = this.selectedValue.filter(function (item, index) {\n var selectItem = _this2.tableData.find(function (tItem) {\n return tItem.id === item.id;\n });\n\n if (!!selectItem) {\n _this2.$refs.multipleSelection.toggleRowSelection(selectItem, true);\n }\n\n return !selectItem;\n });\n }\n },\n handleClick: function handleClick() {\n if (this.activeName == 1) {\n this.url = '/matApproval/v1/page';\n }\n\n if (this.activeName == 2) {\n this.url = '/projectApproval/v1/page';\n }\n\n this.loadData();\n },\n // 获取list\n loadData: function loadData() {\n var _this3 = this;\n\n this.loading = true;\n this.tableData = [];\n this.queryParam.querys = [];\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n }\n\n if (this.activeName == 1) {\n this.url = '/matApproval/v1/page';\n }\n\n if (this.activeName == 2) {\n this.url = '/projectApproval/v1/page';\n }\n\n this.$http.post('${portal}' + this.url, this.queryParam).then(function (res) {\n _this3.loading = false;\n _this3.queryParam.pageBean.total = res.data.value.total;\n _this3.queryParam.pageBean.page = res.data.value.page;\n _this3.queryParam.pageBean.pageSize = res.data.value.pageSize;\n _this3.tableData = res.data.value.rows;\n\n _this3.initTableSelection();\n });\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val;\n\n if (this.multipleSelection.length > 1) {\n this.$refs.multipleSelection.toggleRowSelection(this.multipleSelection[0], false);\n }\n },\n // 点击关闭按钮\n handleClose: function handleClose() {\n this.$refs.multipleSelection.clearSelection();\n this.showTroubleshooting = false;\n },\n // 保存按钮\n handleSave: function handleSave() {\n var _this4 = this;\n\n var list = [];\n list = this.multipleSelection;\n list.forEach(function (item) {\n if (_this4.activeName == 1) {\n item.noticeType = 1;\n }\n\n if (_this4.activeName == 2) {\n item.noticeType = 2;\n }\n });\n this.$emit('addDetail', list);\n this.handleClose();\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.queryParam.pageBean = _objectSpread(_objectSpread({}, this.queryParam.pageBean), {}, {\n page: page\n });\n this.loadData();\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.queryParam.pageBean = _objectSpread(_objectSpread({}, this.queryParam.pageBean), {}, {\n pageSize: pageSize\n });\n this.loadData();\n }\n }\n};",null]}