|
@@ -14,11 +14,10 @@
|
|
<el-table-column v-for="item in column" :key="item.value" :prop="item.value" :render-header=" $commonJS.renderHeaderMethods" :label="item.name" sortable="custom" align="center">
|
|
<el-table-column v-for="item in column" :key="item.value" :prop="item.value" :render-header=" $commonJS.renderHeaderMethods" :label="item.name" sortable="custom" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div v-if="['name'].includes(item.value)">
|
|
<div v-if="['name'].includes(item.value)">
|
|
- <el-link @click="handleItem(scope.row,item.value)">{{ scope.row[item.value] }}</el-link>
|
|
|
|
|
|
+ <el-link @click="handleItem(scope.row,item.value)" v-html="$commonJS.getColumnData(scope.row,item)"></el-link>
|
|
</div>
|
|
</div>
|
|
- <div v-else-if="['eventName','cronNames'].includes(item.value)" v-html="$commonJS.getColumnData(scope.row,item)"></div>
|
|
|
|
- <div v-else-if="['status'].includes(item.value)" v-html="getColumn(scope.row,item.value)"></div>
|
|
|
|
- <div v-else>{{ scope.row[item.value] }}</div>
|
|
|
|
|
|
+ <div v-else-if="['eventNames','cronNames'].includes(item.value)" v-html="$commonJS.getColumnData(scope.row,item)"></div>
|
|
|
|
+ <div v-else v-html="$commonJS.getColumnData(scope.row,item)"></div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
@@ -136,7 +135,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//更新数据
|
|
//更新数据
|
|
- updateData(){
|
|
|
|
|
|
+ updateData() {
|
|
if(this.action.type == 1){
|
|
if(this.action.type == 1){
|
|
if(this.tableData.length == 1){
|
|
if(this.tableData.length == 1){
|
|
return false
|
|
return false
|
|
@@ -242,16 +241,6 @@ export default {
|
|
this.tableData.splice(0)
|
|
this.tableData.splice(0)
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
- // 数据处理
|
|
|
|
- getColumn(row, key) {
|
|
|
|
- if (key == 'status') {
|
|
|
|
- if (row[key]) {
|
|
|
|
- return statusName[row[key]]
|
|
|
|
- } else {
|
|
|
|
- return '--'
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|