{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\reservoirManagement\\components\\hystForm-dialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\reservoirManagement\\components\\hystForm-dialog.vue","mtime":1684458239512},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 hystManager from '@/api/reservoirManagement/hystManager.js';\nimport req from '@/request.js';\nimport latitude from '@/mixins/latitude';\nexport default {\n name: 'hystForm-dialog',\n props: {\n showFormDia: {\n type: Boolean,\n default: false\n },\n title: {\n type: String,\n default: ''\n },\n pId: {\n type: String,\n default: ''\n }\n },\n data: function data() {\n return {\n params: {\n rvcd: null,\n //所在河流\n addvcd: null,\n //行政区划\n compDate: null,\n //建成时间\n admDep: null,\n //归口管理部门\n damTopLen: null,\n //保证出力\n damTopWid: null,\n //额定水头\n engGrad: null,\n //工程等级\n engScal: null,\n //工程规模\n engStat: null,\n //工程建设情况\n hystCode: null,\n //代码\n hystLat: null,\n //纬度\n hystLoc: null,\n //位置\n hystLong: null,\n //经度\n hystName: null,\n //名称\n hystType: null,\n //类型\n mainBuildGrad: null,\n //建筑物级别\n note: null,\n //\n startDate: null,\n //开工时间\n totInsCap: null //总装机容量\n\n },\n rvcds: [],\n //所在河流下拉\n basAdNames: [],\n //行政区划\n hystTypes: [],\n //水电站类型\n engGrads: [],\n //工程等级\n engScals: [],\n //工程规模\n mainBuildGrads: [],\n //主要建筑物级别\n engTasks: [],\n //工程任务\n admDeps: [],\n //归口管理部门\n ifMainDams: [{\n name: '未知',\n value: '0'\n }, {\n name: '是',\n value: '1'\n }, {\n name: '否',\n value: '2'\n }],\n damTypeMats: [],\n damTypeStrs: [],\n engStats: [],\n //工程建设情况\n rules: {\n hystName: [{\n required: true,\n message: '请输入名称',\n trigger: 'blur'\n }],\n addvcd: [{\n required: true,\n message: '请选择行政区划',\n trigger: 'blur'\n }],\n hystCode: [{\n required: true,\n message: '请输入代码',\n trigger: 'blur'\n }],\n hystType: [{\n required: true,\n message: '请选择类型',\n trigger: 'blur'\n }],\n engGrad: [{\n required: true,\n message: '请选择工程等级',\n trigger: 'blur'\n }],\n engScal: [{\n required: true,\n message: '请选择工程规模',\n trigger: 'blur'\n }]\n }\n };\n },\n created: function created() {\n var _this = this;\n\n this.getDetailInfo();\n this.getSysDict();\n this.getTreets();\n hystManager.getbasAdName({}, function (res) {\n _this.basAdNames = res.value;\n });\n },\n methods: {\n rvcdChange: function rvcdChange(val) {\n if (val) {\n this.params.rvcd = val[val.length - 1];\n }\n },\n // 河流树\n getTreets: function getTreets() {\n var _this2 = this;\n\n hystManager.getRvcds({}, function (res) {\n _this2.rvcds = res.value;\n }); // reservoirManager.getCtcds({}, (res) => {\n // this.ctcds = res.value\n // })\n },\n onhouChange: function onhouChange(val) {\n if (val) {\n this.params.addvcd = val[val.length - 1];\n }\n },\n deadLevs: function deadLevs(val) {\n switch (val) {\n case '1':\n this.params.hystLong = latitude.TreeFour(this.params.hystLong);\n break;\n\n default:\n this.params.hystLat = latitude.TreeFour(this.params.hystLat);\n }\n },\n // 根据ID查询\n getDetailInfo: function getDetailInfo() {\n var _this3 = this;\n\n if (this.title === '修改') {\n this.getSysDict();\n hystManager.detailId(this.pId, function (res) {\n _this3.params = res.value;\n\n _this3.$set(_this3.params);\n });\n }\n },\n handleClose: function handleClose() {\n this.params = {\n rvcd: null,\n //所在河流\n addvcd: null,\n //行政区划\n compDate: null,\n //建成时间\n admDep: null,\n //归口管理部门\n damTopLen: null,\n //保证出力\n damTopWid: null,\n //额定水头\n engGrad: null,\n //工程等级\n engScal: null,\n //工程规模\n engStat: null,\n //工程建设情况\n hystCode: null,\n //代码\n hystLat: null,\n //纬度\n hystLoc: null,\n //位置\n hystLong: null,\n //经度\n hystName: null,\n //名称\n hystType: null,\n //类型\n mainBuildGrad: null,\n //建筑物级别\n note: null,\n //\n startDate: null,\n //开工时间\n totInsCap: null //总装机容量\n\n };\n this.$emit('closeFormDiao');\n },\n goInfo: function goInfo(e) {\n var _this4 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n if (_this4.title === '新增') {\n hystManager.addSave(_this4.params, function (response) {\n if (response.state) {\n _this4.$notify({\n type: 'success',\n message: '新增成功',\n duration: 2000 // offset: 80\n\n });\n\n _this4.$emit('closeFormDiao');\n\n _this4.$emit('refList');\n } else {}\n });\n }\n\n if (_this4.title === '修改') {\n hystManager.upData(_this4.params, function (response) {\n if (response.state) {\n _this4.$notify({\n type: 'success',\n message: '修改成功',\n duration: 2000 // offset: 80\n\n });\n\n _this4.$emit('closeFormDiao');\n\n _this4.$emit('refList');\n } else {}\n });\n }\n } else {\n return false;\n }\n });\n },\n //获取字典数据\n getSysDict: function getSysDict() {\n var _this5 = this;\n\n var portal = window.context.portal;\n return new Promise(function (resolve, reject) {\n req.post(portal + '/sys/sysDictionary/v1/queryAllDictItems').then(function (response) {\n resolve(response.data);\n _this5.hystTypes = response.data.sdzlx; //水电站类型\n\n _this5.engScals = response.data.gcgm; //工程规模\n\n _this5.engGrads = response.data.gcdb; //工程等级\n\n _this5.mainBuildGrads = response.data.dbjb; //主要建筑物级别\n\n _this5.engStats = response.data.gcjsqk; //工程建设情况\n\n _this5.admDeps = response.data.gkglbm; //归口化管理\n\n if (_this5.title === '新增') {\n _this5.params.hystType = _this5.hystTypes[0].value;\n _this5.params.engGrad = _this5.engGrads[0].value;\n _this5.params.engScal = _this5.engScals[0].value;\n }\n }, function (error) {\n reject(error);\n });\n });\n }\n }\n};",null]}