Browse Source

【优化】框架参数优先

程志平 4 years ago
parent
commit
d3687cec04

+ 5 - 4
src/components/yongshuiyichang/yongshuiyichang.vue

@@ -28,12 +28,13 @@
 						<template slot-scope="scope">{{ scope.row.stu_number }}</template>
 						<template slot-scope="scope">{{ scope.row.stu_number }}</template>
 					</el-table-column>
 					</el-table-column>
 					<el-table-column prop="user_name" label="宿舍号" align="center" width="400"></el-table-column>
 					<el-table-column prop="user_name" label="宿舍号" align="center" width="400"></el-table-column>
-					<el-table-column prop="balance" label="消费金额(元)" align="center" show-overflow-tooltip></el-table-column>
+					<el-table-column prop="balance" label="消费金额(元)" align="center" show-overflow-tooltip>
+					</el-table-column>
 					<el-table-column label="操作" align="center" width="380">
 					<el-table-column label="操作" align="center" width="380">
 						<template slot-scope="scope">
 						<template slot-scope="scope">
-							<el-button type="text" v-if="handle?true:false"
-								@click="handleShowDialog(scope.$index, scope.row)">未处理</el-button>
-							<el-button type="text" v-if="handle?false:true" class="exception">已处理</el-button>
+							<el-button type="text" v-if="handle" @click="handleShowDialog(scope.$index, scope.row)">未处理
+							</el-button>
+							<el-button type="text" class="exception" v-else>已处理</el-button>
 						</template>
 						</template>
 					</el-table-column>
 					</el-table-column>
 				</el-table>
 				</el-table>

+ 2 - 2
src/components/zhifuyichang/zhifuyichang.vue

@@ -33,9 +33,9 @@
 					<el-table-column prop="balance" label="时间" align="center" show-overflow-tooltip></el-table-column>
 					<el-table-column prop="balance" label="时间" align="center" show-overflow-tooltip></el-table-column>
 					<el-table-column label="操作" align="center" width="380">
 					<el-table-column label="操作" align="center" width="380">
 						<template slot-scope="scope">
 						<template slot-scope="scope">
-							<el-button type="text" v-if="handle?true:false"
+							<el-button type="text" v-if="handle"
 								@click="handleShowDialog(scope.$index, scope.row)">未处理</el-button>
 								@click="handleShowDialog(scope.$index, scope.row)">未处理</el-button>
-							<el-button type="text" v-if="handle?false:true" class="exception">已处理</el-button>
+							<el-button type="text" class="exception" v-else>已处理</el-button>
 						</template>
 						</template>
 					</el-table-column>
 					</el-table-column>
 				</el-table>
 				</el-table>