mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
-- 受众查询
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div style="width:100%;display: grid;grid-template-columns: 750px auto;">
|
<div style="width:100%;display: grid;grid-template-columns: 750px auto;">
|
||||||
<div class="tabs" style="min-height:800px;" >
|
<div class="tabs" style="min-height:800px;">
|
||||||
<a-tabs v-model:activeKey="activeKey">
|
<a-tabs v-model:activeKey="activeKey">
|
||||||
<a-tab-pane :key="1" tab="快速选人">
|
<a-tab-pane :key="1" tab="快速选人">
|
||||||
<div :style="{ height: screenHeight - 235 + 'px' }">
|
<div :style="{ height: screenHeight - 235 + 'px' }">
|
||||||
@@ -41,7 +41,8 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div class="chooseLeft" style="display: grid;grid-template-columns: 250px auto">
|
<div class="chooseLeft" style="display: grid;grid-template-columns: 250px auto">
|
||||||
<div :style="{ height: screenHeight - 180 + 'px' ,overflowY:'auto'}" style="border: 1px solid #f0f0f0; ;">
|
<div :style="{ height: screenHeight - 180 + 'px' ,overflowY:'auto'}"
|
||||||
|
style="border: 1px solid #f0f0f0; ;">
|
||||||
<div class="tree" style="margin: 10px 4px 220px 10px;">
|
<div class="tree" style="margin: 10px 4px 220px 10px;">
|
||||||
<a-tree
|
<a-tree
|
||||||
allow-clear
|
allow-clear
|
||||||
@@ -71,44 +72,44 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<!-- <a-tab-pane :key="2" tab="添加组织">-->
|
<!-- <a-tab-pane :key="2" tab="添加组织">-->
|
||||||
<!-- <div-->
|
<!-- <div-->
|
||||||
<!-- :style="{ height: screenHeight - 235 + 'px' }"-->
|
<!-- :style="{ height: screenHeight - 235 + 'px' }"-->
|
||||||
<!-- >-->
|
<!-- >-->
|
||||||
<!-- <div class="tab2">-->
|
<!-- <div class="tab2">-->
|
||||||
<!-- <a-form-item label="组织:">-->
|
<!-- <a-form-item label="组织:">-->
|
||||||
<!-- <a-input-->
|
<!-- <a-input-->
|
||||||
<!-- v-model:value="searchOrgName.keyword"-->
|
<!-- v-model:value="searchOrgName.keyword"-->
|
||||||
<!-- style="width: 230px; height: 40px; border-radius: 8px"-->
|
<!-- style="width: 230px; height: 40px; border-radius: 8px"-->
|
||||||
<!-- placeholder="请输入组织"-->
|
<!-- placeholder="请输入组织"-->
|
||||||
<!-- />-->
|
<!-- />-->
|
||||||
<!-- <a-button type="primary" @click="searchOrg" style="margin-left: 20px;border-radius: 4px">-->
|
<!-- <a-button type="primary" @click="searchOrg" style="margin-left: 20px;border-radius: 4px">-->
|
||||||
<!-- <template #icon>-->
|
<!-- <template #icon>-->
|
||||||
<!-- <SearchOutlined/>-->
|
<!-- <SearchOutlined/>-->
|
||||||
<!-- </template>-->
|
<!-- </template>-->
|
||||||
<!-- 搜索-->
|
<!-- 搜索-->
|
||||||
<!-- </a-button>-->
|
<!-- </a-button>-->
|
||||||
<!-- <a-button @click="resetOrg" style="margin-left: 20px;border-radius: 4px">重置</a-button>-->
|
<!-- <a-button @click="resetOrg" style="margin-left: 20px;border-radius: 4px">重置</a-button>-->
|
||||||
<!-- </a-form-item>-->
|
<!-- </a-form-item>-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<!-- <div class="boeTree">-->
|
<!-- <div class="boeTree">-->
|
||||||
<!-- <a-tree-->
|
<!-- <a-tree-->
|
||||||
<!-- :tree-data="searchOrgName.keyword ? orgData : treeData"-->
|
<!-- :tree-data="searchOrgName.keyword ? orgData : treeData"-->
|
||||||
<!-- @select="onOrgSelectChange"-->
|
<!-- @select="onOrgSelectChange"-->
|
||||||
<!-- :fieldNames="{-->
|
<!-- :fieldNames="{-->
|
||||||
<!-- children: 'treeChildList',-->
|
<!-- children: 'treeChildList',-->
|
||||||
<!-- key: 'id',-->
|
<!-- key: 'id',-->
|
||||||
<!-- title: 'name',-->
|
<!-- title: 'name',-->
|
||||||
<!-- value: 'name',-->
|
<!-- value: 'name',-->
|
||||||
<!-- }"-->
|
<!-- }"-->
|
||||||
<!-- row-key="id"-->
|
<!-- row-key="id"-->
|
||||||
<!-- :row-selection="orgRowSelection"-->
|
<!-- :row-selection="orgRowSelection"-->
|
||||||
<!-- multiple-->
|
<!-- multiple-->
|
||||||
<!-- >-->
|
<!-- >-->
|
||||||
<!-- </a-tree>-->
|
<!-- </a-tree>-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<!-- </a-tab-pane>-->
|
<!-- </a-tab-pane>-->
|
||||||
<a-tab-pane :key="3" tab="受众关联">
|
<a-tab-pane :key="3" tab="受众关联">
|
||||||
<div
|
<div
|
||||||
:style="{ height: screenHeight - 235 + 'px' }"
|
:style="{ height: screenHeight - 235 + 'px' }"
|
||||||
@@ -158,7 +159,7 @@
|
|||||||
style="overflow-y: auto"
|
style="overflow-y: auto"
|
||||||
>
|
>
|
||||||
<div class="person">快速选人</div>
|
<div class="person">快速选人</div>
|
||||||
<div v-for="(item,i) in selectsData.studentList" >
|
<div v-for="(item,i) in selectsData.studentList">
|
||||||
<div v-if="i<11">
|
<div v-if="i<11">
|
||||||
<div class="chose">
|
<div class="chose">
|
||||||
{{ item.realName }}
|
{{ item.realName }}
|
||||||
@@ -166,7 +167,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div v-if ="person">
|
<div v-if="person">
|
||||||
<div class="chose">
|
<div class="chose">
|
||||||
{{ item.realName }}
|
{{ item.realName }}
|
||||||
<div class="ch" @click="stuDel(i)"></div>
|
<div class="ch" @click="stuDel(i)"></div>
|
||||||
@@ -176,36 +177,40 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!person && selectsData.studentList.length >10" class="ifsw"><div @click="person = !person" class=“sw”>查看更多></div></div>
|
<div v-if="!person && selectsData.studentList.length >10" class="ifsw">
|
||||||
<div v-if="person && selectsData.studentList.length >10" class="ifsw" ><div @click="person = !person" class="sw"> 收起< </div></div>
|
<div @click="person = !person" class=“sw”>查看更多></div>
|
||||||
|
</div>
|
||||||
|
<div v-if="person && selectsData.studentList.length >10" class="ifsw">
|
||||||
|
<div @click="person = !person" class="sw"> 收起<</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!--组织-->
|
<!--组织-->
|
||||||
<!-- <div class="dept">添加组织</div>-->
|
<!-- <div class="dept">添加组织</div>-->
|
||||||
<!-- <div v-for="(item,i) in selectsData.deptList" >-->
|
<!-- <div v-for="(item,i) in selectsData.deptList" >-->
|
||||||
<!-- <div v-if="i<11">-->
|
<!-- <div v-if="i<11">-->
|
||||||
<!-- <div class="chose1">-->
|
<!-- <div class="chose1">-->
|
||||||
<!-- <div class="span"> {{ item.name }}</div>-->
|
<!-- <div class="span"> {{ item.name }}</div>-->
|
||||||
<!-- <div class="ch1" @click="orgDel(i)"></div>-->
|
<!-- <div class="ch1" @click="orgDel(i)"></div>-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<!-- <div v-else> -->
|
<!-- <div v-else> -->
|
||||||
<!-- <div v-if ="dept">-->
|
<!-- <div v-if ="dept">-->
|
||||||
<!-- <div class="chose1">-->
|
<!-- <div class="chose1">-->
|
||||||
<!-- <div class="span"> {{ item.name }}</div>-->
|
<!-- <div class="span"> {{ item.name }}</div>-->
|
||||||
<!-- <div class="ch1" @click="orgDel(i)"></div>-->
|
<!-- <div class="ch1" @click="orgDel(i)"></div>-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<!-- <div v-if="!dept && selectsData.deptList.length >10" class="ifsw"><div @click="dept = !dept" class=“sw”>查看更多></div></div>-->
|
<!-- <div v-if="!dept && selectsData.deptList.length >10" class="ifsw"><div @click="dept = !dept" class=“sw”>查看更多></div></div>-->
|
||||||
<!-- <div v-if="dept && selectsData.deptList.length >10" class="ifsw" ><div @click="dept = !dept" class="sw"> 收起< </div></div>-->
|
<!-- <div v-if="dept && selectsData.deptList.length >10" class="ifsw" ><div @click="dept = !dept" class="sw"> 收起< </div></div>-->
|
||||||
|
|
||||||
|
|
||||||
<!--受众-->
|
<!--受众-->
|
||||||
<div class="group">受众关联</div>
|
<div class="group">受众关联</div>
|
||||||
<div v-for="(item,i) in selectsData.groupList" >
|
<div v-for="(item,i) in selectsData.groupList">
|
||||||
<div v-if="i<11">
|
<div v-if="i<11">
|
||||||
<div class="chose2">
|
<div class="chose2">
|
||||||
<div class="span"> {{ item.audienceName }}</div>
|
<div class="span"> {{ item.audienceName }}</div>
|
||||||
@@ -213,7 +218,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div v-if ="group">
|
<div v-if="group">
|
||||||
<div class="chose2">
|
<div class="chose2">
|
||||||
<div class="span"> {{ item.audienceName }}</div>
|
<div class="span"> {{ item.audienceName }}</div>
|
||||||
<div class="ch2" @click="AuditDel(i)"></div>
|
<div class="ch2" @click="AuditDel(i)"></div>
|
||||||
@@ -223,8 +228,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!group && selectsData.groupList.length >10" class="ifsw"><div @click="group = !group" class=“sw”>查看更多></div></div>
|
<div v-if="!group && selectsData.groupList.length >10" class="ifsw">
|
||||||
<div v-if="group && selectsData.groupList >10" class="ifsw" ><div @click="group = !group" class="sw"> 收起< </div></div>
|
<div @click="group = !group" class=“sw”>查看更多></div>
|
||||||
|
</div>
|
||||||
|
<div v-if="group && selectsData.groupList >10" class="ifsw">
|
||||||
|
<div @click="group = !group" class="sw"> 收起<</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -304,9 +313,9 @@ const props = defineProps({
|
|||||||
default: () => []
|
default: () => []
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const person =ref(false)
|
const person = ref(false)
|
||||||
// const dept =ref(false)
|
// const dept =ref(false)
|
||||||
const group =ref(false)
|
const group = ref(false)
|
||||||
const visiable = ref(false)
|
const visiable = ref(false)
|
||||||
const activeKey = ref(1)
|
const activeKey = ref(1)
|
||||||
const stageVisible = ref(false)
|
const stageVisible = ref(false)
|
||||||
@@ -518,11 +527,11 @@ function AuditDel(i) {
|
|||||||
|
|
||||||
|
|
||||||
// function orgSelect(key, obj) {
|
// function orgSelect(key, obj) {
|
||||||
// console.log(obj)
|
// console.log(obj)
|
||||||
//request(ORG_CHILD_LIST, {orgId: null}).then(res => {
|
//request(ORG_CHILD_LIST, {orgId: null}).then(res => {
|
||||||
//console.log(res.result)
|
//console.log(res.result)
|
||||||
//})
|
//})
|
||||||
//}
|
//}
|
||||||
|
|
||||||
function onStuSelectChange(e, l) {
|
function onStuSelectChange(e, l) {
|
||||||
stuSelectKeys.value = e
|
stuSelectKeys.value = e
|
||||||
@@ -613,13 +622,16 @@ watch(visiable, () => {
|
|||||||
orgSelectKeys.value = []
|
orgSelectKeys.value = []
|
||||||
auditSelectKeys.value = []
|
auditSelectKeys.value = []
|
||||||
stuData.value = []
|
stuData.value = []
|
||||||
|
audienceName.value.keyword=''
|
||||||
|
audienceName.value.page=1
|
||||||
|
audienceName.value.pageSize=10
|
||||||
selectsData.value = {
|
selectsData.value = {
|
||||||
stageId: '',
|
stageId: '',
|
||||||
studentList: [],
|
studentList: [],
|
||||||
deptList: [],
|
deptList: [],
|
||||||
groupList: []
|
groupList: []
|
||||||
}
|
}
|
||||||
|
searchAudi()
|
||||||
})
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@@ -632,6 +644,7 @@ watch(visiable, () => {
|
|||||||
height: 40px;
|
height: 40px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tableBox .ant-table-row .ant-table-cell {
|
.tableBox .ant-table-row .ant-table-cell {
|
||||||
height: 48px;
|
height: 48px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
@@ -640,15 +653,19 @@ watch(visiable, () => {
|
|||||||
line-height: 29px;
|
line-height: 29px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tableBox .ant-table-thead tr th {
|
.tableBox .ant-table-thead tr th {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
.ant-tabs-tabpane{
|
|
||||||
|
.ant-tabs-tabpane {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.ant-tabs{
|
|
||||||
overflow:visible;
|
.ant-tabs {
|
||||||
|
overflow: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right1 {
|
.right1 {
|
||||||
border-left: 1px solid #f2f6fe;
|
border-left: 1px solid #f2f6fe;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -662,9 +679,11 @@ watch(visiable, () => {
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
.onleft {
|
.onleft {
|
||||||
display: flex;
|
display: flex;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
.already {
|
.already {
|
||||||
color: rgba(51, 51, 51, 1);
|
color: rgba(51, 51, 51, 1);
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
@@ -673,17 +692,20 @@ watch(visiable, () => {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
// margin-bottom: 20px;
|
// margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.count {
|
.count {
|
||||||
color: #4ea6ff;
|
color: #4ea6ff;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
margin: 0 6px;
|
margin: 0 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.peo {
|
.peo {
|
||||||
color: rgba(51, 51, 51, 1);
|
color: rgba(51, 51, 51, 1);
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.clbox {
|
.clbox {
|
||||||
margin-right: 50px;
|
margin-right: 50px;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -694,6 +716,7 @@ watch(visiable, () => {
|
|||||||
height: 32px;
|
height: 32px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background: #4ea6ff;
|
background: #4ea6ff;
|
||||||
|
|
||||||
.colose {
|
.colose {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
@@ -704,21 +727,25 @@ watch(visiable, () => {
|
|||||||
background-size: 100%;
|
background-size: 100%;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.allclear {
|
.allclear {
|
||||||
color: rgba(255, 255, 255, 1);
|
color: rgba(255, 255, 255, 1);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.selecteds {
|
.selecteds {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
margin-left: 32px;
|
margin-left: 32px;
|
||||||
.person{
|
|
||||||
width:100%;
|
.person {
|
||||||
|
width: 100%;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
border-top: 1px solid #f2f6fe;
|
border-top: 1px solid #f2f6fe;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chose {
|
.chose {
|
||||||
width: 64px;
|
width: 64px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
@@ -732,6 +759,7 @@ watch(visiable, () => {
|
|||||||
color: rgba(56, 139, 225, 1);
|
color: rgba(56, 139, 225, 1);
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.ch {
|
.ch {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 18px;
|
width: 18px;
|
||||||
@@ -741,26 +769,30 @@ watch(visiable, () => {
|
|||||||
top: -8px;
|
top: -8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.ifsw{
|
|
||||||
display:flex;
|
.ifsw {
|
||||||
align-items:end;
|
display: flex;
|
||||||
|
align-items: end;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
color:#4ea6ff;
|
color: #4ea6ff;
|
||||||
}
|
}
|
||||||
.sw{
|
|
||||||
display:flex;
|
.sw {
|
||||||
align-items:center;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
color:#4ea6ff;
|
color: #4ea6ff;
|
||||||
margin-top: 23px;
|
margin-top: 23px;
|
||||||
margin-left:10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
.dept{
|
|
||||||
width:100%;
|
.dept {
|
||||||
|
width: 100%;
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
border-top: 1px solid #f2f6fe;
|
border-top: 1px solid #f2f6fe;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chose1 {
|
.chose1 {
|
||||||
//width: 90px;
|
//width: 90px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
@@ -774,11 +806,13 @@ watch(visiable, () => {
|
|||||||
color: rgba(56, 139, 225, 1);
|
color: rgba(56, 139, 225, 1);
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
position: relative;
|
position: relative;
|
||||||
.span{
|
|
||||||
white-space:nowrap;
|
.span {
|
||||||
overflow:hidden;
|
white-space: nowrap;
|
||||||
text-overflow:ellipsis;
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ch1 {
|
.ch1 {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 18px;
|
width: 18px;
|
||||||
@@ -789,11 +823,13 @@ watch(visiable, () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.group{
|
|
||||||
width:100%;
|
.group {
|
||||||
|
width: 100%;
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
border-top: 1px solid #f2f6fe;
|
border-top: 1px solid #f2f6fe;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chose2 {
|
.chose2 {
|
||||||
//width: 120px;
|
//width: 120px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
@@ -807,11 +843,13 @@ watch(visiable, () => {
|
|||||||
color: rgba(56, 139, 225, 1);
|
color: rgba(56, 139, 225, 1);
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
position: relative;
|
position: relative;
|
||||||
.span{
|
|
||||||
white-space:nowrap;
|
.span {
|
||||||
overflow:hidden;
|
white-space: nowrap;
|
||||||
text-overflow:ellipsis;
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ch2 {
|
.ch2 {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 18px;
|
width: 18px;
|
||||||
@@ -823,5 +861,5 @@ watch(visiable, () => {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user