|
@@ -46,7 +46,13 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="part-box">
|
|
<div class="part-box">
|
|
- <el-table ref="TableList" :data="cards" border stripe>
|
|
|
|
|
|
+ <el-table
|
|
|
|
+ ref="TableList"
|
|
|
|
+ :data="cards"
|
|
|
|
+ :row-class-name="tableRowClassName"
|
|
|
|
+ border
|
|
|
|
+ stripe
|
|
|
|
+ >
|
|
<el-table-column prop="cardCode" label="题卡ID"></el-table-column>
|
|
<el-table-column prop="cardCode" label="题卡ID"></el-table-column>
|
|
<el-table-column label="科目(编码)">
|
|
<el-table-column label="科目(编码)">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -75,22 +81,22 @@
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column label="操作" align="center" width="120">
|
|
<el-table-column label="操作" align="center" width="120">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <div v-if="scope.row.cardStatus === 0">
|
|
|
|
- <el-button
|
|
|
|
- class="btn-table-icon"
|
|
|
|
- type="text"
|
|
|
|
- icon="icon icon-edit"
|
|
|
|
- @click="toEdit(scope.row)"
|
|
|
|
- title="编辑"
|
|
|
|
- ></el-button>
|
|
|
|
- <el-button
|
|
|
|
- class="btn-table-icon"
|
|
|
|
- type="text"
|
|
|
|
- icon="icon icon-delete"
|
|
|
|
- @click="toDelete(scope.row)"
|
|
|
|
- title="删除"
|
|
|
|
- ></el-button>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ class="btn-table-icon"
|
|
|
|
+ type="text"
|
|
|
|
+ icon="icon icon-edit"
|
|
|
|
+ @click="toEdit(scope.row)"
|
|
|
|
+ title="编辑"
|
|
|
|
+ v-if="scope.row.cardStatus === 0"
|
|
|
|
+ ></el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ class="btn-table-icon"
|
|
|
|
+ type="text"
|
|
|
|
+ icon="icon icon-delete"
|
|
|
|
+ @click="toDelete(scope.row)"
|
|
|
|
+ title="删除"
|
|
|
|
+ v-if="scope.row.cardStatus === 0"
|
|
|
|
+ ></el-button>
|
|
<el-button
|
|
<el-button
|
|
class="btn-table-icon"
|
|
class="btn-table-icon"
|
|
type="text"
|
|
type="text"
|
|
@@ -168,6 +174,9 @@ export default {
|
|
this.current = page;
|
|
this.current = page;
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
|
|
+ tableRowClassName({ row }) {
|
|
|
|
+ return row.warning ? "row-danger" : "";
|
|
|
|
+ },
|
|
toAdd() {
|
|
toAdd() {
|
|
this.$refs.CardOptionDialog.open();
|
|
this.$refs.CardOptionDialog.open();
|
|
},
|
|
},
|