{"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\\stManager\\components\\gqForm-dialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\stManager\\components\\gqForm-dialog.vue","mtime":1684458239637},{"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":["import \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/es6.regexp.to-string\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 gqManager from '@/api/stManager/gqManager.js';\nimport req from '@/request.js';\nimport latitude from '@/mixins/latitude';\nexport default {\n name: 'deviceForm-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 mpnm: null,\n //测点名称\n mpcd: null,\n //测点编号\n mptp: null,\n //测点类型\n mstp: null,\n //监测类型\n addvcd: null,\n //测点所在行政区划代码\n bsin: null,\n //基础情况\n ch: null,\n //基面高差\n dtdt: null,\n //测定日期\n el: null,\n //高程\n hycncd: null,\n //水工建筑物类别\n isImportant: '1',\n //重点关注\n id: null,\n //主键ID\n indt: null,\n //安装日期\n ipbtel: null,\n //进水段高程\n iptpel: null,\n //进水段顶高程\n lgtd: null,\n //经度\n lttd: null,\n //纬度\n ofax: null,\n //轴距\n pmbtel: null,\n //透水段底高程\n pmtpel: null,\n //透水段顶高程\n rscd: null,\n //水库代码\n stel: null,\n //起始高程\n stlc: null,\n //安装详细地址\n sttp: null,\n //工情设施类型\n tbbtel: null,\n //管底高程\n tbtpel: null,\n //管口高程\n tp: null,\n //安装型式\n wkcn: null,\n //工作状态\n xrfvl: null,\n //X向基准值\n yrfvl: null,\n //Y向基准值\n admaur: null,\n //设备管理人员\n admaurtel: null,\n //设备管理人员电话\n matenur: null,\n //设备维护人员\n matenurtel: null //设备维护人员电话\n\n },\n hycncds: [],\n mptpType: [],\n ///测点类型\n wkcnState: [{\n name: '异常',\n value: '0'\n }, {\n name: '正常',\n value: '1'\n }],\n mstptype: [],\n sttpType: [],\n //工情设施类型\n rscds: [],\n //水库\n addvcds: [],\n //行政下拉\n elevSyss: [],\n //工程建设情况\n rules: {\n basAdName: [{\n required: true,\n message: '请选择行政区划',\n trigger: 'blur'\n }],\n mpnm: [{\n required: true,\n message: '请输入测点名称',\n trigger: 'blur'\n }],\n mpcd: [{\n required: true,\n message: '请输入测点编号',\n trigger: 'blur'\n }],\n mptp: [{\n required: true,\n message: '请选择测点类型',\n trigger: 'blur'\n }],\n sttp: [{\n required: true,\n message: '请选择工情设施类型',\n trigger: 'blur'\n }],\n addvcd: [{\n required: true,\n message: '请选择所在行政区划代码',\n trigger: 'blur'\n }],\n rscd: [{\n required: true,\n message: '请选择关联水库',\n trigger: 'blur'\n }],\n hycncd: [{\n required: true,\n message: '请选择水工建筑物类别',\n trigger: 'blur'\n }]\n }\n };\n },\n created: function created() {\n this.getDetailInfo();\n this.getSysDict();\n this.getTreets();\n },\n methods: {\n deadLevs: function deadLevs(val) {\n switch (val) {\n case '1':\n this.params.lgtd = latitude.TreeFour(this.params.lgtd);\n break;\n\n case '2':\n this.params.lttd = latitude.TreeFour(this.params.lttd);\n break;\n\n default:\n this.params.lttd = latitude.TreeFour(this.params.lttd);\n }\n },\n changeParentId: function changeParentId(val) {\n this.params.parentId = '1';\n },\n // 根据ID查询\n getDetailInfo: function getDetailInfo() {\n var _this = this;\n\n if (this.title === '修改') {\n this.getSysDict();\n gqManager.detailId(this.pId, function (res) {\n _this.params = res.value;\n\n _this.$set(_this.params);\n });\n }\n },\n handleClose: function handleClose() {\n this.params = {\n mpnm: null,\n //测点名称\n mpcd: null,\n //测点编号\n mptp: null,\n //测点类型\n mstp: null,\n //监测类型\n addvcd: null,\n //测点所在行政区划代码\n bsin: null,\n //基础情况\n ch: null,\n //基面高差\n dtdt: null,\n //测定日期\n el: null,\n //高程\n hycncd: null,\n //水工建筑物类别\n id: null,\n //主键ID\n indt: null,\n //安装日期\n ipbtel: null,\n //进水段高程\n iptpel: null,\n //进水段顶高程\n lgtd: null,\n //经度\n lttd: null,\n //纬度\n ofax: null,\n //轴距\n pmbtel: null,\n //透水段底高程\n pmtpel: null,\n //透水段顶高程\n rscd: null,\n //水库代码\n stel: null,\n //起始高程\n stlc: null,\n //安装详细地址\n sttp: null,\n //工情设施类型\n tbbtel: null,\n //管底高程\n tbtpel: null,\n //管口高程\n tp: null,\n //安装型式\n wkcn: null,\n //工作状态\n xrfvl: null,\n //X向基准值\n yrfvl: null,\n //Y向基准值\n admaur: null,\n //设备管理人员\n admaurtel: null,\n //设备管理人员电话\n matenur: null,\n //设备维护人员\n matenurtel: null //设备维护人员电话\n\n };\n this.$emit('closeFormDiao');\n },\n goInfo: function goInfo(e) {\n var _this2 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n if (_this2.title === '新增') {\n var param = JSON.parse(JSON.stringify(_this2.params));\n console.log(param);\n gqManager.addSave(param, function (response) {\n if (response.state) {\n _this2.$notify({\n type: 'success',\n message: '新增成功',\n duration: 2000 // offset: 80\n\n });\n\n _this2.$emit('closeFormDiao');\n\n _this2.$emit('refList');\n } else {}\n });\n }\n\n if (_this2.title === '修改') {\n gqManager.upData(_this2.params, function (response) {\n if (response.state) {\n _this2.$notify({\n type: 'success',\n message: '修改成功',\n duration: 2000 // offset: 80\n\n });\n\n _this2.$emit('closeFormDiao');\n\n _this2.$emit('refList');\n } else {}\n });\n }\n } else {\n return false;\n }\n });\n },\n onhouChange: function onhouChange(val) {\n //选择行政区\n this.params.addvcd = val.pop().toString();\n },\n getTreets: function getTreets() {\n var _this3 = this;\n\n gqManager.getCtcds({}, function (res) {\n _this3.bscds = res.value; //流域下拉\n }); // 行政区查询\n\n gqManager.getbasAdName({}, function (res) {\n _this3.addvcds = res.value;\n }); // 管理树\n\n gqManager.getrgTree({}, function (res) {\n _this3.cmdps = res.value;\n }); //获取水库\n\n gqManager.getRscds({}, function (res) {\n _this3.rscds = res.value;\n });\n },\n Srule1: function Srule1() {\n this.params.ch = this.SevenTreen(this.params.ch);\n },\n Srule2: function Srule2() {\n this.params.ofax = this.SevenTreen(this.params.ofax);\n },\n Srule3: function Srule3() {\n this.params.stel = this.SevenTreen(this.params.stel);\n },\n Srule4: function Srule4() {\n this.params.el = this.SevenTreen(this.params.el);\n },\n Srule5: function Srule5() {\n this.params.xrfvl = this.SevenTreen(this.params.xrfvl);\n },\n Srule6: function Srule6() {\n this.params.yrfvl = this.SevenTreen(this.params.yrfvl);\n },\n Srule7: function Srule7() {\n this.params.pmbtel = this.SevenTreen(this.params.pmbtel);\n },\n Srule8: function Srule8() {\n this.params.pmtpel = this.SevenTreen(this.params.pmtpel);\n },\n Srule9: function Srule9() {\n this.params.tbtpel = this.SevenTreen(this.params.tbtpel);\n },\n Srule10: function Srule10() {\n this.params.tbbtel = this.SevenTreen(this.params.tbbtel);\n },\n Srule11: function Srule11() {\n this.params.ipbtel = this.SevenTreen(this.params.ipbtel);\n },\n Srule12: function Srule12() {\n this.params.iptpel = this.SevenTreen(this.params.iptpel);\n },\n SevenTreen: function SevenTreen(value) {\n value = value.replace(/^0*(0\\.|[1-4])/, '$1');\n value = value.replace(/[^\\d.]/g, ''); //清除\"数字\"和\".\"以外的字符\n\n value = value.replace(/^\\./g, ''); //验证第一个字符是数字而不是字符\n\n value = value.replace(/\\.{1,}/g, '.'); //只保留第一个.清除多余的\n\n value = value.replace('.', '$#$').replace(/\\./g, '').replace('$#$', '.');\n value = value.replace(/^(\\-)*(\\d*)\\.(\\d\\d\\d).*$/, '$1$2.$3'); //只能输入三个小数\n\n value = value.indexOf('.') > 0 ? value.split('.')[0].substring(0, 4) + '.' + value.split('.')[1] : value.substring(0, 4);\n return value;\n },\n //获取字典数据\n getSysDict: function getSysDict() {\n var _this4 = 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 _this4.mstptype = response.data.jclx;\n _this4.objIds = response.data.sbdxfl;\n _this4.appTypeCodesType = response.data.sbyyfl;\n _this4.sttpType = response.data.gqsslx; //工情设施类型\n\n _this4.mptpType = response.data.cdlx; //测点类型\n\n _this4.hycncds = response.data.sgjzwlb; //水工建筑物类别\n\n if (_this4.title === '新增') {// this.params.type = this.types[0].value\n // this.params.objId = this.objIds[0].value\n }\n }, function (error) {\n reject(error);\n });\n });\n }\n }\n};",null]}