|
@@ -428,22 +428,22 @@ export default {
|
|
if (data.val == "1") {
|
|
if (data.val == "1") {
|
|
//管理员编辑
|
|
//管理员编辑
|
|
if (this.userInfo.roleType == "5" && data.data.level == "3") {
|
|
if (this.userInfo.roleType == "5" && data.data.level == "3") {
|
|
- this.isShowGrade = true;
|
|
|
|
|
|
+ this.isShowGrade = false;
|
|
}
|
|
}
|
|
//院管理员编辑
|
|
//院管理员编辑
|
|
if (this.userInfo.roleType == "4" && data.data.level == "2") {
|
|
if (this.userInfo.roleType == "4" && data.data.level == "2") {
|
|
- this.isShowGrade = true;
|
|
|
|
|
|
+ this.isShowGrade = false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
if (data.val == "0") {
|
|
if (data.val == "0") {
|
|
//管理员新增 是否显示届数
|
|
//管理员新增 是否显示届数
|
|
if (this.userInfo.roleType == "5" && data.data.level == "2") {
|
|
if (this.userInfo.roleType == "5" && data.data.level == "2") {
|
|
- this.isShowGrade = true;
|
|
|
|
|
|
+ this.isShowGrade = false;
|
|
}
|
|
}
|
|
//院管理员新增 是否显示届数
|
|
//院管理员新增 是否显示届数
|
|
if (this.userInfo.roleType == "4" && data.data.level == "1") {
|
|
if (this.userInfo.roleType == "4" && data.data.level == "1") {
|
|
- this.isShowGrade = true;
|
|
|
|
|
|
+ this.isShowGrade = false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//当是管理员登录时
|
|
//当是管理员登录时
|
|
@@ -547,7 +547,7 @@ export default {
|
|
// data.id = this.treeData.id;
|
|
// data.id = this.treeData.id;
|
|
//将参数调用接口
|
|
//将参数调用接口
|
|
this.currentSelectObj.orgName = this.ruleForm.orgName;
|
|
this.currentSelectObj.orgName = this.ruleForm.orgName;
|
|
- this.currentSelectObj.extend = this.ruleForm.grade;
|
|
|
|
|
|
+ this.currentSelectObj.extend = '-1';
|
|
this.$http.post(`/org/addOrUpdateOrg`, this.currentSelectObj, (res) => {
|
|
this.$http.post(`/org/addOrUpdateOrg`, this.currentSelectObj, (res) => {
|
|
// this.$toast.success({message:'成功'});
|
|
// this.$toast.success({message:'成功'});
|
|
if (res && res.code == 200) {
|
|
if (res && res.code == 200) {
|
|
@@ -569,7 +569,7 @@ export default {
|
|
let data = {
|
|
let data = {
|
|
parentOrgNo: this.currentSelectObj.orgNo,
|
|
parentOrgNo: this.currentSelectObj.orgNo,
|
|
orgName: this.ruleForm.orgName,
|
|
orgName: this.ruleForm.orgName,
|
|
- extend: this.ruleForm.grade,
|
|
|
|
|
|
+ extend: '-1',
|
|
};
|
|
};
|
|
//将参数调用接口
|
|
//将参数调用接口
|
|
this.$http.post(`/org/addOrUpdateOrg`, data, (res) => {
|
|
this.$http.post(`/org/addOrUpdateOrg`, data, (res) => {
|