1 line
7.9 KiB
JSON
1 line
7.9 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\\roleManagement\\popup\\ticketpop.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\jurisdiction\\roleManagement\\popup\\ticketpop.vue","mtime":1737610069432},{"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 \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { treeDataTranslate } from '@/utils';\nimport { truncate } from \"fs\";\nimport { GetChan, setRole, getAppRoleList as _getAppRoleList, getSecondDept, deptSelect2 } from \"@/api/getdata\";\nexport default {\n props: [\"width\", \"row\", \"title\"],\n data: function data() {\n return {\n options: [],\n /**拜访部门 */\n optionsSecond: [],\n //二级部门\n oldOrgId: this.row.org_id || \"\",\n oldOrgName: this.row.org_name || \"\",\n oldDeptId: this.row.department_id || \"\",\n oldDeptName: this.row.department_name || \"\",\n changeOrgId: this.row.org_id || \"\",\n changeOrgName: this.row.org_name || \"\",\n changeDeptId: this.row.department_id || \"\",\n changeDeptName: this.row.department_name || \"\",\n deptNameUrl: this.row.dept_name_url || \"\",\n deptIdUrl: this.row.dept_id_url || \"\",\n //role:[{id: 1,name:'超级管理员'},{id: 2,name:'普通员工'},{id: 9,name:'外部人员'},{id:3,name:\"新技术测试\"} ],\n role: [],\n lDialog: this.width > 500 ? \"w700\" : \"w500\",\n dialogVisible: true,\n rules: {\n bm: [{\n required: true,\n message: \"请选择部门名\",\n trigger: \"change\"\n }]\n },\n menuList: [],\n menuListTreeProps: {\n label: 'name',\n children: 'children'\n },\n chooseDeptId: this.row.dept_id_url == null ? [] : this.row.dept_id_url.split(\"/\"),\n chooseDeptName: this.row.dept_name_url == null ? [] : this.row.dept_name_url.split(\"/\")\n };\n },\n mounted: function mounted() {\n // this.getbmlist();\n this.selectMenu();\n this.getAppRoleList();\n },\n methods: {\n selectMenu: function selectMenu() {\n var _this = this;\n var Content = {};\n deptSelect2(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this.menuList = treeDataTranslate(res.returnData, 'id', 'parentId');\n }\n }).catch(function (err) {\n console.log(err);\n });\n },\n menuListTreeCurrentChangeHandle: function menuListTreeCurrentChangeHandle(data, node) {\n console.log(node, \"node\");\n console.log(data);\n this.chooseDeptId = [];\n this.chooseDeptName = [];\n this.getNodeData(node);\n this.row.dept_name_url = this.chooseDeptName.join(\"/\");\n this.row.dept_id_url = this.chooseDeptId.join(\"/\");\n // this.dataForm.parentId = data.id;\n // this.dataForm.parentName = data.name;\n this.$forceUpdate();\n },\n getNodeData: function getNodeData(node) {\n var name = node.data.name;\n var id = node.data.id;\n this.chooseDeptId.splice(0, 0, id);\n this.chooseDeptName.splice(0, 0, name);\n if (node.parent != null && node.parent.data.id && node.parent.data.id != 0) {\n this.getNodeData(node.parent);\n }\n console.log(this.chooseDeptId, 'chooseDeptId');\n },\n // firstDeptChange(org_id){\n // console.log(this.changeOrgId);\n // this.getSecondDept(org_id);\n // },\n // getbmlist(){\n // GetChan()\n // .then(res => {\n // if(res.returnCode == '1'){\n // // this.$message({\n // // message:res.returnMsg,\n // // type: \"success\"\n // // });\n // this.options = res.returnData;\n // this.getSecondDept(this.row.org_id);\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 // getSecondDept(deptId){\n // var aa = {\n // deptId : deptId\n // }\n // getSecondDept(aa)\n // .then(res => {\n // if(res.returnCode == '1'){\n // // this.$message({\n // // message:res.returnMsg,\n // // type: \"success\"\n // // });\n // this.optionsSecond = res.returnData;\n // if(deptId==this.oldOrgId){\n // this.changeDeptId = this.oldDeptId;\n // this.changeDeptName = this.oldDeptName;\n // }else{\n // this.changeDeptId = this.optionsSecond[0].id;\n // this.changeDeptName = this.optionsSecond[0].name;\n // }\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 getAppRoleList: function getAppRoleList() {\n var _this2 = this;\n var aa = {\n roleName: '',\n pageIndex: 1,\n pageSize: 100\n };\n _getAppRoleList(aa).then(function (res) {\n if (res.returnCode == '1') {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this2.role = res.returnData.data;\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n },\n /*关闭弹窗 */handleClose: function handleClose() {\n var _this3 = this;\n this.dialogVisible = false;\n this.$emit(\"closeDialog\");\n setTimeout(function () {\n _this3.dialogVisible = true;\n });\n },\n /**确认弹窗 */sureBtnClick: function sureBtnClick() {\n var _this4 = this;\n this.dialogVisible = false;\n this.$emit(\"closeDialog\");\n setTimeout(function () {\n _this4.dialogVisible = true;\n });\n },\n /**验证 */submitForm: function submitForm(formName) {\n // if(this.row.role_id == 0){\n // this.$message({\n // message:'如要设置超级管理员,请联系相关人员',\n // type: \"warning\"\n // });\n // return;\n // }\n var data = {\n id: this.row.id,\n org_id: this.chooseDeptId[0],\n departmentId: this.chooseDeptId[this.chooseDeptId.length - 1],\n deptNameUrl: this.chooseDeptName.join(\"/\"),\n deptIdUrl: this.chooseDeptId.join(\"/\"),\n roleId: this.row.role_id,\n isc_id: this.row.isc_id,\n realName: this.row.real_name,\n mobile: this.row.mobile\n };\n this.$emit('submit', data);\n }\n }\n};",null]} |