shish %!s(int64=2) %!d(string=hai) anos
pai
achega
3ebb1cb827
Modificáronse 1 ficheiros con 38 adicións e 4 borrados
  1. 38 4
      pt/src/saas/shop/buy.vue

+ 38 - 4
pt/src/saas/shop/buy.vue

@@ -1,6 +1,38 @@
 <template>
 	<div class="app-list-content">
 		<x-crud class="liu-crud-wrap" @load="onLoad">
+
+			<template #table-column-beforeDeadline="{ scope }">
+				<span v-if="scope.row.status == 0">-</span>
+				<span v-else>
+					<span v-if="scope.row.beforeDeadline == '0000-00-00 00:00:00'">-</span>
+					<span v-else>{{ scope.row.beforeDeadline ? scope.row.beforeDeadline.substr(0,16):'' }}</span>
+				</span>
+			</template>
+
+			<template #table-column-deadline="{ scope }">
+				<span v-if="scope.row.status == 0">-</span>
+				<span v-else>
+					<span v-if="scope.row.deadline == '0000-00-00 00:00:00'">-</span>
+					<span v-else>{{ scope.row.deadline ? scope.row.deadline.substr(0,16):'' }}</span>
+				</span>
+			</template>
+
+			<template #table-column-addTime="{ scope }">
+				<span v-if="scope.row.addTime == '0000-00-00 00:00:00'">-</span>
+				<span v-else>{{ scope.row.addTime ? scope.row.addTime.substr(0,16):'' }}</span>
+			</template>
+
+			<template #table-column-payTime="{ scope }">
+				<span v-if="scope.row.payTime == '0000-00-00 00:00:00'">-</span>
+				<span v-else>{{ scope.row.payTime ? scope.row.payTime.substr(0,16):'' }}</span>
+			</template>
+
+			<template #table-column-status="{ scope }">
+				<span v-if="scope.row.status == 0">待续期</span>
+				<span v-else style="color:#3385FF;">已续期</span>
+			</template>
+
 		</x-crud>
 	</div>
 </template>
@@ -65,13 +97,15 @@ export default {
 							prop: 'actPrice',
 							label: '金额',
 							align: 'center',
-							emptyText: ''
+							emptyText: '',
+							width: 100,
 						},
 						{
 							prop: 'year',
 							label: '年数',
 							align: 'center',
-							emptyText: ''
+							emptyText: '',
+							width: 60,
 						},
 						{
 							prop: 'payTime',
@@ -87,13 +121,13 @@ export default {
 						},
 						{
 							prop: 'beforeDeadline',
-							label: '续前过期',
+							label: '续前',
 							align: 'center',
 							emptyText: ''
 						},
 						{
 							prop: 'deadline',
-							label: '续后过期',
+							label: '续后',
 							align: 'center',
 							emptyText: ''
 						},