Răsfoiți Sursa

绑供货商

shish 5 ani în urmă
părinte
comite
74217ae86f
1 a modificat fișierele cu 5 adăugiri și 4 ștergeri
  1. 5 4
      pt/src/saas/shop/list.vue

+ 5 - 4
pt/src/saas/shop/list.vue

@@ -2,7 +2,7 @@
 	<div class="app-list-content">
 		<x-crud class="liu-crud-wrap" @load="onLoad">
 			<!-- 粉丝 -->
-			<template #table-column-totalFans="{scope}">
+			<template #table-column-totalFans>
 
 			</template>
 
@@ -36,8 +36,9 @@
 			</template>
 
 			<template #slot-op-btn="{scope}">
-				<el-button size="mini" type="text" @click="selGoods(scope.row.id)">绑供货商</el-button>
+					<el-button v-if="scope.row.style == 2" size="mini" type="text" @click="bindGhs(scope.row.id)">绑供货商</el-button>
 			</template>
+
 			<template #slot-add-ad-btn>
 				<el-button type="primary" size="mini" class="sj_add_button" @click="addBtnFn">添加</el-button>
 			</template>
@@ -159,14 +160,14 @@ export default {
 		this.getWxOpen();
 	},
 	methods: {
-		selGoodsConfirmFn(item) {
+		bindGhsConfirmFn(item) {
 
 			GhsService.bindGhs({sjId:this.selectSjId,ghsSjId:item.id}).then(res => {
 				this.$message.success('操作成功!');
 				this.ghsModal = false;
 			});
 		},
-		selGoods(id) {
+		bindGhs(id) {
 			this.selectSjId = id;
 			this.ghsModal = true;
 		},