{"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\\euroInterestRates\\components\\euroInterestRatesDetails.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\configureInfo\\euroInterestRates\\components\\euroInterestRatesDetails.vue","mtime":1693992862332},{"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\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { mapState } from 'vuex';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport euroInterestRates from '@/api/configureInfo/euroInterestRates.js';\nexport default {\n name: 'euroInterestRatesDetails',\n components: {},\n mixins: [TableMixin],\n data: function data() {\n return {\n hasData: false,\n loading: false,\n dialogloading: false,\n tableData: [],\n tableHearder: {},\n // 表头\n multipleSelection: [],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n },\n total: 0,\n jbList: [],\n parentId: 0,\n sortList: {},\n title: '',\n id: '',\n dialogVisible: false,\n actionUrl: '',\n uploadData: {\n mainId: ''\n },\n modifyData: {}\n };\n },\n watch: {},\n created: function created() {\n this.statementData = JSON.parse(window.localStorage.getItem(\"statementData\"));\n\n if (this.$i18n.locale === 'zh-CN') {\n this.jbList = dictUtils.getDictItemsFromCache('jb');\n } else {\n this.jbList = dictUtils.getDictItemsFromCache('jb_en');\n }\n\n this.actionUrl = window.context.portal;\n console.log(this.$route.query);\n this.title = this.$route.query.name ? this.$route.query.name : '编辑';\n this.id = this.$route.query.id;\n this.uploadData.mainId = this.$route.query.id;\n this.title == '编辑' ? this.getData() : '';\n },\n computed: mapState({\n header: function header(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n }\n }),\n mounted: function mounted() {},\n methods: {\n // changeData(value, code, column) {\n // \tif (this.modifyData[code]) {\n // \t\tthis.modifyData[code][column] = value\n // \t} else {\n // \t\tthis.modifyData[code] = {\n // \t\t\t[column]: value,\n // \t\t}\n // \t}\n // \tconsole.log(this.modifyData);\n // },\n //获取数据\n getData: function getData() {\n var _this = this;\n\n this.loading = true;\n this.queryParam.querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'mainId',\n relation: 'AND',\n value: this.id\n }];\n euroInterestRates.detailQuery(this.queryParam, function (res) {\n if (res.state) {\n var length = res.value.length;\n\n if (length) {\n _this.hasData = true;\n _this.tableHearder = res.value[0];\n res.value.splice(0, 1);\n _this.tableData = res.value;\n\n _this.$set(_this.tableData);\n } else {\n _this.hasData = false;\n }\n }\n\n _this.loading = false;\n });\n },\n //保存\n handleSave: function handleSave() {\n var _this2 = this;\n\n // let keys = Object.keys(this.modifyData)\n // if (!keys.length) {\n // \tthis.$message({\n // \t\tmessage: this.$t('report.unchanged'),\n // \t\ttype: 'warning',\n // \t})\n // } else {\n // \tlet dataUpload = []\n // \tfor (let key in this.modifyData) {\n // \t\tfor (let valKey in this.modifyData[key]) {\n // \t\t\tlet obj = {}\n // \t\t\tobj.subjectCode = key\n // \t\t\tobj.enterpriseCode = valKey\n // \t\t\tobj.fillData = this.modifyData[key][valKey]\n // \t\t\tdataUpload.push(obj)\n // \t\t}\n // \t}\n euroInterestRates.saveData({\n id: this.id,\n list: this.tableData\n }, function (res) {\n if (res.state) {\n _this2.modifyData = {};\n\n _this2.$notify({\n type: 'success',\n message: _this2.$t('domestic.success'),\n duration: 2000\n });\n\n _this2.getData(); // this.$router.go(-1)\n\n }\n }); // }\n },\n handleClose: function handleClose() {\n this.dialogVisible = false;\n },\n //导出\n exportKPL: function exportKPL() {\n euroInterestRates.export(this.queryParam, function (res) {});\n },\n //导入运营kpl数据\n importKPL: function importKPL() {\n var _this3 = this;\n\n if (!this.tableData.length) {\n this.dialogVisible = true;\n } else {\n this.$confirm(this.$t('report.importCoverTips'), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n _this3.dialogVisible = true;\n }).catch(function () {});\n }\n },\n //上传成功\n handleAvatarSuccess: function handleAvatarSuccess(res, file) {\n this.dialogVisible = false;\n this.dialogloading = false;\n this.$notify({\n type: 'success',\n message: this.$t('domestic.success'),\n duration: 2000\n });\n this.getData();\n },\n handleAvatarError: function handleAvatarError(err, file, fileList) {\n this.dialogVisible = false;\n this.dialogloading = false;\n this.$notify({\n type: 'error',\n message: this.$t('domestic.failure'),\n duration: 2000\n });\n },\n handleProgress: function handleProgress(event, file, fileList) {\n this.dialogloading = true;\n }\n }\n};",null]}