1 line
8.1 KiB
JSON
1 line
8.1 KiB
JSON
{"remainingRequest":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js!E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js!E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\hz-zhhq-web\\src\\views\\jurisdiction\\popup\\mergeAccount.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\jurisdiction\\popup\\mergeAccount.vue","mtime":1737610069431},{"path":"E:\\hz-zhhq-web\\babel.config.js","mtime":1737610069371},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import _defineProperty from \"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 Addaccount from \"../popup/addAccount.vue\";\nimport Paging from \"@/views/Public/paging.vue\";\nimport { roleSelect, UserListByRole, deleteRoleForUser } from \"@/api/getdata\";\nimport Popup from \"@/views/estate/examine/dialog/popup.vue\";\nexport default {\n props: [\"typeTitle\", \"roleId\"],\n components: {\n Popup: Popup,\n Addaccount: Addaccount\n },\n data: function data() {\n return {\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n roleType: \"role\",\n role: \"修改\",\n tableData: [],\n row: {},\n addFlag: false,\n tableCols: [// {\n // type: \"normal\",\n // is_show: true,\n // minWidth: \"150\",\n // prop: \"id\",\n // label: \"\",\n // align: \"center\",\n // minWidth: \"80\"\n // },\n _defineProperty({\n type: \"normal\",\n is_show: true,\n minWidth: \"160\",\n prop: \"department_name\",\n label: \"\",\n align: \"center\"\n }, \"minWidth\", \"80\"), _defineProperty({\n type: \"normal\",\n is_show: true,\n minWidth: \"150\",\n prop: \"real_name\",\n label: \"\",\n align: \"center\"\n }, \"minWidth\", \"80\"), {\n type: \"normal\",\n is_show: true,\n minWidth: \"180\",\n prop: \"mobile\",\n label: \"\",\n align: \"left\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"180\",\n prop: \"option\",\n label: \"\",\n align: \"left\"\n }],\n validation: false,\n completeTitle: '',\n nav: '',\n dialogTableVisible: true,\n til: this.typeTitle,\n roleSelectOption: [],\n ruleForm: {\n accountRoles: \"\",\n phone: \"\"\n },\n rules: {\n accountRoles: [{\n required: true,\n message: \"请选择\",\n trigger: \"blur\"\n }],\n phone: [{\n required: true,\n message: \"请输入员工手机号\",\n trigger: \"blur\"\n }, {\n validator: function validator(rule, value, callback) {\n var reg = /^1[3456789]\\d{9}$/;\n if (reg.test(value)) {\n callback();\n } else {\n callback(new Error(\"请输入正确的员工手机号!\"));\n }\n }\n }]\n }\n };\n },\n mounted: function mounted() {\n this.createLoad();\n // this.getroleSelect();\n this.getaccount();\n },\n methods: {\n createLoad: function createLoad() {\n this.loading = true;\n this.loadingMsg = '加载中...';\n },\n clearLoad: function clearLoad() {\n this.loading = false;\n this.loadingMsg = '';\n },\n closeaccount: function closeaccount() {},\n // closeDialog(){\n // },\n changeInfo: function changeInfo() {\n // this.typeTitle = '修改';\n this.addFlag = true;\n\n // this.row = row;\n },\n //删除用户\n deleteUser: function deleteUser(row) {\n // console.log(row)\n this.row = row;\n this.validation = true;\n this.completeTitle = '删除';\n this.nav = \"确认进行角色删除?\";\n // deleteRoleForUser\n },\n getaccount: function getaccount() {\n var _this = this;\n var Content = {\n roleId: this.roleId\n };\n UserListByRole(Content).then(function (res) {\n // console.log(res);\n if (res.returnCode == \"1\") {\n _this.clearLoad();\n // console.log(res)\n _this.tableData = res.returnData;\n _this.page.total = res.returnData.total;\n _this.page.limit = res.returnData.currentPage;\n if (_this.page.total == 0) {\n _this.$message({\n message: \"当前无数据\",\n type: \"success\"\n });\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n }\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n });\n },\n closeEnd: function closeEnd(val) {\n var _this2 = this;\n var onurl = window.location.href.indexOf('role') !== -1 ? 'APP角色管理' : '审批权限管理';\n // console.log(val,93)\n this.validation = false;\n if (val == '1') {\n //添加\n // this.$emit('delAccount',val);\n // deleteRoleForUser\n // console.log(this.row,202)\n deleteRoleForUser({\n id: this.row.id,\n userId: '12',\n flag: onurl\n }).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this2.createLoad();\n _this2.getaccount();\n _this2.$emit('delAccount', val);\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n });\n }\n },\n submitForm: function submitForm(formName) {\n var _this3 = this;\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n _this3.nav = \"确认添加账号?\";\n _this3.completeTitle = \"添加\";\n _this3.validation = true;\n // this.completeTitle = this.type=='2'?'修改':'添加';\n // this.nav = this.type == '2'?'确认修改嘛?':'确认添加嘛?'\n } else {\n console.log(\"error submit!!\");\n return false;\n }\n });\n },\n closeDialog: function closeDialog() {\n this.$emit('closeDialog');\n // setTimeout(()=>{\n // this.dialogTableVisible = false;\n // })\n },\n searchInFo: function searchInFo() {},\n getroleSelect: function getroleSelect() {\n // roleSelect()\n // .then(res => {\n // // console.log(res);\n // if (res.returnCode == \"1\") {\n // this.$message({\n // message: res.returnMsg,\n // type: \"success\"\n // });\n // this.roleSelectOption = res.returnData;\n // } else {\n // this.$message({\n // message: res.returnMsg,\n // type: \"warning\"\n // });\n // }\n // })\n // .catch(err => {\n // console.log(err);\n // });\n }\n }\n};",null]} |