| | |
| | | v-if="permission.user_delete" |
| | | @click="handleDelete">删 除 |
| | | </el-button> |
| | | <el-button type="info" |
| | | size="small" |
| | | plain |
| | | v-if="permission.user_role" |
| | | icon="el-icon-user" |
| | | @click="handleGrant">角色配置 |
| | | </el-button> |
| | | <!-- <el-button type="info"--> |
| | | <!-- size="small"--> |
| | | <!-- plain--> |
| | | <!-- v-if="permission.user_role"--> |
| | | <!-- icon="el-icon-user"--> |
| | | <!-- @click="handleGrant">角色配置--> |
| | | <!-- </el-button>--> |
| | | <el-button type="info" |
| | | size="small" |
| | | plain |
| | |
| | | icon="el-icon-refresh" |
| | | @click="handleReset">密码重置 |
| | | </el-button> |
| | | <el-button type="info" |
| | | size="small" |
| | | plain |
| | | v-if="userInfo.role_name.includes('admin')" |
| | | icon="el-icon-setting" |
| | | @click="handlePlatform">平台配置 |
| | | </el-button> |
| | | <!-- <el-button type="info"--> |
| | | <!-- size="small"--> |
| | | <!-- plain--> |
| | | <!-- v-if="userInfo.role_name.includes('admin')"--> |
| | | <!-- icon="el-icon-setting"--> |
| | | <!-- @click="handlePlatform">平台配置--> |
| | | <!-- </el-button>--> |
| | | <el-button type="info" |
| | | size="small" |
| | | plain |
| | |
| | | icon="el-icon-coordinate" |
| | | @click="handleLock">账号解封 |
| | | </el-button> |
| | | <el-button type="success" |
| | | size="small" |
| | | plain |
| | | v-if="userInfo.role_name.includes('admin')" |
| | | icon="el-icon-upload2" |
| | | @click="handleImport">导入 |
| | | </el-button> |
| | | <el-button type="warning" |
| | | size="small" |
| | | plain |
| | | v-if="userInfo.role_name.includes('admin')" |
| | | icon="el-icon-download" |
| | | @click="handleExport">导出 |
| | | </el-button> |
| | | <!-- <el-button type="success"--> |
| | | <!-- size="small"--> |
| | | <!-- plain--> |
| | | <!-- v-if="userInfo.role_name.includes('admin')"--> |
| | | <!-- icon="el-icon-upload2"--> |
| | | <!-- @click="handleImport">导入--> |
| | | <!-- </el-button>--> |
| | | <!-- <el-button type="warning"--> |
| | | <!-- size="small"--> |
| | | <!-- plain--> |
| | | <!-- v-if="userInfo.role_name.includes('admin')"--> |
| | | <!-- icon="el-icon-download"--> |
| | | <!-- @click="handleExport">导出--> |
| | | <!-- </el-button>--> |
| | | </template> |
| | | <template slot-scope="{row}" |
| | | slot="tenantName"> |
| | |
| | | callback(); |
| | | } |
| | | }; |
| | | |
| | | const validatePhone = (rule, value, callback) => { |
| | | if (value){ |
| | | if (!/^[1]([3-9])[0-9]{9}$/.test(value)) { |
| | |
| | | callback(); |
| | | } |
| | | }; |
| | | |
| | | const validateEmail = (rule, value, callback) => { |
| | | const mal = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/ |
| | | if (value){ |
| | |
| | | callback() |
| | | } |
| | | }; |
| | | |
| | | return { |
| | | form: {}, |
| | | search:{}, |
| | |
| | | this.form['deptId'] = this.userInfo.dept_id; |
| | | this.form.roleId = this.form.roleId.join(",") |
| | | this.form.farmId = this.form.farmId.join(",") |
| | | if (!row.sex){ |
| | | row.sex = 3 |
| | | } |
| | | update(this.form).then(() => { |
| | | this.initFlag = false; |
| | | this.onLoad(this.page); |
| | |
| | | passwordColumn.display = true; |
| | | password2Column.display = true; |
| | | if(type == "add"&& column.dicData == ""){ |
| | | this.form = {} |
| | | this.form = { |
| | | id:null |
| | | } |
| | | this.initData(website.tenantId) |
| | | } |
| | | if (["edit", "view"].includes(type)) { |
| | |
| | | // this.form.postId = this.form.postId.split(","); |
| | | // } |
| | | }); |
| | | }else { |
| | | this.form = { |
| | | id:null |
| | | } |
| | | } |
| | | this.initFlag = true; |
| | | done(); |