forked from zhurui/management
1 line
8.2 KiB
JSON
1 line
8.2 KiB
JSON
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!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\\equipmentManage\\access-update-password.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\equipmentManage\\access-update-password.vue","mtime":1614735254000},{"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//\nimport debounce from 'lodash/debounce';\nexport default {\n name: \"accessUpdatepassword\",\n data: function data() {\n return {\n visible: false,\n loading: false,\n dataForm: {\n ids: [],\n password: \"\"\n }\n };\n },\n computed: {\n dataRule: function dataRule() {\n return {\n password: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }, {\n min: 5,\n max: 8,\n message: \"长度在5到8个字符\",\n trigger: \"blur\"\n }, {\n validator: function validator(rule, value, callback) {\n if (value) {\n if (/[^\\w\\.\\/]/ig.test(value)) {\n callback(new Error('请不要输入中文和空格!'));\n } else {\n callback();\n }\n }\n\n callback();\n },\n trigger: 'blur'\n }]\n };\n }\n },\n methods: {\n init: function init(params) {\n var _this = this;\n\n this.visible = true;\n this.dataForm.ids = JSON.parse(params);\n this.$nextTick(function () {\n _this.$refs['dataForm'].resetFields();\n\n _this.roleIdListDefault = [];\n });\n },\n dataFormSubmitHandle: debounce(function () {\n var _this2 = this;\n\n this.$refs['dataForm'].validate(function (valid) {\n if (!valid) {\n return false;\n }\n\n _this2.loading = true;\n\n _this2.$http.post(\"/system/scaidooreight/batchUpatePsw\", _this2.dataForm).then(function (_ref) {\n var res = _ref.data;\n\n if (res.code !== 0) {\n return _this2.$message.error(res.msg);\n }\n\n return _this2.$message.success(res.msg);\n }).catch(function () {}).finally(function () {\n _this2.loading = false;\n _this2.visible = false;\n });\n });\n })\n }\n};",{"version":3,"sources":["access-update-password.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAkBA,OAAA,QAAA,MAAA,iBAAA;AACA,eAAA;AACA,EAAA,IAAA,EAAA,sBADA;AAEA,EAAA,IAFA,kBAEA;AACA,WAAA;AACA,MAAA,OAAA,EAAA,KADA;AAEA,MAAA,OAAA,EAAA,KAFA;AAGA,MAAA,QAAA,EAAA;AACA,QAAA,GAAA,EAAA,EADA;AAEA,QAAA,QAAA,EAAA;AAFA;AAHA,KAAA;AAQA,GAXA;AAYA,EAAA,QAAA,EAAA;AACA,IAAA,QADA,sBACA;AACA,aAAA;AACA,QAAA,QAAA,EAAA,CAAA;AACA,UAAA,QAAA,EAAA,IADA;AAEA,UAAA,OAAA,EAAA,KAAA,EAAA,CAAA,mBAAA,CAFA;AAGA,UAAA,OAAA,EAAA;AAHA,SAAA,EAIA;AACA,UAAA,GAAA,EAAA,CADA;AAEA,UAAA,GAAA,EAAA,CAFA;AAGA,UAAA,OAAA,EAAA,WAHA;AAIA,UAAA,OAAA,EAAA;AAJA,SAJA,EAUA;AACA,UAAA,SAAA,EAAA,mBAAA,IAA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A,OAAA,GAAA,KAAA;AACA,UAAA,MAAA,CAAA,OAAA,GAAA,KAAA;AACA,SAVA;AAWA,OAhBA;AAiBA,KAlBA;AATA;AA1CA,CAAA","sourcesContent":["<template>\n\t<el-dialog :visible.sync=\"visible\" title=\"批量修改密码\" :close-on-click-modal=\"false\" :close-on-press-escape=\"false\" width=\"30%\">\n\t\t<el-form :model=\"dataForm\" :rules=\"dataRule\" ref=\"dataForm\" @keyup.enter.native=\"dataFormSubmitHandle()\" label-width=\"120px\">\n\t\t\t<el-form-item v-model=\"dataForm.password\" placeholder=\"请选择\" label=\"新密码\" prop=\"password\">\n\t\t\t\t<el-input placeholder=\"请输入密码\" v-model=\"dataForm.password\" show-password show-word-limit></el-input>\n\t\t\t</el-form-item>\n\t\t\t<div class=\"tip\">\n\t\t\t\t你即将修改<span>{{dataForm.ids.length}}</span>台设备的密码\n\t\t\t</div>\n\t\t</el-form>\n\t\t<template slot=\"footer\">\n\t\t\t<el-button @click=\"visible = false\">{{ $t('cancel') }}</el-button>\n\t\t\t<el-button type=\"primary\" @click=\"dataFormSubmitHandle()\" v-loading=\"loading\">{{ $t('confirm') }}</el-button>\n\t\t</template>\n\t</el-dialog>\n</template>\n\n<script>\n\timport debounce from 'lodash/debounce'\n\texport default {\n\t\tname: \"accessUpdatepassword\",\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tvisible: false,\n\t\t\t\tloading: false,\n\t\t\t\tdataForm: {\n\t\t\t\t\tids: [],\n\t\t\t\t\tpassword: \"\",\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tcomputed: {\n\t\t\tdataRule() {\n\t\t\t\treturn {\n\t\t\t\t\tpassword: [{\n\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\tmessage: this.$t('validate.required'),\n\t\t\t\t\t\t\ttrigger: 'blur'\n\t\t\t\t\t\t}, {\n\t\t\t\t\t\t\tmin: 5,\n\t\t\t\t\t\t\tmax: 8,\n\t\t\t\t\t\t\tmessage: \"长度在5到8个字符\",\n\t\t\t\t\t\t\ttrigger: \"blur\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvalidator: (rule, value, callback) => {\n\t\t\t\t\t\t\t\tif (value) {\n\t\t\t\t\t\t\t\t\tif (/[^\\w\\.\\/]/ig.test(value)) {\n\t\t\t\t\t\t\t\t\t\tcallback(new Error('请不要输入中文和空格!'));\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tcallback();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcallback();\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\ttrigger: 'blur'\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\tinit(params) {\n\t\t\t\tthis.visible = true\n\t\t\t\tthis.dataForm.ids = JSON.parse(params)\n\t\t\t\tthis.$nextTick(() => {\n\t\t\t\t\tthis.$refs['dataForm'].resetFields()\n\t\t\t\t\tthis.roleIdListDefault = []\n\t\t\t\t})\n\t\t\t},\n\t\t\tdataFormSubmitHandle: debounce(function() {\n\t\t\t\tthis.$refs['dataForm'].validate((valid) => {\n\t\t\t\t\tif (!valid) {\n\t\t\t\t\t\treturn false\n\t\t\t\t\t}\n\t\t\t\t\tthis.loading = true\n\t\t\t\t\tthis.$http.post(`/system/scaidooreight/batchUpatePsw`, this.dataForm).then(({\n\t\t\t\t\t\tdata: res\n\t\t\t\t\t}) => {\n\t\t\t\t\t\tif (res.code !== 0) {\n\t\t\t\t\t\t\treturn this.$message.error(res.msg)\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn this.$message.success(res.msg)\n\t\t\t\t\t}).catch(() => {}).finally(() => {\n\t\t\t\t\t\tthis.loading = false\n\t\t\t\t\t\tthis.visible = false\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t})\n\t\t}\n\t}\n</script>\n\n<style scoped lang=\"scss\">\n\t.tip {\n\t\tfont-size: 20px;\n\t\tcolor: #FFF;\n\t\tfont-weight: 600;\n\n\t\tspan {\n\t\t\tfont-size: 24px;\n\t\t\tcolor: #C40\n\t\t}\n\t}\n</style>\n"],"sourceRoot":"src/views/modules/equipmentManage"}]} |