Jelajahi Sumber

渠道、经销商列表页面修改

guanglong 3 tahun lalu
induk
melakukan
5b114de3b0

+ 11 - 2
src/views/business/channel/index.vue

@@ -158,14 +158,23 @@
                 @click="handleUpdate(scope.row)"
                 v-hasPermi="['business:channel:edit']"
               >编辑</el-button>
-             <el-switch
+              <el-button
+                  size="mini"
+                  type="text"
+                  @click="handleStatusChange(scope.row)"
+                  v-hasPermi="['admin:channel:edit']"
+                >
+                  <span v-if="getValue(scope.row.status) == 1" style="color: red;"> 停用</span>
+                  <span v-if="getValue(scope.row.status) == 2" style="color: blue;"> 启用</span>
+                </el-button>
+             <!-- <el-switch
                style="margin-left: 9px;"
                v-model="scope.row.statusV"
                active-value="1"
                inactive-value="2"
                v-hasPermi="['business:channel:edit']"
                @change="handleStatusChange(scope.row)"
-             ></el-switch>
+             ></el-switch> -->
 
              <!-- <el-button
                 size="mini"

+ 1 - 1
src/views/business/salesite/components/Detail.vue

@@ -27,7 +27,7 @@
          justify="flex-start">
          <el-form-item label="上级渠道" style="width: 50%;margin-bottom:5px;" >
            <span :class="loading?'el-icon-loading':''"></span>
-           {{detail.parentName}}
+           {{detail.parentsName}}
          </el-form-item>
          <el-form-item label="联系人" style="width: 50%;margin-bottom:5px;" >
            <span :class="loading?'el-icon-loading':''"></span>

+ 7 - 7
src/views/business/salesite/index.vue

@@ -149,23 +149,23 @@
             @click="handleUpdate(scope.row)"
             v-hasPermi="['admin:salesite:edit']"
           >编辑</el-button> -->
-        <!--  <el-button
+        <el-button
             size="mini"
             type="text"
             @click="handleStatusChange(scope.row)"
-            v-hasPermi="['admin:salesite:remove']"
+            v-hasPermi="['admin:salesite:edit']"
           >
-            <span v-if="getValue(scope.row.status) == 1"> 停用</span>
-            <span v-if="getValue(scope.row.status) == 2"> 启用</span>
-          </el-button> -->
-          <el-switch
+            <span v-if="getValue(scope.row.status) == 1" style="color: red;"> 停用</span>
+            <span v-if="getValue(scope.row.status) == 2" style="color: blue;"> 启用</span>
+          </el-button>
+         <!-- <el-switch
             style="margin-left: 9px;"
             v-model="scope.row.statusV"
             active-value="1"
             inactive-value="2"
             @change="handleStatusChange(scope.row)"
              v-hasPermi="['business:salesite:edit']"
-          ></el-switch>
+          ></el-switch> -->
         </template>
       </el-table-column>
     </el-table>