shish 2 лет назад
Родитель
Сommit
d45ee651c4
3 измененных файлов с 31 добавлено и 43 удалено
  1. 12 9
      pt/src/views/cp/pt-cp-class.vue
  2. 16 31
      pt/src/views/item-class/list.vue
  3. 3 3
      pt/src/views/item/list.vue

+ 12 - 9
pt/src/views/cp/pt-cp-class.vue

@@ -26,7 +26,10 @@
 				</el-input>
 			</template>
 
-			<!-- 排序 -->
+			<template #table-column-cover="{scope}">
+				<img :src="scope.row.cover" style="width:40px;height:40px;margin:0 auto;" />
+			</template>
+
 			<template #table-header-inTurn>
 				<div class="set-sort">
 					<span>排序</span>
@@ -34,9 +37,8 @@
 			</template>
 
 			<template #slot-item-list="{scope}">
-				<el-button type="text" @click.native.stop="getCpList(scope.row)">查看产品</el-button>
+				<el-button type="text" @click.native.stop="getCpList(scope.row)">名下产品</el-button>
 			</template>
-
 		</x-crud>
 	</div>
 </template>
@@ -84,6 +86,12 @@ export default {
 							label: 'ID',
 							align: 'center'
 						},
+						{
+							prop: 'cover',
+							label: '图片',
+							align: 'center',
+							minWidth: 120
+						},						
 						{
 							prop: 'name',
 							label: '名称',
@@ -104,16 +112,11 @@ export default {
 						},
 						{
 							prop: 'addTime',
-							label: '创建时间',
+							label: '添加时间',
 							align: 'center',
 							minWidth: 180
 						}
 					],
-					on: {
-						'row-click': (row, column) => {
-							this.getCpList(row)
-						}
-					},
 					op: {
 						visible: true,
 						props: {

+ 16 - 31
pt/src/views/item-class/list.vue

@@ -17,17 +17,11 @@
 					</el-tab-pane>
 				</el-tabs>
 			</template>
-
 			<template #table-column-num="{scope}">
-				<el-link
-					@click="getItemList(scope.row)"
-				>{{ scope.row.num }}</el-link>
+				{{ scope.row.num }}
 			</template>
-
 			<template #table-column-name="{scope}">
-				<el-link
-					@click="getItemList(scope.row)"
-				>{{ scope.row.name }}</el-link>
+				{{ scope.row.name }}
 			</template>
 
 			<template #table-column-inTurn="{scope}">
@@ -44,7 +38,10 @@
 				></el-input>
 			</template>
 
-			<!-- 排序 -->
+			<template #table-column-cover="{scope}">
+				<img :src="scope.row.cover" style="width:40px;height:40px;margin:0 auto;" />
+			</template>
+
 			<template #table-header-inTurn>
 				<div class="set-sort">
 					<span>排序</span>
@@ -68,7 +65,7 @@
 			</template>
 
 			<template #slot-item-list="{scope}">
-				<el-button type="text" @click.native.stop="getItemList(scope.row)">花材列表</el-button>
+				<el-button type="text" @click.native.stop="getItemList(scope.row)">名下花材</el-button>
 			</template>
 
 			<template #slot-modify="{scope}">
@@ -77,14 +74,7 @@
 
 		</x-crud>
 
-
-		<!-- 新增弹窗 -->
-		<el-dialog
-			:title="`${id == 0 ? '添加' : '修改'}分类`"
-			:visible.sync="replaceDialog"
-			:close-on-click-modal="false"
-			width="600px"
-		>
+		<el-dialog :title="`${id == 0 ? '添加' : '修改'}分类`" :visible.sync="replaceDialog" :close-on-click-modal="false" width="600px" >
 			<div class="ad-modal-content">
 				<el-form :model="replaceForm" :rules="ruleForm" ref="replaceForm" label-width="100px" class="demo-form">
 					<el-form-item label="分类名称" prop="name">
@@ -98,7 +88,6 @@
 			</div>
 		</el-dialog>
 
-
 	</div>
 </template>
 
@@ -212,6 +201,12 @@ export default {
 							label: 'ID',
 							align: 'center'
 						},
+						{
+							prop: 'cover',
+							label: '图片',
+							align: 'center',
+							minWidth: 120
+						},
 						{
 							prop: 'name',
 							label: '标题',
@@ -220,9 +215,9 @@ export default {
 						},
 						{
 							prop: 'num',
-							label: '花材数量',
+							label: '数量',
 							align: 'center',
-							'min-width': 100
+							minWidth: 100
 						},
 						{
 							prop: 'inTurn',
@@ -237,13 +232,6 @@ export default {
 							minWidth: 180
 						}
 					],
-
-					on: {
-						'row-click': (row, column) => {
-							this.getItemList(row)
-						}
-					},
-
 					op: {
 						visible: true,
 						props: {
@@ -254,9 +242,6 @@ export default {
 						},
 						layout: ['slot-item-list','slot-modify']
 					}
-
-
-
 				})
 				.set('dict', {
 					search: {

+ 3 - 3
pt/src/views/item/list.vue

@@ -88,9 +88,9 @@
 				<el-dropdown size="medium" split-button type="primary" @click="installCp" @command="doMore">
 				设置产品
 				<el-dropdown-menu slot="dropdown">
-					<el-dropdown-item command="toAuth">申请认证</el-dropdown-item>
-					<el-dropdown-item command="cancelAuth">取消认证</el-dropdown-item>
-					<el-dropdown-item command="delCpRelate">删除关联</el-dropdown-item>
+					<el-dropdown-item command="toAuth">加V认证</el-dropdown-item>
+					<el-dropdown-item command="cancelAuth">取消加V</el-dropdown-item>
+					<el-dropdown-item command="delCpRelate">删除产品关联</el-dropdown-item>
 				</el-dropdown-menu>
 				</el-dropdown>
 			</template>