|
@@ -84,7 +84,7 @@
|
|
|
<div class="flex justify-center">
|
|
|
<CzrButton
|
|
|
type="table"
|
|
|
- :title="scope.row.p1"
|
|
|
+ :title="scope.row.name"
|
|
|
@click="onStage(scope.row)"
|
|
|
/>
|
|
|
</div>
|
|
@@ -166,15 +166,39 @@ const state: any = reactive({
|
|
|
init: false,
|
|
|
loading: false,
|
|
|
head: [
|
|
|
- { value: 'name', label: '文件名称', show: true },
|
|
|
- { value: 'wordCount', label: '字符数', show: true },
|
|
|
- { value: 'indexingStatus', label: '状态', show: true },
|
|
|
- { value: 'p1', label: '召回次数(NO)', show: true },
|
|
|
- { value: 'isUse', label: '启用/停用', show: true },
|
|
|
- { value: 'checkStatus', label: '审核状态', show: true },
|
|
|
- { value: 'p1', label: '关联应用(NO)', show: true },
|
|
|
- { value: 'createTime', label: '创建时间', show: true },
|
|
|
- { value: 'updateTime', label: '更新时间', show: true },
|
|
|
+ { value: 'name', label: '文件名称', show: true, width: 200 },
|
|
|
+ { value: 'wordCount', label: '字符数', show: true, width: 100 },
|
|
|
+ {
|
|
|
+ value: 'indexingStatus',
|
|
|
+ label: '状态',
|
|
|
+ show: true,
|
|
|
+ width: 100,
|
|
|
+ dictList: DictionaryStore.indexingStatusList,
|
|
|
+ },
|
|
|
+ { value: 'p1', label: '召回次数(无)', show: true },
|
|
|
+ {
|
|
|
+ value: 'isUse',
|
|
|
+ label: '启用/停用',
|
|
|
+ show: true,
|
|
|
+ width: 100,
|
|
|
+ dictList: DictionaryStore.documentUseList,
|
|
|
+ },
|
|
|
+ { value: 'checkStatus', label: '审核状态', show: true, width: 100 },
|
|
|
+ { value: 'p1', label: '关联应用(无)', show: true },
|
|
|
+ {
|
|
|
+ value: 'createTime',
|
|
|
+ label: '创建时间',
|
|
|
+ show: true,
|
|
|
+ width: 180,
|
|
|
+ datetime: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 'updateTime',
|
|
|
+ label: '更新时间',
|
|
|
+ show: true,
|
|
|
+ width: 180,
|
|
|
+ datetime: true,
|
|
|
+ },
|
|
|
{
|
|
|
value: 'caozuo',
|
|
|
label: '操作',
|
|
@@ -303,7 +327,8 @@ const onDel = (row: any = null) => {
|
|
|
}
|
|
|
const onRename = (row) => {
|
|
|
state.rename.transfer = {
|
|
|
- row: JSON.parse(JSON.stringify(row)),
|
|
|
+ id: row.id,
|
|
|
+ name: JSON.parse(JSON.stringify(row.name)),
|
|
|
}
|
|
|
state.rename.show = true
|
|
|
}
|
|
@@ -334,7 +359,10 @@ onMounted(() => {
|
|
|
initDictionary()
|
|
|
onReset()
|
|
|
})
|
|
|
-const initDictionary = () => {}
|
|
|
+const initDictionary = () => {
|
|
|
+ DictionaryStore.initDict('document_use')
|
|
|
+ DictionaryStore.initDict('indexing_status')
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|