hz-zhhq-web/node_modules/.cache/babel-loader/f152342b113dfdb99753ca9ffa4...

1 line
7.3 KiB
JSON
Raw Normal View History

2025-02-25 13:43:48 +08:00
{"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\\menu\\popup\\addUpdatePop.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\jurisdiction\\menu\\popup\\addUpdatePop.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\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nrequire(\"core-js/modules/es6.regexp.replace\");\nrequire(\"core-js/modules/es6.regexp.split\");\nrequire(\"core-js/modules/es6.function.name\");\nvar _utils = require(\"@/utils\");\nvar _getdata = require(\"@/api/getdata\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: [\"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: ['Web目录', 'Web菜单'],\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: true,\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 },\n methods: {\n // 查询菜单下拉框\n selectMenu: function selectMenu() {\n var _this3 = this;\n var Content = {};\n (0, _getdata.selectMenu)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this3.menuList = (0, _utils.treeDataTranslate)(res.returnData, 'id');\n }\n }).catch(function (err) {\n console.log(err);\n });\n },\n // 菜单树选中\n menuListTreeCurrentChangeHandle: function menuListTreeCurrentChangeHandle(data, node) {\n this.dataForm.parentId = data.id;\n this.dataForm.parentName = data.name;\n },\n // 菜单树设置当前选中节点\n menuListTreeSetCurrentNode: function menuListTreeSetCurrentNode() {\n this.$refs.menuListTree.setCurrentKey(this.dataForm.parentId);\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 (valid) {\n if (valid) {\n _this5.dataForm.isDelImg = _this5.isDelImg;\n _this5.$e