Commit 27b8ada6 by 胡悦

修改

1 parent e102acec
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
<el-button @click="handleCancel">取消</el-button> <el-button @click="handleCancel">取消</el-button>
</div> </div>
<SelectLabel ref="selectLabel" @tagSelected="handleSelect" :dialogVisible="dialogVisible"></SelectLabel> <SelectLabel ref="selectLabel" @tagSelected="handleSelect" :dialogVisible="dialogVisible"></SelectLabel>
<SelectCrowd ref="selectCrowd"></SelectCrowd> <SelectCrowd ref="selectCrowd" @crowdData="getCrowdData"></SelectCrowd>
</div> </div>
</template> </template>
...@@ -602,7 +602,11 @@ export default { ...@@ -602,7 +602,11 @@ export default {
}, },
// 人群筛选弹窗 // 人群筛选弹窗
selectCrowd() { selectCrowd() {
this.$refs.selectCrowd.dialogVisible = true this.$refs.selectCrowd.crowdVisible = true
},
// 获取人群数据
getCrowdData(val) {
console.log(val)
} }
} }
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-05-24 18:18:53 * @Date: 2022-05-24 18:18:53
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-05-25 10:15:56 * @LastEditTime: 2022-05-25 15:02:32
--> -->
<template> <template>
<div> <div>
...@@ -23,12 +23,12 @@ ...@@ -23,12 +23,12 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="table-content" style="max-height: 456px"> <div class="table-content" style="max-height: 456px">
<!-- <GLTable v-loading="loading" ref="empTable" :tableData="tableEmpData" :tableParams="tableParams" :hasNum="false" :hasPage="false" :noDataImg="url" @selectionTable="selectionTable" @row-click="rowClick"> <GLTable v-loading="loading" ref="crowdTable" :tableData="tableCrowdData" :tableParams="crowdTableParams" :hasPage="false" :noDataImg="url" @selectionTable="selectionTable" @row-click="rowClick">
<div slot="staffName" slot-scope="scope"> <!-- <div slot="staffName" slot-scope="scope">
<span>{{ scope.scope.staffName }}</span> <span>{{ scope.scope.staffName }}</span>
<span class="staff-title" v-show="scope.scope.staffTitle">{{ scope.scope.staffTitle }}</span> <span class="staff-title" v-show="scope.scope.staffTitle">{{ scope.scope.staffTitle }}</span>
</div> </div> -->
</GLTable> --> </GLTable>
</div> </div>
</div> </div>
</div> </div>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<div class="tag-box"> <div class="tag-box">
<el-tag v-for="(tag, idx) in innerTags" :key="idx" type="info" closable :disable-transitions="false" @close="remove(tag)"> <el-tag v-for="(tag, idx) in innerTags" :key="idx" type="info" closable :disable-transitions="false" @close="remove(tag)">
<i class="el-icon-user-solid"></i> <i class="el-icon-user-solid"></i>
{{ tag.staffName }} {{ tag.name }}
</el-tag> </el-tag>
</div> </div>
</div> </div>
...@@ -50,15 +50,63 @@ ...@@ -50,15 +50,63 @@
</template> </template>
<script> <script>
import url from '@/assets/empty.png'
export default { export default {
name: 'SelectCrowd', name: 'SelectCrowd',
data() { data() {
return { return {
crowdVisible: true, url,
crowdVisible: false,
searchForm: {}, searchForm: {},
innerTags: [] innerTags: [],
tableCrowdData: [
{
name: 'asda'
}
],
crowdTableParams: {
checkSelectKey: 'id',
checkSelectVal: [],
listName: 'list',
// 行数据的key
mutiSelectUniqueKey: 'id',
// 多选ref的名称
mutiSelectName: 'crowdlist',
tableColumns: [
{
label: '人群名称',
prop: 'name'
},
{
label: '人群描述',
prop: 'name'
},
{
label: '人数',
prop: 'name'
}
]
}
} }
} },
methods: {
selectionTable(val) {
this.innerTags = val
},
remove(item) {
this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(item)
},
rowClick(row) {
this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(row)
},
search() {
this.getFindLordGroup(this.searchForm)
},
handleConfirm() {
this.$emit('crowdData', this.innerTags)
this.crowdVisible = false
}
}
} }
</script> </script>
...@@ -91,7 +139,7 @@ export default { ...@@ -91,7 +139,7 @@ export default {
.table-content { .table-content {
max-height: 456px; max-height: 456px;
overflow: auto; overflow: auto;
border: 1px solid #eee; border-top: 1px solid #eee;
} }
} }
.member-checked { .member-checked {
......
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
.table-content { .table-content {
max-height: 456px; max-height: 456px;
overflow: auto; overflow: auto;
border: 1px solid #eee; border-top: 1px solid #eee;
} }
} }
.member-checked { .member-checked {
......
...@@ -291,7 +291,7 @@ export default { ...@@ -291,7 +291,7 @@ export default {
.table-content { .table-content {
max-height: 456px; max-height: 456px;
overflow: auto; overflow: auto;
border: 1px solid #eee; border-top: 1px solid #eee;
} }
} }
.member-checked { .member-checked {
......
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
.table-content { .table-content {
max-height: 456px; max-height: 456px;
overflow: auto; overflow: auto;
border: 1px solid #eee; border-top: 1px solid #eee;
} }
} }
.member-checked { .member-checked {
......
...@@ -292,7 +292,7 @@ export default { ...@@ -292,7 +292,7 @@ export default {
.table-content { .table-content {
max-height: 456px; max-height: 456px;
overflow: auto; overflow: auto;
border: 1px solid #eee; border-top: 1px solid #eee;
} }
} }
.member-checked { .member-checked {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!