修改卡片模板.
This commit is contained in:
@@ -59,7 +59,9 @@
|
||||
配置
|
||||
</a-doption>
|
||||
<!-- 删除 -->
|
||||
<a-doption class="span-red" @click="deleteRow(record.id)">
|
||||
<a-doption v-permission="['asset:host:delete']"
|
||||
class="span-red"
|
||||
@click="deleteRow(record.id)">
|
||||
<icon-delete />
|
||||
删除
|
||||
</a-doption>
|
||||
@@ -111,7 +113,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: 'host-card-list'
|
||||
name: 'asset-host-card-list'
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -44,8 +44,7 @@
|
||||
const appStore = useAppStore();
|
||||
const cacheStore = useCacheStore();
|
||||
|
||||
// FIXME 临时
|
||||
const renderTable = computed(() => appStore.hostView === 'card');
|
||||
const renderTable = computed(() => appStore.hostView === 'table');
|
||||
|
||||
// 添加回调
|
||||
const modalAddCallback = () => {
|
||||
@@ -58,7 +57,6 @@
|
||||
|
||||
// 修改回调
|
||||
const modalUpdateCallback = () => {
|
||||
console.log(renderTable.value);
|
||||
if (renderTable.value) {
|
||||
table.value.updatedCallback();
|
||||
} else {
|
||||
|
||||
@@ -18,7 +18,7 @@ export const fieldConfig = {
|
||||
label: '主机标签',
|
||||
dataIndex: 'tags',
|
||||
slotName: 'tags',
|
||||
rowAlign: 'start'
|
||||
rowAlign: 'start',
|
||||
},
|
||||
] as CardField[]
|
||||
} as CardFieldConfig;
|
||||
|
||||
Reference in New Issue
Block a user