{"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\\rltForm-dailog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\reservoirManagement\\components\\rltForm-dailog.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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 req from '@/request.js';\nimport latitude from '@/mixins/latitude';\nimport capacity from '@/api/reservoirManagement/resFrom.js';\nimport uc from '@/api/uc.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport { mapState } from 'vuex';\nexport default {\n props: {\n rscd: {\n type: String,\n default: ''\n },\n stateTitlt: {\n type: String,\n default: ''\n }\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n tableData: [],\n title: '新增',\n title1: \"选择\",\n showFormDia: false,\n showTableDia: false,\n multipleSelection: [],\n multipleSelections: [],\n params: {\n rscdId: null,\n account: null,\n password: null,\n mobilePhone: null,\n fullName: null\n },\n accountOptions: [],\n loading: false,\n rules: {\n account: [{\n required: true,\n message: '请输入账号',\n trigger: ['change', 'blur']\n }],\n mobilePhone: [{\n required: true,\n message: '请输入联系电话',\n trigger: 'blur'\n }]\n }\n };\n },\n created: function created() {\n var _this = this;\n\n this.params.rscdId = this.rscd;\n this.getResInsList(); // 获取用户数据\n\n uc.getAllUser().then(function (res) {\n _this.accountOptions = res;\n console.log(res);\n });\n },\n methods: {\n // 账号添加\n handleAdd: function handleAdd() {\n this.showTableDia = true;\n },\n // addAccount (command) {\n // this.params.account = command.account;\n // this.params.fullname = command.fullname;\n // this.params.mobilePhone = command.mobile;\n // console.log(command);\n // },\n //指定一个key标识这一行的数据\n getRowKey: function getRowKey(row) {\n return row.id;\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val.map(function (item) {\n return item.id;\n });\n },\n addAcount: function addAcount() {\n this.showFormDia = true;\n this.title = '新增';\n },\n handleClose: function handleClose() {\n this.showFormDia = false;\n },\n handleTableClose: function handleTableClose() {\n this.showTableDia = false;\n },\n // 点击获取一行数据\n handleEdit: function handleEdit(row) {\n console.log(row);\n this.params.account = row.account;\n this.params.fullName = row.fullname;\n this.params.mobilePhone = row.mobile;\n this.handleTableClose();\n },\n deletAcount: function deletAcount() {\n var _this2 = this;\n\n capacity.deleteResIns(this.multipleSelection, function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000 // offset: 80\n\n });\n\n _this2.getResInsList();\n }\n });\n },\n bccelldblclick: function bccelldblclick(row, column, cell, event) {\n console.log(row, column, cell);\n this.showFormDia = true;\n this.title = '修改';\n this.params.id = row.id;\n this.params.account = row.account;\n this.params.fullName = row.fullName;\n this.params.password = row.password;\n this.params.mobilePhone = row.mobilePhone;\n },\n goInfo: function goInfo() {\n var _this3 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n if (_this3.title == '新增') {\n capacity.addResIns(_this3.params, function (res) {\n if (res.state) {\n _this3.$notify({\n type: 'success',\n message: '新增成功',\n duration: 2000\n });\n\n _this3.getResInsList();\n\n _this3.showFormDia = false;\n }\n });\n } else if (_this3.title == '修改') {\n capacity.updateResIns(_this3.params, function (res) {\n if (res.state) {\n _this3.$notify({\n type: 'success',\n message: '修改成功',\n duration: 2000\n });\n\n _this3.getResInsList();\n\n _this3.showFormDia = false;\n _this3.params = {\n rscdId: null,\n account: null,\n password: null,\n mobilePhone: null,\n fullName: null\n };\n }\n });\n }\n }\n });\n },\n getResInsList: function getResInsList() {\n var _this4 = this;\n\n this.loading = true;\n\n if (this.stateTitlt == '修改') {\n console.log(this.rscd);\n capacity.resInsList(this.rscd, function (res) {\n if (res.state) {\n _this4.tableData = res.value;\n _this4.loading = false;\n }\n });\n }\n }\n }\n};",null]}