|
@@ -67,11 +67,17 @@
|
|
>
|
|
>
|
|
<el-table-column label="ID" prop="id" width="80px" sortable />
|
|
<el-table-column label="ID" prop="id" width="80px" sortable />
|
|
<el-table-column label="学校ID" prop="rootOrgId" width="110px" sortable />
|
|
<el-table-column label="学校ID" prop="rootOrgId" width="110px" sortable />
|
|
- <el-table-column label="规则类型" prop="type" width="150px" sortable />
|
|
|
|
|
|
+
|
|
|
|
+ <el-table-column label="规则类型" width="150px">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ getTypeTitle(scope.row.type) }} </span></template
|
|
|
|
+ >
|
|
|
|
+ </el-table-column>
|
|
|
|
+
|
|
<el-table-column label="是否例外(白名单)" width="150px">
|
|
<el-table-column label="是否例外(白名单)" width="150px">
|
|
- <template slot-scope="scope">{{
|
|
|
|
- scope.row.allow ? "是" : "否"
|
|
|
|
- }}</template>
|
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ scope.row.allow ? "是" : "否" }}</span>
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column label="创建时间" prop="creationTime" sortable />
|
|
<el-table-column label="创建时间" prop="creationTime" sortable />
|
|
@@ -115,6 +121,7 @@ export default {
|
|
formSearch: {
|
|
formSearch: {
|
|
rootOrgId: null,
|
|
rootOrgId: null,
|
|
type: null,
|
|
type: null,
|
|
|
|
+ allow: null,
|
|
pageNo: 1,
|
|
pageNo: 1,
|
|
pageSize: 10
|
|
pageSize: 10
|
|
},
|
|
},
|
|
@@ -182,9 +189,17 @@ export default {
|
|
clearTypeValue() {
|
|
clearTypeValue() {
|
|
this.formSearch.type = null;
|
|
this.formSearch.type = null;
|
|
},
|
|
},
|
|
|
|
+ getTypeTitle(val) {
|
|
|
|
+ for (let type of this.ruleTypes) {
|
|
|
|
+ if (type.value == val) {
|
|
|
|
+ return type.label;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
resetSearchForm() {
|
|
resetSearchForm() {
|
|
this.formSearch.rootOrgId = null;
|
|
this.formSearch.rootOrgId = null;
|
|
this.formSearch.type = null;
|
|
this.formSearch.type = null;
|
|
|
|
+ this.formSearch.allow = null;
|
|
this.doSearch(1);
|
|
this.doSearch(1);
|
|
}
|
|
}
|
|
},
|
|
},
|