|
@@ -71,7 +71,7 @@
|
|
<el-table-column prop="name" label="题卡规则名称"></el-table-column>
|
|
<el-table-column prop="name" label="题卡规则名称"></el-table-column>
|
|
<el-table-column prop="orgs" label="适用学院">
|
|
<el-table-column prop="orgs" label="适用学院">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{ scope.row.orgs | orgsFilter }}
|
|
|
|
|
|
+ <more-text :data="scope.row.orgNames"></more-text>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="remark" label="备注">
|
|
<el-table-column prop="remark" label="备注">
|
|
@@ -222,7 +222,10 @@ export default {
|
|
if (datas.enable !== null && datas.enable !== "")
|
|
if (datas.enable !== null && datas.enable !== "")
|
|
datas.enable = !!datas.enable;
|
|
datas.enable = !!datas.enable;
|
|
const data = await cardRuleListPage(datas);
|
|
const data = await cardRuleListPage(datas);
|
|
- this.rules = data.records;
|
|
|
|
|
|
+ this.rules = data.records.map(item => {
|
|
|
|
+ item.orgNames = item.orgs.map(org => org.name);
|
|
|
|
+ return item;
|
|
|
|
+ });
|
|
this.total = data.total;
|
|
this.total = data.total;
|
|
},
|
|
},
|
|
toPage(page) {
|
|
toPage(page) {
|