|
@@ -89,13 +89,15 @@
|
|
<el-table-column label="渠道编号" prop="channelId" width="100px" />
|
|
<el-table-column label="渠道编号" prop="channelId" width="100px" />
|
|
<el-table-column label="渠道名称" prop="name" show-overflow-tooltip width="180px">
|
|
<el-table-column label="渠道名称" prop="name" show-overflow-tooltip width="180px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-link
|
|
|
|
- :underline="false"
|
|
|
|
- type="primary"
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="scope.row.childCnt > 0"
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
@click="handleView(scope.row)"
|
|
@click="handleView(scope.row)"
|
|
>
|
|
>
|
|
{{scope.row.name}}
|
|
{{scope.row.name}}
|
|
- </el-link>
|
|
|
|
|
|
+ </el-button>
|
|
|
|
+ <span v-else>{{scope.row.name}}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="手机号码" prop="mobile" show-overflow-tooltip width="120px"/>
|
|
<el-table-column label="手机号码" prop="mobile" show-overflow-tooltip width="120px"/>
|
|
@@ -269,10 +271,16 @@ export default {
|
|
console.log("parentId == "+parentId+ "title == "+title)
|
|
console.log("parentId == "+parentId+ "title == "+title)
|
|
// this.$route.meta.title = title + " - 子渠道管理"
|
|
// this.$route.meta.title = title + " - 子渠道管理"
|
|
if(parentId){
|
|
if(parentId){
|
|
- this.getList();
|
|
|
|
|
|
+ this.initList();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+
|
|
|
|
+ initList(){
|
|
|
|
+ this.pageParams.pageNum = 1
|
|
|
|
+ this.getList();
|
|
|
|
+ },
|
|
|
|
+
|
|
/** 查询用户列表 */
|
|
/** 查询用户列表 */
|
|
getList() {
|
|
getList() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
@@ -377,7 +385,6 @@ export default {
|
|
// 保存后的操作
|
|
// 保存后的操作
|
|
submitSuccess(){
|
|
submitSuccess(){
|
|
this.getList();
|
|
this.getList();
|
|
- this.refreshChannelTree();
|
|
|
|
},
|
|
},
|
|
/**关闭弹窗*/
|
|
/**关闭弹窗*/
|
|
hideDialog(){
|
|
hideDialog(){
|
|
@@ -401,11 +408,9 @@ export default {
|
|
// this.createShow = true
|
|
// this.createShow = true
|
|
let parentId = row.channelId
|
|
let parentId = row.channelId
|
|
let title = row.name
|
|
let title = row.name
|
|
-
|
|
|
|
- // this.parentId = parentId
|
|
|
|
- // this.title = title;
|
|
|
|
this.queryParams.parentId = parentId
|
|
this.queryParams.parentId = parentId
|
|
this.queryParams.parentName = title
|
|
this.queryParams.parentName = title
|
|
|
|
+ this.pageParams.pageNum = 1
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
}
|
|
}
|