| | |
| | | </el-col>
|
| | | <el-col :span="12">
|
| | | <el-form-item v-if="form.userId == undefined" label="用户密码" prop="password">
|
| | | <el-input v-model="form.password" placeholder="请输入用户密码" type="password" maxlength="20" />
|
| | | <el-input v-model="form.password" placeholder="请输入用户密码" type="password" maxlength="20" show-password/>
|
| | | </el-form-item>
|
| | | </el-col>
|
| | | </el-row>
|
| | |
| | | drag
|
| | | >
|
| | | <i class="el-icon-upload"></i>
|
| | | <div class="el-upload__text">
|
| | | 将文件拖到此处,或
|
| | | <em>点击上传</em>
|
| | | <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
| | | <div class="el-upload__tip text-center" slot="tip">
|
| | | <div class="el-upload__tip" slot="tip">
|
| | | <el-checkbox v-model="upload.updateSupport" /> 是否更新已经存在的用户数据
|
| | | </div>
|
| | | <span>仅允许导入xls、xlsx格式文件。</span>
|
| | | <el-link type="primary" :underline="false" style="font-size:12px;vertical-align: baseline;" @click="importTemplate">下载模板</el-link>
|
| | | </div>
|
| | | <div class="el-upload__tip" slot="tip">
|
| | | <el-checkbox v-model="upload.updateSupport" />是否更新已经存在的用户数据
|
| | | <el-link type="info" style="font-size:12px" @click="importTemplate">下载模板</el-link>
|
| | | </div>
|
| | | <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
|
| | | </el-upload>
|
| | | <div slot="footer" class="dialog-footer">
|
| | | <el-button type="primary" @click="submitFileForm">确 定</el-button>
|
| | |
| | | // 表单校验
|
| | | rules: {
|
| | | userName: [
|
| | | { required: true, message: "用户名称不能为空", trigger: "blur" }
|
| | | { required: true, message: "用户名称不能为空", trigger: "blur" },
|
| | | { min: 2, max: 20, message: '用户名称长度必须介于 2 和 20 之间', trigger: 'blur' }
|
| | | ],
|
| | | nickName: [
|
| | | { required: true, message: "用户昵称不能为空", trigger: "blur" }
|
| | |
| | | /** 分配角色操作 */
|
| | | handleAuthRole: function(row) {
|
| | | const userId = row.userId;
|
| | | this.$router.push("/auth/role/" + userId);
|
| | | this.$router.push("/system/user-auth/role/" + userId);
|
| | | },
|
| | | /** 提交按钮 */
|
| | | submitForm: function() {
|