1 line
7.5 KiB
JSON
1 line
7.5 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\\department\\popup\\addUpdatePop.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\jurisdiction\\department\\popup\\addUpdatePop.vue","mtime":1737610069429},{"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.regexp.replace\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { deptSelect } from \"@/api/getdata\";\nexport default {\n props: [\"width\", \"dataForm\", \"title\", \"type\", \"disabled\"],\n data: function data() {\n var _this2 = this;\n var validateUrl = function validateUrl(rule, value, callback) {\n if ((_this2.dataForm.type === 1 || _this2.dataForm.type === 3) && !/\\S/.test(value)) {\n callback(new Error('菜单URL不能为空'));\n } else {\n callback();\n }\n };\n return {\n dialogVisible: true,\n typeList: ['菜单', '条件'],\n //'APP目录', 'APP菜单',\n menuList: [],\n dialogImageUrl: '',\n isDelImg: false,\n menuListTreeProps: {\n label: 'name',\n children: 'children'\n },\n dataRule: {\n name: [{\n required: true,\n message: '菜单名称不能为空',\n trigger: 'blur'\n }],\n parentName: [{\n required: false,\n message: '上级菜单不能为空',\n trigger: 'change'\n }],\n url: [{\n validator: validateUrl,\n trigger: 'blur'\n }]\n }\n };\n },\n mounted: function mounted() {\n this.selectMenu();\n // this.menuListTreeSetCurrentNode();\n },\n methods: {\n // 查询菜单下拉框\n selectMenu: function selectMenu() {\n var _this3 = this;\n var Content = {};\n deptSelect(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this3.menuList = treeDataTranslate(res.returnData, 'id', 'parentId');\n }\n }).catch(function (err) {\n console.log(err);\n });\n },\n // 菜单树选中\n menuListTreeCurrentChangeHandle: function menuListTreeCurrentChangeHandle(data, node) {\n console.log(data);\n this.dataForm.parentId = data.id;\n this.dataForm.parentName = data.name;\n console.log(this.dataForm, '222222222222');\n this.$forceUpdate();\n },\n // 菜单树设置当前选中节点\n menuListTreeSetCurrentNode: function menuListTreeSetCurrentNode() {\n // debugger;\n // this.$refs.menuListTree.setCurrentKey(this.dataForm.parentCode)\n this.dataForm.parentName = (this.$refs.menuListTree.getCurrentNode() || {})['name'];\n },\n /*关闭弹窗 */handleClose: function handleClose() {\n var _this4 = this;\n this.dialogVisible = false;\n this.$emit(\"closeNewAlert\");\n setTimeout(function () {\n _this4.dialogVisible = true;\n });\n },\n /**提交 */submitForm: function submitForm() {\n var _this5 = this;\n this.$refs['dataForm'].validate(function
|