Переглянути джерело

缺陷修復 - 后台--渠道管理点渠道名称如果有下级子渠道要一直可以点

guanglong 3 роки тому
батько
коміт
34c7a7a2e7
1 змінених файлів з 24 додано та 43 видалено
  1. 24 43
      src/views/business/channel/childs.vue

+ 24 - 43
src/views/business/channel/childs.vue

@@ -66,44 +66,6 @@
               @keyup.enter.native="handleQuery"
             />
           </el-form-item>
-         <!-- <el-form-item label="地区">
-           <el-select
-             v-model="queryParams.provinceId"
-             placeholder="选择省份"
-             clearable
-             size="small"
-             @change="getCityList()"
-             style="width: 120px;margin-right: 1px;">
-             <el-option
-               v-for="item in provinceList"
-               :key="item.areaId"
-               :label="item.areaName"
-               :value="item.areaId"
-             />
-           </el-select>
-           <el-select
-             v-model="queryParams.cityId"
-             placeholder="选择市"
-             clearable
-             size="small"
-              @change="getAreaList()"
-             style="width: 120px;margin-right: 1px;">
-             <el-option
-               v-for="item in cityList"
-               :key="item.areaId"
-               :label="item.areaName"
-               :value="item.areaId"
-             />
-           </el-select>
-           <el-select v-model="queryParams.areaId" placeholder="选择区" clearable size="small" style="width: 120px;margin-right: 1px;">
-             <el-option
-               v-for="item in areaList"
-               :key="item.areaId"
-               :label="item.areaName"
-               :value="item.areaId"
-             />
-           </el-select>
-         </el-form-item> -->
           <el-form-item>
             <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
             <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@@ -119,14 +81,23 @@
               @click="handleAdd"
               v-hasPermi="['business:channel:add']"
             >添加一级渠道</el-button> -->
-
           </el-col>
           <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
         </el-row>
 
         <el-table v-loading="loading" :data="channelList">
           <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">
+              <el-link
+                  :underline="false"
+                   type="primary"
+                  @click="handleView(scope.row)"
+                >
+                  {{scope.row.name}}
+              </el-link>
+            </template>
+          </el-table-column>
           <el-table-column label="手机号码" prop="mobile" show-overflow-tooltip  width="120px"/>
           <el-table-column label="佣金比例" prop="commRate">
             <template slot-scope="scope">
@@ -274,9 +245,7 @@ export default {
       queryParams: {
         name: "",
         mobile: "",
-        provinceId:"",
-        cityId:"",
-        areaId:""
+        parentName: ""
       },
       pageParams: {
         pageNum: 1,
@@ -427,6 +396,18 @@ export default {
       const dataObj = JSON.parse(val);
       return (dataObj && dataObj.value) || "";
     },
+
+    handleView(row) {
+      // this.createShow = true
+      let parentId = row.channelId
+      let title = row.name
+
+      // this.parentId = parentId
+      // this.title = title;
+      this.queryParams.parentId = parentId
+      this.queryParams.parentName = title
+      this.getList();
+    },
   }
 };
 </script>