通过点击指标集的信息跳转到指标模型界面

main
于阔 9 months ago
parent 03af7e5875
commit 18e4abcc95

@ -22,7 +22,10 @@ import { Dialog } from '@/components/Dialog'
import { getWidth } from '@/utils';
import Detail from './components/Detail.vue'
import { Upload } from '@/components/Upload'
import { useRoute } from 'vue-router';
const route = useRoute();
const pageQuery = ref(route || null);
const modelCode = pageQuery.value?.query?.modelCode;
const { t } = useI18n()
const ids = ref<string[]>([])
@ -119,7 +122,8 @@ const searchSchema = reactive<FormSchema[]>([
field: 'modelCode',
label: '模型编码',
componentProps: {},
component: 'Input'
component: 'Input',
value:modelCode
},
{
field: 'modelName',
@ -146,7 +150,7 @@ const setSearchParams = (data: any) => {
searchParams.value = data
getList()
}
setSearchParams({modelCode:modelCode});
const dialogVisible = ref(false)
const dialogTitle = ref('')

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

Loading…
Cancel
Save