CN-1283 用户自定义知识库列表页保留Status列,可以更简单直观的进行自定义库里Tag的开关切换
This commit is contained in:
@@ -94,6 +94,16 @@
|
|||||||
<template v-else-if="item.prop === 'description'">
|
<template v-else-if="item.prop === 'description'">
|
||||||
<span class="list-desc" :title="scope.row[item.prop]">{{scope.row[item.prop]}}</span>
|
<span class="list-desc" :title="scope.row[item.prop]">{{scope.row[item.prop]}}</span>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-else-if="item.prop === 'status'">
|
||||||
|
<el-switch v-model="scope.row.status"
|
||||||
|
active-color="#38ACD2"
|
||||||
|
inactive-color="#C0CEDB"
|
||||||
|
:active-value="1"
|
||||||
|
:inactive-value="0"
|
||||||
|
@change="changeStatus($event,scope.row.knowledgeId)"
|
||||||
|
>
|
||||||
|
</el-switch>
|
||||||
|
</template>
|
||||||
<span v-else>{{scope.row[item.prop] || '-'}}</span>
|
<span v-else>{{scope.row[item.prop] || '-'}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -172,6 +182,12 @@ export default {
|
|||||||
show: true,
|
show: true,
|
||||||
width: 150,
|
width: 150,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('knowledge.status'),
|
||||||
|
prop: 'status',
|
||||||
|
show: true,
|
||||||
|
width: 80
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user