shish 2 lat temu
rodzic
commit
9169e55b15
1 zmienionych plików z 17 dodań i 12 usunięć
  1. 17 12
      pt/src/views/cp/pt-list.vue

+ 17 - 12
pt/src/views/cp/pt-list.vue

@@ -51,13 +51,24 @@
 
 			<template #table-column-delStatus="{scope}">
 				<div v-if="scope.row.delStatus==0">
+					<div v-if="scope.row.auth == 1" style="color:green;font-weight:bold;">已认证</div>
 				</div>
 				<div v-else style="color:red;font-weight:bold;">已删除</div>
 			</template>
 
 			<template #table-column-name="{scope}">
-				<div v-if="scope.row.delStatus==0">{{scope.row.name}}</div>
-				<div v-else style="color:#CCCCCC;">{{scope.row.name}}</div>
+				<div v-if="scope.row.delStatus==0">
+					<div v-if="scope.row.auth==1" style="color:green;font-weight:bold;">
+						{{scope.row.name}}
+						<i class="el-icon-success" size="medium"></i>
+					</div>
+					<div v-else>
+						{{scope.row.name}}
+					</div>
+				</div>
+				<div v-else style="color:#CCCCCC;">
+					{{scope.row.name}}<i class="el-icon-delete-solid" size="medium"></i>
+				</div>
 			</template>
 
 			<template #slot-column-option="{scope}">
@@ -206,13 +217,13 @@ export default {
 					inTurn:100
 				}
 			}else{
-				this.$service.ptCp.getDetail({id:id}).then(async res => {
-					let index = this.itemClassList.findIndex((e) => e.id == res.classId)
+				this.$service.ptCp.getDetail({id:id}).then(async respond => {
+					let res = respond.info
 					this.replaceForm.name = res.name
 					this.replaceForm.cover = res.cover
 					this.replaceForm.inTurn = res.inTurn
-					this.replaceForm.classId = res.classId
-					this.replaceForm.className = this.itemClassList[index].name
+					this.replaceForm.classId = parseFloat(res.classId) == 0 ? '' : res.classId
+					this.replaceForm.className = res.className
 					this.$forceUpdate()
 				})
 			}
@@ -279,12 +290,6 @@ export default {
 							align: 'center',
 							minWidth: 100,
 						},
-						{
-							prop: 'auth',
-							label: '认证',
-							align: 'center',
-							minWidth: 100,
-						},
 						{
 							prop: 'inTurn',
 							label: '排序',