{"remainingRequest":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\configureInfo\\operationalKPI\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\configureInfo\\operationalKPI\\index.vue","mtime":1677050774604},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\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 moment from 'moment';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport operationalKPI from '@/api/configureInfo/operationalKPI.js';\nexport default {\n name: 'operationalKPI',\n components: {},\n mixins: [TableMixin],\n data: function data() {\n return {\n loading: false,\n tableData: [],\n multipleSelection: [],\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'fillYear',\n relation: 'AND',\n value: moment().format('YYYY')\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'fillMonth',\n relation: 'AND',\n value: ''\n }],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20\n }\n },\n total: 0,\n bbztList: [],\n dialogVisible: false,\n model: {\n fillYear: moment().format('YYYY'),\n fillMonth: moment().format('M'),\n reportId: 1\n },\n title: '',\n dialogRules: {\n name: {\n required: true,\n message: this.$t('overseasEnterpriseInfo.input') + this.$t('overseasEnterpriseInfo.name'),\n trigger: 'blur'\n }\n }\n };\n },\n watch: {},\n created: function created() {\n if (this.$i18n.locale === 'zh-CN') {\n this.bbztList = dictUtils.getDictItemsFromCache('bbzt');\n } else {\n this.bbztList = dictUtils.getDictItemsFromCache('bbzt_en');\n }\n\n this.getData();\n },\n mounted: function mounted() {},\n methods: {\n //获取数据\n getData: function getData(page) {\n var _this = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\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 operationalKPI.pageQuery(this.queryParam, function (res) {\n if (res.rows) {\n _this.tableData = res.rows;\n\n _this.tableData.forEach(function (e) {\n _this.bbztList.forEach(function (s) {\n if (e.status == s.value) {\n e.statusName = s.name;\n }\n });\n });\n\n _this.total = res.total;\n\n _this.$set(_this.tableData);\n\n _this.loading = false;\n }\n });\n },\n //展示数量\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.getData();\n },\n //表格页数\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.getData();\n },\n callData: function callData() {\n this.getTree();\n this.getData();\n },\n Delete: function Delete(val) {\n var _this2 = this;\n\n this.$confirm(this.$t('operationalKPI.deldata'), this.$t('common.delete'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n operationalKPI.delDate(val.id, function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: _this2.$t('domestic.success'),\n duration: 2000\n });\n\n _this2.getData();\n }\n });\n }).catch(function () {});\n },\n //发布\n Release: function Release(val) {\n var _this3 = this;\n\n this.$confirm(this.$t('operationalKPI.deldata'), this.$t('operationalKPI.release'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n operationalKPI.editStatus({\n id: val.id\n }, function (res) {\n if (res.state) {\n _this3.$notify({\n type: 'success',\n message: _this3.$t('domestic.success'),\n duration: 2000\n });\n\n _this3.getData();\n }\n });\n }).catch(function () {});\n },\n openAdd: function openAdd() {\n this.dialogVisible = true;\n this.title = this.$t('common.add');\n },\n handleDialogClose: function handleDialogClose() {\n this.dialogVisible = false;\n },\n //保存\n saveData: function saveData() {\n var _this4 = this;\n\n operationalKPI.addData(this.model, function (res) {\n if (res.state) {\n _this4.$notify({\n type: 'success',\n message: _this4.$t('domestic.success'),\n duration: 2000\n });\n\n _this4.$router.push({\n path: 'operationalKPI/OperationSubpage',\n query: {\n name: '新增',\n id: res.value\n }\n });\n }\n });\n },\n //编辑\n toEdit: function toEdit(val) {\n this.$router.push({\n path: 'operationalKPI/OperationSubpage',\n query: {\n name: '编辑',\n id: val.id\n }\n });\n },\n //返回上级\n goBlack: function goBlack() {\n this.$router.go(-1);\n }\n }\n};",null]}