组织树不允许去除勾选

This commit is contained in:
BOE\10867418
2023-08-25 10:26:20 +08:00
parent a243649236
commit 207dfd73f1
6 changed files with 7 additions and 10 deletions

View File

@@ -167,7 +167,7 @@ export default {
type: null, type: null,
createName: "", createName: "",
publishTime: "", // 发布时间 publishTime: "", // 发布时间
allowClear: true, allowClear: false,
option: [], option: [],
selectedRowKeys: [], selectedRowKeys: [],
typeOption:[] typeOption:[]
@@ -190,7 +190,7 @@ export default {
state.option = res.data?.result.orgTreeList; state.option = res.data?.result.orgTreeList;
state.orgId = res.data?.result.treeNodeList; state.orgId = res.data?.result.treeNodeList;
state.resetOrgId = res.data?.result.treeNodeList; state.resetOrgId = res.data?.result.treeNodeList;
state.allowClear = true state.allowClear = false
getTableData(); getTableData();
} }
}; };

View File

@@ -17,7 +17,7 @@
v-model:value="orgId" v-model:value="orgId"
style="width: 100%" style="width: 100%"
placeholder="请选择归属组织" placeholder="请选择归属组织"
:allowClear="allowClear" :allowClear = false
:fieldNames="{ :fieldNames="{
label: 'orgName', label: 'orgName',
value: 'organizationId', value: 'organizationId',
@@ -221,9 +221,6 @@ export default {
state.option = res.data?.result.orgTreeList; state.option = res.data?.result.orgTreeList;
state.orgId = res.data?.result.treeNodeList; state.orgId = res.data?.result.treeNodeList;
state.resetOrgId = res.data?.result.treeNodeList; state.resetOrgId = res.data?.result.treeNodeList;
res.data?.result?.userType === 1
? (state.allowClear = true)
: (state.allowClear = false);
getTableData(); getTableData();
} }
}; };

View File

@@ -28,7 +28,7 @@
:options="option" :options="option"
placeholder="请选择组织" placeholder="请选择组织"
v-model:value="orgId" v-model:value="orgId"
:allowClear="allowClear" :allowClear= false
style="width: 100%" style="width: 100%"
:fieldNames="{ :fieldNames="{
label: 'name', label: 'name',

View File

@@ -17,7 +17,7 @@
v-model:value="orgId" v-model:value="orgId"
style="width: 100%" style="width: 100%"
placeholder="请选择归属组织" placeholder="请选择归属组织"
:allowClear="allowClear" :allowClear=false
:fieldNames="{ :fieldNames="{
label: 'orgName', label: 'orgName',
value: 'organizationId', value: 'organizationId',

View File

@@ -17,7 +17,7 @@
v-model:value="orgId" v-model:value="orgId"
style="width: 100%" style="width: 100%"
placeholder="请选择归属组织" placeholder="请选择归属组织"
:allowClear="allowClear" :allowClear=false
:fieldNames="{ :fieldNames="{
label: 'orgName', label: 'orgName',
value: 'organizationId', value: 'organizationId',

View File

@@ -30,7 +30,7 @@
v-model:value="orgId" v-model:value="orgId"
style="width: 100%" style="width: 100%"
placeholder="请选择归属组织" placeholder="请选择归属组织"
:allowClear="allowClear" :allowClear=false
:fieldNames="{ :fieldNames="{
label: 'orgName', label: 'orgName',
value: 'organizationId', value: 'organizationId',