|
|
@ -88,18 +88,24 @@ |
|
|
|
show-overflow-tooltip |
|
|
|
min-width="80" |
|
|
|
/> |
|
|
|
<el-table-column label="审核权限" align="center" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="scope.row.slaverAdmin - 0 == 1">是</span> |
|
|
|
<span v-else>否</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
label="状态" |
|
|
|
align="center" |
|
|
|
show-overflow-tooltip |
|
|
|
min-width="100" |
|
|
|
width="100" |
|
|
|
> |
|
|
|
<template slot-scope="scope" v-if="scope.row.status != null"> |
|
|
|
<span v-if="scope.row.status == 0" style="color: #67c23a">启用</span> |
|
|
|
<span v-if="scope.row.status == 1" style="color: #f56c6c">禁用</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="创建人/创建时间" align="center" min-width="140"> |
|
|
|
<el-table-column label="创建人/创建时间" align="center" width="140"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ scope.row.createBy }}</div> |
|
|
|
<span> |
|
|
@ -167,7 +173,11 @@ |
|
|
|
<el-input v-model="form.nickName" placeholder="请输入" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="用户名" prop="userName"> |
|
|
|
<el-input v-model="form.userName" placeholder="请输入" /> |
|
|
|
<el-input |
|
|
|
v-model="form.userName" |
|
|
|
placeholder="请输入" |
|
|
|
:disabled="form.id ? true : false" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="密码" prop="password" v-if="!form.id"> |
|
|
|
<el-input v-model="form.password" placeholder="请输入" /> |
|
|
@ -183,6 +193,10 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="审核权限" prop="slaverAdmin"> |
|
|
|
<el-radio v-model="form.slaverAdmin" :label="1">是</el-radio> |
|
|
|
<el-radio v-model="form.slaverAdmin" :label="0">否</el-radio> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
|
|
@ -272,6 +286,13 @@ export default { |
|
|
|
trigger: "blur", |
|
|
|
}, |
|
|
|
], |
|
|
|
slaverAdmin: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: "审核权限", |
|
|
|
trigger: "blur", |
|
|
|
}, |
|
|
|
], |
|
|
|
password: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
@ -323,6 +344,7 @@ export default { |
|
|
|
nickName: "", |
|
|
|
userName: "", |
|
|
|
status: "0", |
|
|
|
slaverAdmin: 0, |
|
|
|
}; |
|
|
|
this.resetForm("form"); |
|
|
|
}, |
|
|
@ -355,6 +377,7 @@ export default { |
|
|
|
this.open = true; |
|
|
|
this.title = "修改用户"; |
|
|
|
this.form = JSON.parse(JSON.stringify(row)); |
|
|
|
this.form.slaverAdmin = this.form.slaverAdmin || 0; |
|
|
|
}, |
|
|
|
/** 诊疗档案 */ |
|
|
|
submitForm: function () { |
|
|
@ -376,10 +399,14 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 重置密码 |
|
|
|
handleResetPwd(row) { |
|
|
|
this.resetOpen = true; |
|
|
|
this.form = JSON.parse(JSON.stringify(row)); |
|
|
|
this.form.password = ""; |
|
|
|
this.form = { |
|
|
|
id: this.form.id, |
|
|
|
password: "", |
|
|
|
}; |
|
|
|
}, |
|
|
|
submitPasForm(row) { |
|
|
|
this.$refs["pasForm"].validate((valid) => { |
|
|
|