{"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\\resForm-dialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\reservoirManagement\\components\\resForm-dialog.vue","mtime":1684458239527},{"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\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 reservoirManager from '@/api/reservoirManagement/reservoirManager.js';\nimport req from '@/request.js';\nimport latitude from '@/mixins/latitude';\nimport { scrollFormMixin } from '@/mixins/scrollFormMixin';\nimport reinforcement from \"./reinforcement.vue\";\nimport safetyAppraisal from \"./safetyAppraisal.vue\";\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport maintenance from \"./maintenance.vue\";\nimport capacity from \"./capacity.vue\";\nimport contingencyPlan from \"./contingencyPlan.vue\";\nimport rltFormdailog from \"./rltForm-dailog.vue\";\nimport { quillEditor } from 'vue-quill-editor';\nimport 'quill/dist/quill.core.css';\nimport 'quill/dist/quill.snow.css';\nimport 'quill/dist/quill.bubble.css';\nimport { mapState } from 'vuex';\nvar toolbarOptions = [['bold', 'italic', 'underline', 'strike'], // 加粗,斜体,下划线,删除线\n['blockquote', 'code-block'], //引用,代码块\n[{\n header: 1\n}, {\n header: 2\n}], // 几级标题\n[{\n list: 'ordered'\n}, {\n list: 'bullet'\n}], // 有序列表,无序列表\n[{\n script: 'sub'\n}, {\n script: 'super'\n}], // 下角标,上角标\n[{\n indent: '-1'\n}, {\n indent: '+1'\n}], // 缩进\n[{\n direction: 'rtl'\n}], // 文字输入方向\n[{\n size: ['small', false, 'large', 'huge']\n}], // 字体大小\n[{\n header: [1, 2, 3, 4, 5, 6, false]\n}], // 标题\n[{\n color: []\n}, {\n background: []\n}], // 颜色选择\n[{\n font: ['SimSun', 'SimHei', 'Microsoft-YaHei', 'KaiTi', 'FangSong', 'Arial']\n}], // 字体\n[{\n align: []\n}], // 居中\n['clean'], // 清除样式,\n['link', 'image'] // 上传图片、上传视频\n];\nexport default {\n name: 'resFormDialog',\n mixins: [scrollFormMixin],\n components: {\n quillEditor: quillEditor,\n reinforcement: reinforcement,\n safetyAppraisal: safetyAppraisal,\n maintenance: maintenance,\n contingencyPlan: contingencyPlan,\n capacity: capacity,\n rltFormdailog: rltFormdailog\n },\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 rscd: {\n type: String,\n default: ''\n }\n },\n data: function data() {\n return {\n dialogVisible: false,\n // 步骤条变量\n stepData: [{\n title: '基础信息',\n domId: 'step1'\n }, {\n title: '所在位置',\n domId: 'step2'\n }, {\n title: '水位特征',\n domId: 'step3'\n }],\n personTypeOne: [],\n activeName: 'form',\n orgIds: [],\n //组织下拉\n personIds: [],\n //组织人员下拉\n personTypes: [],\n //责任人类型\n isHeads: [{\n name: '是',\n value: '1'\n }, {\n name: '否',\n value: '0'\n }],\n //是否负责人\n tableData: [],\n resTypes: [],\n //水库类型\n params: {\n resInsList: [],\n persons: [],\n //责任人\n rscd: null,\n //水库代码\n rsnm: null,\n //水库名称\n rsrd: null,\n //水库注册码\n resType: null,\n //水库类型\n addvcd: null,\n //行政区\n cmdptel: null,\n //主管部门电话\n cpyr: null,\n //建成年月\n ctcd: null,\n //所在流域代码\n ddstcp: null,\n //死库容\n dmcrel: null,\n //坝顶高程\n dtpl: null,\n //水面基准\n eslg: null,\n //水库位置坐标_东经\n maxdmhg: null,\n //最大坝高\n nrlt: null,\n //水库位置坐标_北纬\n prgr: null,\n //工程等别(字典\n prsc: null,\n //工程规模(参考字典)\n prst: '1',\n //工程状态(1在建 2已建 9其他)\n rvcd: null,\n //所在河流代码(参考河流表)\n vltw: null,\n //水库所在乡镇位置\n waterSource: '0',\n //水源地\n rsov: null,\n rsfn: null,\n //水库功能\n hychList: {\n nrstlv: null,\n //正常蓄水位\n flcnstcp: null,\n //防洪库容\n ttstcp: null,\n //总库容\n ddwl: null,\n //死水位\n ddstcp: null,\n //死库容\n dsfllv: null,\n //设计洪水位\n chfllv: null,\n //校核洪水位\n acstcp: null,\n //兴利库容\n flsscnwl: null,\n //期限制水位\n rfstcp: null,\n //调洪库容\n catchmentArea: null,\n //水域面积\n watersArea: null,\n ////集雨面积\n fllv: null //防洪高水位\n\n },\n wrpRsrDm: {\n damName: null,\n //大坝名称\n damCode: null,\n //大坝代码\n damGrad: null,\n //大坝级别\n engGrad: null,\n //工程等级\n damTypeMat: null,\n //大坝材料类型\n ifMainDam: '0',\n //是否主坝\n damTypeStr: null,\n //大坝结构类型\n elevSys: null,\n //高程系统\n damMaxHeig: null,\n //最大坝高\n damTopLen: null,\n //坝顶长度\n damTopWid: null,\n //坝顶宽度\n damTopElev: null,\n //坝顶高程\n startDate: null,\n //开工时间\n compDate: null,\n //建成时间\n damLoc: null,\n //所在位置\n damLong: null,\n //坝址断面经度\n damLat: null,\n //坝址断面纬度\n damCba: null,\n //坝址控制流域面积\n damAr: null //坝址多年平均径流量\n\n },\n history: {\n content: null //历史文化内容\n\n }\n },\n elevSyss: [],\n //高程系统列表\n damTypeStrs: [],\n //大坝结构级别\n damTypeMats: [],\n //大坝材料级别\n damGrads: [],\n //大坝级别\n ifMainDams: [{\n name: '未知',\n value: '0'\n }, {\n name: '是',\n value: '1'\n }, {\n name: '否',\n value: '2'\n }],\n //是否主坝\n rsr: [],\n rvcds: [],\n //下拉\n ctcds: [],\n //下拉\n count: 0,\n rsrs: [{}],\n //水库功能\n prgrs: [],\n //工程等别(字典\n prscs: [],\n //工程规模(参考字典)\n dtpls: [],\n //水面基准\n waterSources: [{\n name: '非水源',\n value: '0'\n }, {\n name: '饮用水源',\n value: '1'\n }, {\n name: '备用水源',\n value: '2'\n }],\n //水源地\n multipleSelection: [],\n multipleSelections: [],\n prsts: [{\n name: '在建',\n value: '1'\n }, {\n name: '已建',\n value: '2'\n }, {\n name: '其他',\n value: '9'\n }],\n cmdps: [],\n //管理单位数组\n accound: 0,\n basGrads: [],\n //流域级别字典类型\n basAdNames: [],\n //行政下拉\n AdName: null,\n //接受每次选中的值\n counts: 0,\n Content: '',\n isClear: false,\n vuContent: '',\n //向富文本组件传参\n rules: {\n rscd: [{\n required: true,\n message: '请输入水库代码',\n trigger: 'blur'\n }],\n rsrd: [{\n required: true,\n message: '请输入水库注册码',\n trigger: 'blur'\n }],\n rsnm: [{\n required: true,\n message: '请输入水库名称',\n trigger: 'blur'\n }],\n resType: [{\n required: true,\n message: '请选择水库类型',\n trigger: 'blur'\n }],\n prsc: [{\n required: true,\n message: '请选择工程规模',\n trigger: 'blur'\n }],\n rsfn: [{\n required: true,\n message: '请选择水库功能',\n trigger: 'blur'\n }],\n prst: [{\n required: true,\n message: '请选择工程状态',\n trigger: 'blur'\n }],\n waterSource: [{\n required: true,\n message: '请选择水源地',\n trigger: 'blur'\n }],\n addvcd: [{\n required: true,\n message: '请选择行政区划',\n trigger: 'blur'\n }]\n },\n // 富文本配置\n editorOption: {\n placeholder: '请在这里输入',\n theme: 'snow',\n //主题 snow/bubble\n modules: {\n history: {\n delay: 1000,\n maxStack: 50,\n userOnly: false\n },\n toolbar: {\n container: toolbarOptions,\n handlers: {\n image: function image(value) {\n if (value) {\n // 调用element的图片上传组件\n document.querySelector('.avatar-uploader input').click();\n } else {\n this.quill.format('image', false);\n }\n }\n }\n }\n }\n },\n uploadUrl: window.context.portal + '/file/v1/upload',\n // 服务器上传地址\n accept: '.jpg,.jpeg,.png,.JPG,.JPEG,.gif,.PNG,.GIF',\n previewUrl: window.context.portal + '/file/onlinePreviewController/v1/getFileById_',\n waterId: null,\n tabType: true,\n //tab栏禁用状态\n wId: null //水库保存成功后端返回id\n\n };\n },\n created: function created() {\n var _this = this;\n\n this.getSysDict();\n this.getDetailInfo();\n this.getorgIds();\n this.getTreets(); // 行政区查询\n\n reservoirManager.getbasAdName({}, function (res) {\n _this.basAdNames = res.value;\n }); // 管理树\n\n reservoirManager.getrgTree({}, function (res) {\n _this.cmdps = res.value;\n });\n this.wId = this.pId;\n this.rscd = this.rscd;\n this.personClass = dictUtils.getDictItemsFromCache('zrlx');\n console.log(this.personClass);\n this.personClass.forEach(function (e) {\n console.log(e.value);\n\n if (e.value == 1) {\n _this.personTypes = e.lowerDic.zrrlx;\n } else if (e.value == 2) {\n _this.personTypess = e.lowerDic.zrrlx;\n }\n });\n },\n computed: mapState({\n header: function header(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n }\n }),\n methods: {\n deadLevs: function deadLevs(val) {\n switch (val) {\n case '1':\n this.params.eslg = latitude.TreeFour(this.params.eslg);\n break;\n\n case '2':\n this.params.nrlt = latitude.TreeFour(this.params.nrlt);\n break;\n\n case '3':\n this.params.wrpRsrDm.damLong = latitude.TreeFour(this.params.wrpRsrDm.damLong);\n break;\n\n case '4':\n this.params.wrpRsrDm.damLat = latitude.TreeFour(this.params.wrpRsrDm.damLat);\n break;\n // this.params.hychList.ttstcp = this.TenTwo(\n // \tthis.params.hychList.ttstcp\n // )\n\n case '5':\n this.params.wrpRsrDm.damCba = this.TenTwo(this.params.wrpRsrDm.damCba);\n break;\n\n case '6':\n this.params.wrpRsrDm.damAr = this.TenTwo(this.params.wrpRsrDm.damAr);\n break;\n\n case '7':\n this.params.hychList.catchmentArea = this.NineTwo(this.params.hychList.catchmentArea);\n break;\n\n case '8':\n this.params.hychList.watersArea = this.NineTwo(this.params.hychList.watersArea);\n break;\n\n case '9':\n this.params.hychList.nwsa = this.NineTwo(this.params.hychList.nwsa);\n break;\n\n default:\n this.params.nrlt = latitude.TreeFour(this.params.nrlt);\n }\n },\n rvcdChange: function rvcdChange(val) {\n if (val) {\n this.params.rvcd = val[val.length - 1];\n }\n },\n change: function change(val) {},\n getMsgFormSon: function getMsgFormSon(data) {\n this.params.history.content = data;\n },\n getTreets: function getTreets() {\n var _this2 = this;\n\n reservoirManager.getRvcds({}, function (res) {\n _this2.rvcds = res.value;\n }); // reservoirManager.getCtcds({}, (res) => {\n // this.ctcds = res.value\n // })\n },\n changeRsr: function changeRsr(val) {\n this.params.rsfn = val.toString();\n },\n getorgIds: function getorgIds() {\n var _this3 = this;\n\n // 获取组织\n reservoirManager.getorgId({}, function (res) {\n _this3.orgIds = res.value;\n });\n },\n changeOrgIds: function changeOrgIds(val) {\n var _this4 = this;\n\n if (val.orgId) {\n this.personIds = [];\n val.orgId = val.orgId[val.orgId.length - 1];\n val.personId = null;\n reservoirManager.getpersonId({\n val: val\n }, function (res) {\n _this4.personIds = res.value;\n\n _this4.$set(_this4.personIds);\n });\n } else {\n this.personIds = [];\n val.orgId = '';\n this.$set(this.personIds);\n }\n },\n // changePerson(val) {\n // console.log(val);\n // this.personClass.forEach(e=>{\n // if(e.value==val){\n // \t this.personTypes=e.lowerDic.zrrlx\n // }\n // })\n // },\n changePids: function changePids(val) {\n if (val.personId) {\n val.personId = val.personId;\n } else {\n val.personId = '';\n }\n },\n handleClick: function handleClick(tab, event) {},\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n handleChanges: function handleChanges(val) {\n this.multipleSelections = val;\n },\n //指定一个key标识这一行的数据\n getRowKey: function getRowKey(row) {\n return row.id;\n },\n chfllvs: function chfllvs() {\n this.params.hychList.chfllv = this.SixTwo(this.params.hychList.chfllv);\n },\n dsfllvs: function dsfllvs() {\n this.params.hychList.dsfllv = this.SixTwo(this.params.hychList.dsfllv);\n },\n damTopWids: function damTopWids() {\n this.params.wrpRsrDm.damTopWid = this.FiveTwo(this.params.wrpRsrDm.damTopWid);\n },\n flsscnwls: function flsscnwls() {\n this.params.hychList.flsscnwl = this.SixTwo(this.params.hychList.flsscnwl);\n },\n damMaxHeigs: function damMaxHeigs() {\n this.params.wrpRsrDm.damMaxHeig = this.FiveTwo(this.params.wrpRsrDm.damMaxHeig);\n },\n damTopLens: function damTopLens() {\n this.params.wrpRsrDm.damTopLen = this.FiveTwo(this.params.wrpRsrDm.damTopLen);\n },\n nrstlvs: function nrstlvs() {\n this.params.hychList.nrstlv = this.SixTwo(this.params.hychList.nrstlv);\n },\n deadLevsl: function deadLevsl() {\n this.params.hychList.ddwl = this.ElghtThreen(this.params.hychList.ddwl);\n },\n totCaps: function totCaps() {\n this.params.hychList.ttstcp = this.TenTwo(this.params.hychList.ttstcp);\n },\n dikeTopWidMaxs: function dikeTopWidMaxs() {\n this.params.wrpRsrDm.damTopElev = this.SixTwo(this.params.wrpRsrDm.damTopElev);\n },\n benResCaps: function benResCaps() {\n this.params.hychList.acstcp = this.NineTwo(this.params.hychList.acstcp);\n },\n deadCaps: function deadCaps() {\n this.params.hychList.ddstcp = this.NineTwo(this.params.hychList.ddstcp);\n },\n flcoCaps: function flcoCaps() {\n this.params.hychList.flcnstcp = this.NineTwo(this.params.hychList.flcnstcp);\n },\n // dmcrels(val) {\n // switch (val) {\n // case '1':\n // this.params.dmcrel = latitude.FourTwo(this.params.dmcrel)\n // break\n // case '2':\n // this.params.catchmentArea = latitude.FourTwo(\n // this.params.catchmentArea\n // )\n // break\n // default:\n // this.params.watersArea = latitude.FourTwo(\n // this.params.watersArea\n // )\n // }\n // },\n TenTwo: function TenTwo(value) {\n value = value.replace(/^0*(0\\.|[1-3])/, '$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).*$/, '$1$2.$3'); //只能输入两个小数\n\n value = value.indexOf('.') > 0 ? value.split('.')[0].substring(0, 8) + '.' + value.split('.')[1] : value.substring(0, 8);\n return value;\n },\n NineTwo: function NineTwo(value) {\n value = value.replace(/^0*(0\\.|[1-3])/, '$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).*$/, '$1$2.$3'); //只能输入两个小数\n\n value = value.indexOf('.') > 0 ? value.split('.')[0].substring(0, 7) + '.' + value.split('.')[1] : value.substring(0, 7);\n return value;\n },\n ElghtThreen: function ElghtThreen(value) {\n value = value.replace(/^0*(0\\.|[1-3])/, '$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, 5) + '.' + value.split('.')[1] : value.substring(0, 5);\n return value;\n },\n SixTwo: function SixTwo(value) {\n value = value.replace(/^0*(0\\.|[1-3])/, '$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).*$/, '$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 FiveTwo: function FiveTwo(value) {\n value = value.replace(/^0*(0\\.|[1-3])/, '$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).*$/, '$1$2.$3'); //只能输入两个小数\n\n value = value.indexOf('.') > 0 ? value.split('.')[0].substring(0, 3) + '.' + value.split('.')[1] : value.substring(0, 3);\n return value;\n },\n onhouChange: function onhouChange(val) {\n if (val) {\n this.params.addvcd = val[val.length - 1];\n } // let arr = this.basAdNames.filter((ite) => ite.code === val[0])\n // this.calleArr(arr, val[val.length - 1])\n\n },\n addAcount: function addAcount() {\n this.dialogVisible = true;\n },\n deletAcount: function deletAcount() {\n var _this5 = this;\n\n if (this.multipleSelection && this.multipleSelection.length) {\n this.multipleSelection.forEach(function (item) {\n _this5.params.resInsList.forEach(function (data, i) {\n if (item.id == data.id) {\n _this5.params.resInsList.splice(i, 1);\n }\n });\n });\n }\n },\n insort: function insort(val, index) {\n var _this6 = this;\n\n var arr = JSON.parse(JSON.stringify(this.params.persons));\n arr.splice(index, 1);\n arr.forEach(function (e) {\n if (val.sn == e.sn) {\n _this6.$message.warning('存在相同排序号');\n }\n });\n },\n addAcounts: function addAcounts() {\n var num = this.counts++;\n var count = this.params.persons.length + 1;\n this.params.persons.push({\n ident: num,\n orgId: '',\n personId: '',\n sn: count\n });\n },\n arrayRepeat: function arrayRepeat(array1, array2) {\n var result = [];\n\n for (var i = 0; i < array2.length; i++) {\n var obj = array2[i];\n var num = obj.destId;\n var isExist = false;\n\n for (var j = 0; j < array1.length; j++) {\n var aj = array1[j];\n var n = aj.destId;\n\n if (n === num) {\n isExist = true;\n break;\n }\n }\n\n if (!isExist) {\n result.push(obj);\n }\n }\n\n return result;\n },\n //判断是否显示按钮\n leaveTab: function leaveTab(activeName, oldActiveName) {\n this.activeName = activeName;\n },\n deletAcounts: function deletAcounts() {\n var _this7 = this;\n\n if (this.multipleSelections && this.multipleSelections.length) {\n this.multipleSelections.forEach(function (item) {\n _this7.params.persons.forEach(function (data, i) {\n if (item.id == data.id) {\n _this7.params.persons.splice(i, 1);\n }\n });\n });\n }\n },\n // 根据ID查询\n getDetailInfo: function getDetailInfo() {\n var _this8 = this;\n\n if (this.title === '修改') {\n this.tabType = false;\n reservoirManager.getbasAdName({}, function (res) {\n _this8.basAdNames = res.value;\n });\n reservoirManager.getpersonId({}, function (res) {\n _this8.personIds = res.value;\n }); // this.getSysDict()\n\n reservoirManager.detailId(this.pId, function (res) {\n if (!res.value.wrpRsrDm) {\n res.value.wrpRsrDm = {};\n }\n\n _this8.params = res.value; // this.params.persons.sort((a, b) => {\n // return a.sn - b.sn\n // })\n\n _this8.vuContent = res.value.history.content; // this.personIds.forEach(e=>{\n // if(this.params.persons){\n // if(this.params.persons.personId===e.orgId){\n // this.params.persons.personId=e.orgId;\n // }\n // }\n // })\n\n var arr = res.value.rsfn.split('');\n arr.forEach(function (e, i) {\n if (e.indexOf(',') > '-1' || e.indexOf(',') > -1) {\n arr.splice(i, 1);\n }\n });\n _this8.rsr = arr;\n });\n }\n },\n handleClose: function handleClose() {\n this.params = {\n rsov: null,\n benResCap: null,\n //兴利库容\n rscd: null,\n //水库代码\n rsnm: null,\n //水库名称\n resType: null,\n //水库类型\n cmdptel: null,\n //主管部门电话\n cpyr: null,\n //建成年月\n ctcd: null,\n //所在流域代码\n deadCap: null,\n //死库容\n ddwl: null,\n //死水位\n dmcrel: null,\n //坝顶高程\n dsfllv: null,\n //设计洪水位\n dtpl: null,\n //水面基准\n eslg: null,\n //水库位置坐标_东经\n flcoCap: null,\n //防洪库容\n flsscnwl: null,\n //期限制水位\n maxdmhg: null,\n //最大坝高\n nrlt: null,\n //水库位置坐标_北纬\n nrstlv: null,\n //正常蓄水位\n prgr: null,\n //工程等别(字典\n prsc: null,\n //工程规模(参考字典)\n prst: null,\n //工程状态(1在建 2已建 9其他\n rvcd: null,\n //所在河流代码(参考河流表)\n totCap: null,\n //总库容\n vltw: null //水库所在乡镇位置\n\n };\n this.$emit('closeFormDiao');\n },\n goInfo: function goInfo(e) {\n var _this9 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n if (_this9.title === '新增') {\n var canAdd = true;\n\n if (_this9.params.resInsList.length != 0) {\n _this9.params.resInsList.forEach(function (item) {\n if (!item.account || !item.password) {\n canAdd = false;\n }\n });\n }\n\n if (canAdd) {\n reservoirManager.addSave(_this9.params, function (response) {\n if (response.state) {\n if (response.value) {\n _this9.tabType = false;\n _this9.wId = response.value;\n }\n\n _this9.$notify({\n type: 'success',\n message: '暂存成功',\n duration: 2000 // offset: 80\n\n });\n\n _this9.$emit('closeFormDiao');\n\n _this9.$emit('refList');\n } else {} // this.$emit('closeFormDiao')\n\n });\n }\n }\n\n if (_this9.title === '修改') {\n reservoirManager.upData(_this9.params, function (response) {\n if (response.state) {\n _this9.$notify({\n type: 'success',\n message: '修改成功',\n duration: 2000 // offset: 80\n\n });\n\n _this9.$emit('closeFormDiao');\n\n _this9.$emit('refList'); // this.$message.success(response.message)\n\n } else {// this.$message.success(response.message)\n } // this.$emit('closeFormDiao')\n // this.$router.go(-1)\n\n });\n }\n } else {\n return false;\n }\n });\n },\n //获取字典数据\n getSysDict: function getSysDict() {\n var _this10 = 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\n if (_this10.title == '修改') {\n _this10.prgrs = response.data.gcdb;\n _this10.prscs = response.data.gcgm;\n _this10.resTypes = response.data.sklx;\n _this10.basGrads = response.data.lyjb;\n _this10.dtpls = response.data.szjm;\n _this10.rsrs = response.data.skgn;\n _this10.ctcds = response.data.ly; // this.personTypes = response.data.zrrlx\n\n _this10.damGrads = response.data.dbjb;\n _this10.damTypeMats = response.data.dbcl;\n _this10.damTypeStrs = response.data.dbjg;\n _this10.elevSyss = response.data.gcxt;\n } else {\n _this10.prgrs = response.data.gcdb;\n _this10.params.prgr = _this10.prgrs[0].value;\n _this10.params.wrpRsrDm.engGrad = _this10.prgrs[0].value;\n _this10.prscs = response.data.gcgm;\n _this10.resTypes = response.data.sklx;\n _this10.basGrads = response.data.lyjb;\n _this10.dtpls = response.data.szjm;\n _this10.params.dtpl = _this10.dtpls[0].value;\n _this10.rsrs = response.data.skgn;\n _this10.ctcds = response.data.ly; // this.personTypes = response.data.zrrlx\n\n _this10.damGrads = response.data.dbjb;\n _this10.params.wrpRsrDm.damGrad = _this10.damGrads[0].value;\n _this10.damTypeMats = response.data.dbcl;\n _this10.params.wrpRsrDm.damTypeMat = _this10.damTypeMats[0].value;\n _this10.damTypeStrs = response.data.dbjg;\n _this10.params.wrpRsrDm.damTypeStr = _this10.damTypeStrs[0].value;\n _this10.elevSyss = response.data.gcxt;\n _this10.params.wrpRsrDm.elevSys = _this10.elevSyss[0].value;\n _this10.params.resType = _this10.resTypes[0].value;\n _this10.params.prsc = _this10.prscs[0].value;\n }\n }, function (error) {\n reject(error);\n });\n });\n },\n changebasAdName: function changebasAdName(val) {\n if (val) {\n this.params.addvcd = val.toString();\n } else {\n this.params.addvcd = null;\n }\n },\n changeArea: function changeArea(val) {\n if (val) {\n this.params.basArea = val;\n } else {\n this.params.basArea = null;\n }\n },\n changecrOverType: function changecrOverType(val) {\n if (val) {\n this.params.crOverType = val;\n } else {\n this.params.crOverType = null;\n }\n },\n changebasGrad: function changebasGrad(val) {\n if (val) {\n this.params.basGrad = val;\n } else {\n this.params.basGrad = null;\n }\n },\n //富文本\n // 失去焦点\n onEditorBlur: function onEditorBlur(editor) {},\n // 获得焦点\n onEditorFocus: function onEditorFocus(editor) {},\n // 开始\n onEditorReady: function onEditorReady(editor) {},\n // 值发生变化\n onEditorChange: function onEditorChange(editor) {\n this.params.history.content = editor.html;\n },\n // 父组件获取数据\n getVal: function getVal() {\n return this.params.history.content;\n },\n beforeUpload: function beforeUpload(file) {\n return true;\n },\n uploadSuccess: function uploadSuccess(res) {\n console.log(res); // 获取富文本组件实例\n\n var quill = this.$refs.QuillEditor.quill; // 如果上传成功\n\n if (res) {\n // 获取光标所在位置\n var fileId = res.fileId;\n var url = this.previewUrl + fileId;\n var length = quill.getSelection().index; // 插入图片,res为服务器返回的图片链接地址\n\n quill.insertEmbed(length, 'image', url); // 调整光标到最后\n\n quill.setSelection(length + 1);\n } else {\n // 提示信息,需引入Message\n this.$message.error('图片插入失败!');\n }\n }\n }\n};",null]}