|
|
@ -22,7 +22,9 @@ import { Dialog } from '@/components/Dialog'
|
|
|
|
import { getWidth } from '@/utils';
|
|
|
|
import { getWidth } from '@/utils';
|
|
|
|
import Detail from './components/Detail.vue'
|
|
|
|
import Detail from './components/Detail.vue'
|
|
|
|
import { Upload } from '@/components/Upload'
|
|
|
|
import { Upload } from '@/components/Upload'
|
|
|
|
|
|
|
|
import { useRouter } from 'vue-router'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const router = useRouter();
|
|
|
|
const { t } = useI18n()
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
|
|
|
|
|
|
|
const ids = ref<string[]>([])
|
|
|
|
const ids = ref<string[]>([])
|
|
|
@ -89,7 +91,12 @@ const tableColumns = reactive<TableColumn[]>([
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'modelCode',
|
|
|
|
field: 'modelCode',
|
|
|
|
label: '数据模型编码'
|
|
|
|
label: '数据模型编码',
|
|
|
|
|
|
|
|
slots:{
|
|
|
|
|
|
|
|
default:(data:any)=>{
|
|
|
|
|
|
|
|
return <span onClick={() => turnToDataModule(data.row)}>{data.row.modelCode}</span>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'createOrgan',
|
|
|
|
field: 'createOrgan',
|
|
|
@ -180,6 +187,17 @@ const currentRow = ref()
|
|
|
|
const actionType = ref('')
|
|
|
|
const actionType = ref('')
|
|
|
|
|
|
|
|
|
|
|
|
const writeRef = ref<ComponentRef<typeof Write>>()
|
|
|
|
const writeRef = ref<ComponentRef<typeof Write>>()
|
|
|
|
|
|
|
|
// 跳转到数据模型界面
|
|
|
|
|
|
|
|
const turnToDataModule = (data)=>{
|
|
|
|
|
|
|
|
router.push(
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name:'repDataModel',
|
|
|
|
|
|
|
|
query:{
|
|
|
|
|
|
|
|
modelCode:data.modelCode
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**单行查询**/
|
|
|
|
/**单行查询**/
|
|
|
|
const action = async (row: TableData, type: string) => {
|
|
|
|
const action = async (row: TableData, type: string) => {
|
|
|
|