|
|
@ -22,7 +22,9 @@ import { Dialog } from '@/components/Dialog'
|
|
|
|
import { getWidth, transfDictList } from '@/utils';
|
|
|
|
import { getWidth, transfDictList } from '@/utils';
|
|
|
|
import Detail from './components/Detail.vue'
|
|
|
|
import Detail from './components/Detail.vue'
|
|
|
|
import { REPORTING_STATUS_LIST } from './constants'
|
|
|
|
import { REPORTING_STATUS_LIST } from './constants'
|
|
|
|
|
|
|
|
import { useRouter } from 'vue-router';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const router = useRouter()
|
|
|
|
const { t } = useI18n()
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
|
|
|
|
|
|
|
const ids = ref<string[]>([])
|
|
|
|
const ids = ref<string[]>([])
|
|
|
@ -115,6 +117,9 @@ const tableColumns = reactive<TableColumn[]>([
|
|
|
|
default: (data: any) => {
|
|
|
|
default: (data: any) => {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<>
|
|
|
|
|
|
|
|
<ElLink type="primary" underline={false} onClick={() => ShowPreViewFile(data.row)}>
|
|
|
|
|
|
|
|
预览
|
|
|
|
|
|
|
|
</ElLink>
|
|
|
|
<ElLink type="primary" underline={false} onClick={() => action(data.row, 'edit')}>
|
|
|
|
<ElLink type="primary" underline={false} onClick={() => action(data.row, 'edit')}>
|
|
|
|
{t('tableDemo.edit')}
|
|
|
|
{t('tableDemo.edit')}
|
|
|
|
</ElLink>
|
|
|
|
</ElLink>
|
|
|
@ -134,6 +139,7 @@ const tableColumns = reactive<TableColumn[]>([
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
onConfirm={() => delData(data.row)}
|
|
|
|
onConfirm={() => delData(data.row)}
|
|
|
|
></ElPopconfirm>
|
|
|
|
></ElPopconfirm>
|
|
|
|
|
|
|
|
|
|
|
|
</>
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -171,7 +177,20 @@ const searchSchema = reactive<FormSchema[]>([
|
|
|
|
component: 'DatePicker'
|
|
|
|
component: 'DatePicker'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
/** 预览 **/
|
|
|
|
|
|
|
|
const ShowPreViewFile = (data)=>{
|
|
|
|
|
|
|
|
const routeData = router.resolve({
|
|
|
|
|
|
|
|
name:'PreViewFile',
|
|
|
|
|
|
|
|
query:{
|
|
|
|
|
|
|
|
fileData:data.fileFlow,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
router.push({name:'PreViewFile',
|
|
|
|
|
|
|
|
query:{
|
|
|
|
|
|
|
|
fileData:data.fileFlow,
|
|
|
|
|
|
|
|
}});
|
|
|
|
|
|
|
|
// window.open(routeData.href,'_blank')
|
|
|
|
|
|
|
|
}
|
|
|
|
const searchParams = ref({})
|
|
|
|
const searchParams = ref({})
|
|
|
|
const setSearchParams = (data: any) => {
|
|
|
|
const setSearchParams = (data: any) => {
|
|
|
|
searchParams.value = data
|
|
|
|
searchParams.value = data
|
|
|
@ -207,7 +226,7 @@ const action = async (row: TableData, type: string) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const AddAction = () => {
|
|
|
|
const AddAction = () => {
|
|
|
|
dialogTitle.value = t('tableDemo.add')
|
|
|
|
dialogTitle.value = "上传模板";
|
|
|
|
currentRow.value = undefined
|
|
|
|
currentRow.value = undefined
|
|
|
|
dialogVisible.value = true
|
|
|
|
dialogVisible.value = true
|
|
|
|
actionType.value = 'add'
|
|
|
|
actionType.value = 'add'
|
|
|
|