Commit 8c5d351f by huaying

fix: kk

parent 160b5199
...@@ -71,12 +71,12 @@ ...@@ -71,12 +71,12 @@
</el-table-column> </el-table-column>
<el-table-column label="添加好友人数" prop="addNum" sortable="custom" width="150"> <el-table-column label="添加好友人数" prop="addNum" sortable="custom" width="150">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<p>{{ row.addNum == null ? row.addNum : '--' }}</p> <p>{{ row.addNum ? row.addNum : '--' }}</p>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="今日新增人数" prop="addNumT" sortable="custom" width="150"> <el-table-column label="今日新增人数" prop="addNumT" sortable="custom" width="150">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<p>{{ row.addNumT == null ? row.addNumT : '--' }}</p> <p>{{ row.addNumT ? row.addNumT : '--' }}</p>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="关联导购" width="120" show-overflow-tooltip> <el-table-column label="关联导购" width="120" show-overflow-tooltip>
...@@ -113,11 +113,11 @@ ...@@ -113,11 +113,11 @@
</p> </p>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="所属分组" width="100" show-overflow-tooltip> <!-- <el-table-column label="所属分组" width="100" show-overflow-tooltip>
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<p>{{ row.hmGroupId ? row.hmGroupId : '--' }}</p> <p>{{ row.hmGroupId ? row.hmGroupId : '--' }}</p>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="创建人" width="100"> <el-table-column label="创建人" width="100">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<p>{{ row.creatorName ? row.creatorName : '--' }}</p> <p>{{ row.creatorName ? row.creatorName : '--' }}</p>
...@@ -525,11 +525,11 @@ export default { ...@@ -525,11 +525,11 @@ export default {
watch: { watch: {
currentGroupId: { currentGroupId: {
handler: function(val) { handler: function(val) {
if (val) { // if (val) {
this.currentGroupId = val; this.currentGroupId = val;
this.pageParam.pageNo = 1; this.pageParam.pageNo = 1;
this.getTableList(); this.getTableList();
} // }
}, },
immediate: true immediate: true
} }
......
...@@ -64,7 +64,9 @@ export default { ...@@ -64,7 +64,9 @@ export default {
}, },
onChange(data) { onChange(data) {
this.data = data; this.data = data;
this.form.clerkIdList = data; this.form.clerkIdList = data.map(item => {
return item.clerkId;
});
this.form.hmUserNum = data.length; this.form.hmUserNum = data.length;
}, },
async onSubmit(event) { async onSubmit(event) {
......
...@@ -99,6 +99,16 @@ export default { ...@@ -99,6 +99,16 @@ export default {
}; };
}, },
created() { created() {
// this.searchGroup();
},
activated() {
if (this.$route.meta.refresh) {
this.pageP = {
groupName: '',
pageNum: 1,
pageSize: 20
};
}
this.searchGroup(); this.searchGroup();
}, },
methods: { methods: {
...@@ -115,9 +125,7 @@ export default { ...@@ -115,9 +125,7 @@ export default {
} }
}, },
clickGroupListItem(listItem) { clickGroupListItem(listItem) {
console.log(listItem, 'uuuuu');
this.currentListItemUuid = listItem.groupId; this.currentListItemUuid = listItem.groupId;
console.log(this.currentListItemUuid, 'this.currentListItemUuid');
this.$emit('updateList', this.currentListItemUuid); this.$emit('updateList', this.currentListItemUuid);
}, },
isShowGroupListItemMore(listItem) { isShowGroupListItemMore(listItem) {
...@@ -241,7 +249,6 @@ export default { ...@@ -241,7 +249,6 @@ export default {
if (this.pageP.groupName == '') { if (this.pageP.groupName == '') {
this.searchTip = false; this.searchTip = false;
} else if (this.pageP.groupName != '') { } else if (this.pageP.groupName != '') {
// this.groupList.splice(0, 1);
if (this.groupList.length <= 0) { if (this.groupList.length <= 0) {
this.searchTip = true; this.searchTip = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment