Browse Source

产品优化

shish 2 years ago
parent
commit
7290f8ac3a
2 changed files with 12 additions and 3 deletions
  1. 8 3
      pt/src/views/cp/pt-list.vue
  2. 4 0
      pt/src/views/item/list.vue

+ 8 - 3
pt/src/views/cp/pt-list.vue

@@ -84,9 +84,8 @@
 				</template>
 			</template>
 			<template #slot-modify="{scope}">
+				<el-button type="text" @click="showItemFn(scope.row)" style="">名下花材</el-button>
 				<el-button type="text" @click="replaceCpFn(scope.row.id)" style="">修改</el-button>
-			</template>
-			<template #slot-pleaseAuth="{scope}">
 				<el-button type="text" @click="authFn(scope.row)" style="margin-right:15px;" v-if="scope.row.auth == 0">申请认证</el-button>
 				<el-button type="text" @click="authFn(scope.row)" style="margin-right:15px;" v-else>取消认证</el-button>
 			</template>
@@ -217,6 +216,12 @@ export default {
 				}, 1000)
 			})
 		},
+		showItemFn(data){
+			let query = {};
+			query.cpId = data.id
+			query.cpName = data.name
+			this.$router.push({ path: '/item/list', query });
+		},
 		replaceCpFn(id){
 			this.replaceCpPop = true
 			this.currentCpId = id
@@ -334,7 +339,7 @@ export default {
 							fixed: 'right',
 							label: '操作',
 						},
-						layout: ['slot-modify','slot-pleaseAuth','slot-column-option'],
+						layout: ['slot-modify','slot-column-option'],
 					},
 				})
 				.set('pagination', {

+ 4 - 0
pt/src/views/item/list.vue

@@ -511,6 +511,10 @@ export default {
 				this.classId = this.$route.query.classId;
 				this.currentItemClassName = this.$route.query.className ? this.$route.query.className : ''
 			}
+			if (this.$route.query.cpId) {
+				this.cpId = this.$route.query.cpId;
+				this.currentCpClassName = this.$route.query.cpName ? this.$route.query.cpName : ''
+			}
 			ctx.service(this.$service.item)
 				.set('table', {
 					columns: [