|
@@ -1,18 +1,14 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <div class="institution">
|
|
|
|
|
- <div class="institution-main">
|
|
|
|
|
|
|
+ <PageMain class="vh100 institution">
|
|
|
<el-form label-position="left" label-width="auto">
|
|
<el-form label-position="left" label-width="auto">
|
|
|
- <el-row :gutter="16">
|
|
|
|
|
- <el-col :span="6">
|
|
|
|
|
|
|
+ <el-row :gutter="24">
|
|
|
|
|
+ <el-col :span="24">
|
|
|
<el-form-item label="">
|
|
<el-form-item label="">
|
|
|
- <el-input v-model="info.name" placeholder="输入机构名称查找" :prefix-icon="Search" />
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-col>
|
|
|
|
|
-
|
|
|
|
|
- <el-col :span="4">
|
|
|
|
|
- <el-form-item label="">
|
|
|
|
|
- <el-button type="primary" @click="getInstitutionList">查询</el-button>
|
|
|
|
|
- <el-button type="primary" plain @click="reset">重置</el-button>
|
|
|
|
|
|
|
+ <el-input v-model="info.name" class="search-input" placeholder="输入机构名称查找" :prefix-icon="Search" >
|
|
|
|
|
+ <template #append>
|
|
|
|
|
+ <el-button text type="primary" class="" @click="getInstitutionList">搜索</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -23,7 +19,7 @@
|
|
|
@select-all-change="selectAllChange" @select-change="selectChange">
|
|
@select-all-change="selectAllChange" @select-change="selectChange">
|
|
|
<template v-slot:table-title-btn>
|
|
<template v-slot:table-title-btn>
|
|
|
<div>
|
|
<div>
|
|
|
- <el-button type="primary" @click="add(ruleFormRef)">
|
|
|
|
|
|
|
+ <el-button plain type="primary" @click="add(ruleFormRef)">
|
|
|
<el-icon>
|
|
<el-icon>
|
|
|
<Plus />
|
|
<Plus />
|
|
|
</el-icon>添加机构</el-button>
|
|
</el-icon>添加机构</el-button>
|
|
@@ -43,16 +39,16 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:operation="scope">
|
|
<template v-slot:operation="scope">
|
|
|
- <el-button type="primary" link @click="addChild(scope.operationData.row)">
|
|
|
|
|
- 添加子机构
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-dropdown placement="bottom-start">
|
|
|
|
|
- <span class="el-dropdown-link"> 更多 </span>
|
|
|
|
|
- <template #dropdown>
|
|
|
|
|
- <el-dropdown-menu>
|
|
|
|
|
- <el-dropdown-item v-on:click="editor(scope.operationData.row)">编辑</el-dropdown-item>
|
|
|
|
|
- <el-dropdown-item v-on:click="del(scope.operationData.row)">
|
|
|
|
|
- 删除
|
|
|
|
|
|
|
+ <el-button type="primary" link @click="addChild(scope.operationData.row)">
|
|
|
|
|
+ 添加子机构
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <el-dropdown placement="bottom-start">
|
|
|
|
|
+ <span class="el-dropdown-link"> 更多 </span>
|
|
|
|
|
+ <template #dropdown>
|
|
|
|
|
+ <el-dropdown-menu>
|
|
|
|
|
+ <el-dropdown-item v-on:click="editor(scope.operationData.row)">编辑</el-dropdown-item>
|
|
|
|
|
+ <el-dropdown-item v-on:click="del(scope.operationData.row)">
|
|
|
|
|
+ 删除
|
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
|
<el-dropdown-item v-on:click="setDeptUser(scope.operationData.row)">设置负责人</el-dropdown-item>
|
|
<el-dropdown-item v-on:click="setDeptUser(scope.operationData.row)">设置负责人</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
@@ -63,13 +59,12 @@
|
|
|
{{ scope.slotData.label }}
|
|
{{ scope.slotData.label }}
|
|
|
</template>
|
|
</template>
|
|
|
</Table>
|
|
</Table>
|
|
|
- </div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<setDept :dialogVisible="deptDialogVisible" :dept-list="tableData" :dept-ids="deptIdList"
|
|
<setDept :dialogVisible="deptDialogVisible" :dept-list="tableData" :dept-ids="deptIdList"
|
|
|
:dept-selected="deptSelected" :title="'设置负责人'" @close-dialog="confirmCharge"
|
|
:dept-selected="deptSelected" :title="'设置负责人'" @close-dialog="confirmCharge"
|
|
|
@cancel-dialog="deptDialogVisible = false"></setDept>
|
|
@cancel-dialog="deptDialogVisible = false"></setDept>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </PageMain>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
@@ -231,9 +226,9 @@ const typeformatter = (row: any, column: any, cellValue: any) => {
|
|
|
return () => h("div", {}, comType);
|
|
return () => h("div", {}, comType);
|
|
|
};
|
|
};
|
|
|
const columns = [
|
|
const columns = [
|
|
|
- { prop: "name", label: "机构名称" },
|
|
|
|
|
- { prop: "userCount", label: "人数" },
|
|
|
|
|
- { prop: "comType", label: "机构类型", formatter: typeformatter },
|
|
|
|
|
|
|
+ { prop: "name", label: "机构名称",width:260 },
|
|
|
|
|
+ { prop: "userCount", label: "人数",align:"center" },
|
|
|
|
|
+ { prop: "comType", label: "机构类型", formatter: typeformatter,align:"center" },
|
|
|
{
|
|
{
|
|
|
prop: "exhibitionScope",
|
|
prop: "exhibitionScope",
|
|
|
label: "展业范围",
|
|
label: "展业范围",
|
|
@@ -245,10 +240,10 @@ const columns = [
|
|
|
}
|
|
}
|
|
|
let data = row.exhibitionScope.map((val: any) => exhibitionScopeMap[val] || val)
|
|
let data = row.exhibitionScope.map((val: any) => exhibitionScopeMap[val] || val)
|
|
|
return () => h("div", {}, data.toString());
|
|
return () => h("div", {}, data.toString());
|
|
|
- },
|
|
|
|
|
|
|
+ },align:"center"
|
|
|
},
|
|
},
|
|
|
- { prop: "address", label: "所属地区" },
|
|
|
|
|
- { prop: "leaderName", label: "负责人" },
|
|
|
|
|
|
|
+ { prop: "address", label: "所属地区",align:"center" },
|
|
|
|
|
+ { prop: "leaderName", label: "负责人",align:"center" },
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
const pageInfo = {
|
|
const pageInfo = {
|
|
@@ -527,6 +522,27 @@ onMounted(() => {
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
|
+:deep(.el-form-item__content .el-input-group.search-input) {
|
|
|
|
|
+ --el-border-color: #F7F7F7;
|
|
|
|
|
+ --el-input-hover-border-color: #F7F7F7;
|
|
|
|
|
+}
|
|
|
|
|
+:deep(.el-input-group--append>.el-input__wrapper) {
|
|
|
|
|
+ background-color: #F7F7F7;
|
|
|
|
|
+}
|
|
|
|
|
+:deep(.search-input .el-button__text--expand) {
|
|
|
|
|
+ color: #0083FF;
|
|
|
|
|
+ &::before{
|
|
|
|
|
+ content: '';
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+ bottom: 0;
|
|
|
|
|
+ width: 1px;
|
|
|
|
|
+ height: 24px;
|
|
|
|
|
+ background: #EEEEEE;
|
|
|
|
|
+ margin: auto;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
:deep(.table-title-btn) {
|
|
:deep(.table-title-btn) {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -537,30 +553,6 @@ onMounted(() => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.institution {
|
|
|
|
|
- background: #fff;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- // height: 100%;
|
|
|
|
|
- // padding: 20px;
|
|
|
|
|
- box-sizing: border-box;
|
|
|
|
|
- display: flex;
|
|
|
|
|
-
|
|
|
|
|
- .institution-tree {
|
|
|
|
|
- flex: none;
|
|
|
|
|
- width: 20%;
|
|
|
|
|
- padding: 20px;
|
|
|
|
|
- box-sizing: border-box;
|
|
|
|
|
- border-right: 1px solid #ccc;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .institution-main {
|
|
|
|
|
- flex: 1;
|
|
|
|
|
- // width: 80%;
|
|
|
|
|
- padding: 20px;
|
|
|
|
|
- box-sizing: border-box;
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
:deep(.el-dropdown-link) {
|
|
:deep(.el-dropdown-link) {
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
color: var(--el-color-primary);
|
|
color: var(--el-color-primary);
|