This commit is contained in:
Paidax
2024-07-25 15:07:30 +08:00
parent 067575c474
commit e9597f3f81
@@ -74,39 +74,41 @@
</div> </div>
</div> </div>
<div class="search-item"> <template v-if="isThreeUnit">
<div class="search-item-label">工会小组:</div> <div class="search-item">
<div class="search-item-option"> <div class="search-item-label">工会小组:</div>
<el-select v-model="pageForm.unionGroupId" style="width: 100%" <div class="search-item-option">
filterable <el-select v-model="pageForm.unionGroupId" style="width: 100%"
clearable filterable
@change="getThreeUnits" clearable
placeholder="请选择"> @change="getThreeUnits"
<el-option placeholder="请选择">
v-for="item in unionGroups" <el-option
:key="item.id" v-for="item in unionGroups"
:label="item.groupName" :key="item.id"
:value="item.id"> :label="item.groupName"
</el-option> :value="item.id">
</el-select> </el-option>
</el-select>
</div>
</div> </div>
</div>
<div class="search-item"> <div class="search-item">
<div class="search-item-label">组成科室:</div> <div class="search-item-label">组成科室:</div>
<div class="search-item-option"> <div class="search-item-option">
<el-select v-model="pageForm.threeUnitId" style="width: 100%" filterable <el-select v-model="pageForm.threeUnitId" style="width: 100%" filterable
clearable clearable
placeholder="请选择"> placeholder="请选择">
<el-option <el-option
v-for="item in threeUnits" v-for="item in threeUnits"
:key="item.id" :key="item.id"
:label="item.name" :label="item.name"
:value="item.id"> :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</div>
</div> </div>
</div> </template>
<div class="search-item"> <div class="search-item">
<div class="search-item-label">会员状态:</div> <div class="search-item-label">会员状态:</div>
@@ -427,13 +429,14 @@
{prop: 'MMobile', label: '联系电话'}, {prop: 'MMobile', label: '联系电话'},
{prop: 'unionname', label: '所属工会', sortable: true}, {prop: 'unionname', label: '所属工会', sortable: true},
{prop: 'unitname', label: '所属单位', sortable: true}, {prop: 'unitname', label: '所属单位', sortable: true},
{prop: 'threeUnitName', label: '所在科室', sortable: true}, {prop: 'threeUnitName', label: '所在科室', sortable: true, checked: 0},
{prop: 'unionGroupName', label: '工会小组', sortable: true}, {prop: 'unionGroupName', label: '工会小组', sortable: true, checked: 0},
{prop: 'type', label: '变更类型', sortable: true}, {prop: 'type', label: '变更类型', sortable: true},
{prop: 'applyDate', label: '申请时间', sortable: true}, {prop: 'applyDate', label: '申请时间', sortable: true},
{prop: 'applyOrigin', label: '申请方式', sortable: true}, {prop: 'applyOrigin', label: '申请方式', sortable: true},
{prop: 'stateId', label: '状态', sortable: true}, {prop: 'stateId', label: '状态', sortable: true},
], ],
isThreeUnit: null,
} }
}, },
components: { components: {
@@ -530,6 +533,15 @@
} }
}, },
async created() { async created() {
this.isThreeUnit = await getConfigKey('isThreeUnit') === 'true'
if (this.isThreeUnit) {
this.tableColumns.forEach(v => {
if (["threeUnitName", "unionGroupName"].includes(v.prop)) {
v.checked = 1
}
})
}
this.pageData(); this.pageData();
if ("${@shiro.hasRole('sysadmin')||@shiro.hasRole('A06')||@shiro.hasRole('H03')}" === 'true') { if ("${@shiro.hasRole('sysadmin')||@shiro.hasRole('A06')||@shiro.hasRole('H03')}" === 'true') {