1 line
17 KiB
JSON
1 line
17 KiB
JSON
|
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\sys\\user-add-or-update.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\sys\\user-add-or-update.vue","mtime":1620724486256},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\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 debounce from 'lodash/debounce'\nimport {\n\tisEmail,\n\tisMobile\n} from '@/utils/validate'\nimport {\n\tgetDictDataList\n} from '@/utils'\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tvisible: false,\n\t\t\troleList: [],\n\t\t\troleIdListDefault: [],\n\t\t\t// genderList: getDictDataList('gender'),\n\t\t\t// genderList: [{dictLabel: \"男\", dictValue: \"男\"}, {dictLabel: \"女\", dictValue: \"女\"}, {dictLabel: \"保密\", dictValue: \"保密\"},],\n\t\t\tdataForm: {\n\t\t\t\tid: '',\n\t\t\t\tusername: '',\n\t\t\t\tdeptId: '0',\n\t\t\t\tdeptName: '',\n\t\t\t\tpassword: '',\n\t\t\t\tconfirmPassword: '',\n\t\t\t\trealName: '',\n\t\t\t\tgender: '0',\n\t\t\t\temail: '',\n\t\t\t\tmobile: '',\n\t\t\t\troleIdList: [],\n\t\t\t\tstatus: 1\n\t\t\t}\n\t\t}\n\t},\n\tcomputed: {\n\t\tdataRule() {\n\t\t\tvar validatePassword = (rule, value, callback) => {\n\t\t\t\tif (!this.dataForm.id && !/\\S/.test(value)) {\n\t\t\t\t\treturn callback(new Error(this.$t('validate.required')))\n\t\t\t\t}\n\t\t\t\tcallback()\n\t\t\t}\n\t\t\tvar validateConfirmPassword = (rule, value, callback) => {\n\t\t\t\tif (!this.dataForm.id && !/\\S/.test(value)) {\n\t\t\t\t\treturn callback(new Error(this.$t('validate.required')))\n\t\t\t\t}\n\t\t\t\tif (this.dataForm.password !== value) {\n\t\t\t\t\treturn callback(new Error(this.$t('user.validate.confirmPassword')))\n\t\t\t\t}\n\t\t\t\tcallback()\n\t\t\t}\n\t\t\tvar validateEmail = (rule, value, callback) => {\n\t\t\t\tif (!isEmail(value)) {\n\t\t\t\t\treturn callback(new Error(this.$t('validate.format', {\n\t\t\t\t\t\t'attr': this.$t('user.email')\n\t\t\t\t\t})))\n\t\t\t\t}\n\t\t\t\tcallback()\n\t\t\t}\n\t\t\tvar validateMobile = (rule, value, callback) => {\n\t\t\t\tif (!isMobile(value)) {\n\t\t\t\t\treturn callback(new Error(this.$t('validate.format', {\n\t\t\t\t\t\t'attr': this.$t('user.mobile')\n\t\t\t\t\t})))\n\t\t\t\t}\n\t\t\t\tcallback()\n\t\t\t}\n\t\t\t// return {\n\t\t\t// \tusername: [{\n\t\t\t// \t\trequired: true,\n\t\t\t// \t\tmessage: this.$t('validate.required'),\n\t\t\t// \t\ttrigger: 'blur'\n\t\t\t// \t}],\n\t\t\t// \tdeptName: [{\n\t\t\t// \t\trequired: true,\n\t\t\t// \t\tmessage: this.$t('validate.required'),\n\t\t\t// \t\ttrigger: 'change'\n\t\t\t// \t}],\n\t\t\t// \tpassword: [{\n\t\t\t// \t\tvalidator: validatePassword,\n\t\t\t// \t\ttrigger: 'blur'\n\t\t\t// \t}],\n\t\t\t// \tconfirmPassword: [{\n\t\t\t// \t\tvalidator: validateConfirmPassword,\n\t\t\t// \t\ttrigger: 'blur'\n\t\t\t// \t}],\n\t\t\t// \trealName: [{\n\t\t\t// \t\trequired: true,\n\t\t\t// \t\tmessage: this.$t('validate.required'),\n\t\t\t// \t\ttrigger: 'blur'\n\t\t\t// \t}],\n\t\t\t// \temail: [{\n\t\t\t// \t\t\trequired: true,\n\t\t\t// \t\t\tmessage: this.$t('validate.required'),\n\t\t\t// \t\t\ttrigger: 'blur'\n\t\t\t// \t\t},\n\t\t\t// \t\t{\n\t\t\t// \t\t\tvalidator: isEmail,\n\t\t\t// \t\t\ttrigger: 'blur'\n\t\t\t// \t\t}\n\t\t\t// \t],\n
|