|
@@ -10,6 +10,9 @@
|
|
<el-button hc-btn type="danger" @click="delClick">删除</el-button>
|
|
<el-button hc-btn type="danger" @click="delClick">删除</el-button>
|
|
</template>
|
|
</template>
|
|
<hc-table :column="tableColumn" :datas="tableData" :loading="tableLoading" :index-style="{ width: 60 }">
|
|
<hc-table :column="tableColumn" :datas="tableData" :loading="tableLoading" :index-style="{ width: 60 }">
|
|
|
|
+ <template #tableTemplateType="{ row }">
|
|
|
|
+ <span>{{ getTableTempTypeName(row.tableTemplateType) }}</span>
|
|
|
|
+ </template>
|
|
<template #action="{ row }">
|
|
<template #action="{ row }">
|
|
<el-link type="warning" @click="editRowClick(row)">修改</el-link>
|
|
<el-link type="warning" @click="editRowClick(row)">修改</el-link>
|
|
<el-link v-del-com:[delRowClick]="row" type="danger">删除</el-link>
|
|
<el-link v-del-com:[delRowClick]="row" type="danger">删除</el-link>
|
|
@@ -25,7 +28,7 @@
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
import { onActivated, ref } from 'vue'
|
|
import { onActivated, ref } from 'vue'
|
|
-import { getArrValue } from 'js-fast-way'
|
|
|
|
|
|
+import { getArrValue, isNullES } from 'js-fast-way'
|
|
import { getDictionaryData } from '~uti/tools'
|
|
import { getDictionaryData } from '~uti/tools'
|
|
import mainApi from '~api/exctab/exceltab'
|
|
import mainApi from '~api/exctab/exceltab'
|
|
|
|
|
|
@@ -40,13 +43,12 @@ onActivated(() => {
|
|
const tableTempType = ref([])
|
|
const tableTempType = ref([])
|
|
const tableTemplateType = async () => {
|
|
const tableTemplateType = async () => {
|
|
tableTempType.value = await getDictionaryData('table_template_type', true)
|
|
tableTempType.value = await getDictionaryData('table_template_type', true)
|
|
- console.log(tableTempType.value)
|
|
|
|
}
|
|
}
|
|
const getTableTempTypeName = (key) => {
|
|
const getTableTempTypeName = (key) => {
|
|
- return tableTempType.value.find(item => item.dictKey === key)?.dictValue
|
|
|
|
|
|
+ if (isNullES(key)) return '-'
|
|
|
|
+ return tableTempType.value.find(item => item.value === key)?.label
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
//搜索表单
|
|
//搜索表单
|
|
const searchForm = ref({ parentId: 0, current: 1, size: 30, total: 0 })
|
|
const searchForm = ref({ parentId: 0, current: 1, size: 30, total: 0 })
|
|
|
|
|