1 line
3.4 KiB
JSON
1 line
3.4 KiB
JSON
{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\system\\build\\components\\TreeNodeDialog.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\system\\build\\components\\TreeNodeDialog.vue","mtime":1732871026715},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\babel.config.js","mtime":1732871025888},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1732872825835}],"contextDependencies":[],"result":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _index = require(\"../utils/index\");\nvar _db = require(\"../utils/db\");\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\nvar id = (0, _db.getTreeNodeId)();\nvar _default = exports.default = {\n name: 'TreeNodeDialog',\n components: {},\n inheritAttrs: false,\n props: [],\n data: function data() {\n return {\n id: id,\n formData: {\n label: undefined,\n value: undefined\n },\n rules: {\n label: [{\n required: true,\n message: '请输入选项名',\n trigger: 'blur'\n }],\n value: [{\n required: true,\n message: '请输入选项值',\n trigger: 'blur'\n }]\n },\n dataType: 'string',\n dataTypeOptions: [{\n label: '字符串',\n value: 'string'\n }, {\n label: '数字',\n value: 'number'\n }]\n };\n },\n computed: {},\n watch: {\n // eslint-disable-next-line func-names\n 'formData.value': function formDataValue(val) {\n this.dataType = (0, _index.isNumberStr)(val) ? 'number' : 'string';\n },\n id: function id(val) {\n (0, _db.saveTreeNodeId)(val);\n }\n },\n created: function created() {},\n mounted: function mounted() {},\n methods: {\n onOpen: function onOpen() {\n this.formData = {\n label: undefined,\n value: undefined\n };\n },\n onClose: function onClose() {},\n close: function close() {\n this.$emit('update:visible', false);\n },\n handelConfirm: function handelConfirm() {\n var _this = this;\n this.$refs.elForm.validate(function (valid) {\n if (!valid) return;\n if (_this.dataType === 'number') {\n _this.formData.value = parseFloat(_this.formData.value);\n }\n _this.formData.id = _this.id++;\n _this.$emit('commit', _this.formData);\n _this.close();\n });\n }\n }\n};",null]} |