|
|
@@ -161,8 +161,8 @@
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="20">
|
|
|
- <el-form-item label="所属机构" prop="orgId" @click="clickk">
|
|
|
- <tree-select v-model="form.orgId" :options="deptOptions" :show-count="true" :normalizer="tenantIdnormalizer"
|
|
|
+ <el-form-item label="所属机构" prop="orgId" >
|
|
|
+ <tree-select @select="changeRoleIds()" v-model="form.orgId" :options="deptOptions" :show-count="true" :normalizer="tenantIdnormalizer"
|
|
|
:props="{ checkStrictly: true, label: 'name' }" placeholder="请选择所属机构" :disabled="form.source == 1" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -424,13 +424,13 @@ export default {
|
|
|
|
|
|
},
|
|
|
watch: {
|
|
|
- 'form.orgId'(newValue) {
|
|
|
- if (this.isRoleIdsChanged) {
|
|
|
- this.form.roleIds = null;
|
|
|
- } else {
|
|
|
- this.isRoleIdsChanged = true;
|
|
|
- }
|
|
|
- }
|
|
|
+ // 'form.orgId'(newValue) {
|
|
|
+ // if (this.isRoleIdsChanged) {
|
|
|
+ // this.form.roleIds = null;
|
|
|
+ // } else {
|
|
|
+ // this.isRoleIdsChanged = true;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
// 'form.orgId': {
|
|
|
// handler(newValue, oldValue) {
|
|
|
// if(oldValue!=undefined){
|
|
|
@@ -446,9 +446,7 @@ export default {
|
|
|
// }
|
|
|
},
|
|
|
methods: {
|
|
|
- clickk() {
|
|
|
- console.log("clickk")
|
|
|
- },
|
|
|
+
|
|
|
changeRoleIds() {
|
|
|
this.form.roleIds = null;
|
|
|
},
|