|
|
@@ -21,24 +21,24 @@
|
|
|
{{ item.status ? '已启用' : '已禁用'}}
|
|
|
</v-chip>
|
|
|
</template>
|
|
|
- <template #tag="{ item }">
|
|
|
+ <template #tag_info="{ item }">
|
|
|
<m-graph-drill
|
|
|
- :id="item.tag?.id"
|
|
|
- :title="`${item.tag?.name}血缘图谱`"
|
|
|
- >{{ item.tag?.name }}</m-graph-drill>
|
|
|
+ :id="item.tag_info?.id"
|
|
|
+ :title="`${item.tag_info?.name_zh}血缘图谱`"
|
|
|
+ >{{ item.tag_info?.name_zh }}</m-graph-drill>
|
|
|
</template>
|
|
|
<template #blood_count="{ item }">
|
|
|
<m-graph-drill
|
|
|
:id="item.id"
|
|
|
- :title="`${item.name}血缘图谱`"
|
|
|
+ :title="`${item.name_zh}血缘图谱`"
|
|
|
:to-api="api.getResourceGraph"
|
|
|
>{{ item.blood_count }}</m-graph-drill>
|
|
|
</template>
|
|
|
<template #type="{ item }">
|
|
|
{{ item.type === 'unstructured' ? '非结构化' : '结构化' }}
|
|
|
</template>
|
|
|
- <template #name="{ item }">
|
|
|
- <div class="defaultLink" @click="handleDetails(item)">{{ item.name }}</div>
|
|
|
+ <template #name_zh="{ item }">
|
|
|
+ <div class="defaultLink" @click="handleDetails(item)">{{ item.name_zh }}</div>
|
|
|
</template>
|
|
|
<template #alias="item">
|
|
|
<v-chip v-for="chip in item.alias" :key="chip">{{ chip }}</v-chip>
|
|
|
@@ -65,19 +65,19 @@ export default {
|
|
|
loading: false,
|
|
|
show: false,
|
|
|
queryData: {
|
|
|
- name: null
|
|
|
+ name_zh: null
|
|
|
},
|
|
|
headers: [
|
|
|
- { text: '中文名', value: 'name' },
|
|
|
- { text: '英文名', value: 'en_name' },
|
|
|
+ { text: '中文名', value: 'name_zh' },
|
|
|
+ { text: '英文名', value: 'name_en' },
|
|
|
{ text: '分类', value: 'category' },
|
|
|
{ text: '描述', value: 'describe' },
|
|
|
- { text: '标签', value: 'tag' },
|
|
|
+ { text: '标签', value: 'tag_info' },
|
|
|
{ text: '状态', value: 'status' },
|
|
|
{ text: '血缘关系数量', value: 'blood_count', align: 'center' },
|
|
|
{ text: '更新频率', value: 'frequency' },
|
|
|
{ text: '数据敏感度', value: 'data_sensitivity' },
|
|
|
- { text: '创建时间', value: 'time' }
|
|
|
+ { text: '创建时间', value: 'create_time' }
|
|
|
],
|
|
|
itemData: {},
|
|
|
items: [],
|
|
|
@@ -124,8 +124,8 @@ export default {
|
|
|
this.pageInfo.current = 1
|
|
|
this.init()
|
|
|
},
|
|
|
- handleDetails ({ id, name }) {
|
|
|
- this.$router.push(`${this.$route.path}/details/${id}/${name}`)
|
|
|
+ handleDetails (item) {
|
|
|
+ this.$router.push(`${this.$route.path}/details/${item.id}/${item.name_zh}`)
|
|
|
},
|
|
|
pageHandleChange (page) {
|
|
|
this.pageInfo.current = page
|