1 line
8.8 KiB
JSON
1 line
8.8 KiB
JSON
{"remainingRequest":"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\\addAccount.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\jurisdiction\\popup\\addAccount.vue","mtime":1737610069430},{"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\\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":["\"use strict\";\n\nvar _interopRequireDefault = require(\"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _getdata = require(\"@/api/getdata\");\nvar _popup = _interopRequireDefault(require(\"@/views/estate/examine/dialog/popup.vue\"));\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = exports.default = {\n props: [\"typeTitle\", \"row\", \"roleType\"],\n components: {\n Popup: _popup.default\n },\n data: function data() {\n return {\n isShowFl: false,\n searchS: false,\n validation: false,\n completeTitle: \"\",\n nav: \"\",\n dialogTableVisible: true,\n til: this.typeTitle,\n roleSelectProp: [],\n roleSelectOption: [],\n addShowInfo: {},\n isFlag: \"0\",\n detailList: {},\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 var reg2 = /[`~!@#$%^&*()_\\-+=<>?:\"{}|,./;'\\\\[\\]·~!@#¥%……&*()——\\-+={}|《》?:“”【】、;‘’,。、]/g;\n if (reg.test(value) && !reg2.test(value) && value) {\n callback();\n } else {\n callback(new Error(\"请输入正确的员工手机号!\"));\n }\n }\n }]\n }\n };\n },\n mounted: function mounted() {\n if (this.roleType == \"role\") {\n this.getroleSelect();\n }\n if (this.til == \"添加\") {\n this.ruleForm = {\n accountRoles: \"\",\n phone: \"\"\n };\n } else {\n this.getDetail();\n }\n },\n methods: {\n getDetail: function getDetail() {\n var _this = this;\n var Content = {\n id: this.row ? this.row.role_id : \"\"\n };\n // console.log(Content,117)\n (0, _getdata.roleSelectId)(Content).then(function (res) {\n console.log(res);\n if (res.returnCode == \"1\") {\n _this.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this.ruleForm = {\n accountRoles: res.returnData[0].user_id,\n phone: res.returnData[0].mobile\n };\n // if(res.returnData[0]){\n // this.isFlag = true;\n // }\n // this.addShowInfo = res.returnData[0];\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n },\n closeEnd: function closeEnd(val) {\n var _this2 = this;\n this.validation = false;\n if (val == \"2\") {\n //修改\n var Content = {\n // id:this.row.role_id,//数据id(管理列表里的id)\n // userId:用户id\n // userName:用户名称\n // roleId:角色id\n // roleName:角色名称\n };\n // changeRole\n } else if (val == \"3\") {\n //添加\n var Name;\n this.roleSelectProp.map(function (item, index) {\n if (item.roleId == _this2.ruleForm.accountRoles) {\n // console.log(item,150)\n Name = item.roleName;\n }\n });\n // console.log(Name,151)\n var onurl = window.location.href.indexOf('role') !== -1 ? 'APP角色管理' : '审批权限管理';\n var _Content = {\n roleUserId: this.addShowInfo ? this.addShowInfo.id : \"\",\n //用户id\n userName: this.addShowInfo ? this.addShowInfo.real_name : \"\",\n //用户名称\n roleId: this.row ? this.row.role_id : \"\",\n //角色id\n roleName: this.row ? this.row.role_name : \"\",\n //角色名称\n flag: onurl\n };\n console.log(_Content, 201);\n\n // roleId:\n // this.roleType == \"role\"\n // ? this.ruleForm.accountRoles\n // : this.row\n // ? this.row.role_id\n // : \"\", //角色id\n // roleName:\n // this.roleType == \"role\" ? Name : this.row ? this.row.role_name : \"\" ,//角色名称\n\n (0, _getdata.AddjurisdictionZh)(_Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this2.$emit('getlist');\n // this.addShowInfo = res.returnData[0];\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n setTimeout(function () {\n _this2.$emit(\"closeAdd\");\n }, 1000);\n }\n },\n submitForm: function submitForm(formName) {\n var _this3 = this;\n if (this.isFlag != \"0\") {\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 } else {\n this.searchS = true;\n this.$message({\n message: '请点击查询',\n type: \"warning\"\n });\n }\n },\n closeDialog: function closeDialog() {\n this.$emit(\"closeDialog\");\n // setTimeout(()=>{\n // this.dialogTableVisible = false;\n // })\n },\n searchInFo: function searchInFo(formName) {\n var _this4 = this;\n this.searchS = false;\n var Content = {\n mobile: this.ruleForm.phone\n };\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n (0, _getdata.selectPhone)(Content).then(function (res) {\n // console.log(res);\n if (res.returnCode == \"1\") {\n _this4.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n if (res.returnData[0]) {\n _this4.isFlag = \"1\";\n }\n if (res.returnData.length < 1) {\n _this4.isFlag = \"2\";\n }\n _this4.addShowInfo = res.returnData[0];\n } else {\n _this4.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n }\n });\n },\n getroleSelect: function getroleSelect() {\n var _this5 = this;\n (0, _getdata.roleSelectList)().then(function (res) {\n if (res.returnCode == \"1\") {\n // this.$message({\n // message: res.returnMsg,\n // type: \"success\"\n // });\n _this5.roleSelectProp = res.returnData;\n } else {\n _this5.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n }\n }\n};",null]} |