|
|
|
@ -23,7 +23,9 @@ import { useValidator } from '@/hooks/web/useValidator'
|
|
|
|
|
import { getOrganTree } from '@/api/common'
|
|
|
|
|
import { getLoginOrganCodeByUserInfo } from '@/utils/auth'
|
|
|
|
|
import { getCategory } from '@/api/reporting/RepTemplate/RepTemplate'
|
|
|
|
|
import { useRouter } from 'vue-router';
|
|
|
|
|
|
|
|
|
|
const router = useRouter()
|
|
|
|
|
const { t } = useI18n();
|
|
|
|
|
const { required } = useValidator();
|
|
|
|
|
// 获取当前用户机构号
|
|
|
|
@ -87,7 +89,7 @@ const tableColumns = reactive<TableColumn[]>([
|
|
|
|
|
<ElLink type="primary" underline={false} onClick={() => action(data.row, 'detail')}>
|
|
|
|
|
{'生成'}
|
|
|
|
|
</ElLink>
|
|
|
|
|
<ElLink type="primary" underline={false} onClick={() => action(data.row, 'detail')}>
|
|
|
|
|
<ElLink type="primary" underline={false} onClick={() => ShowPreViewFile(data.row)}>
|
|
|
|
|
{'预览'}
|
|
|
|
|
</ElLink>
|
|
|
|
|
</>
|
|
|
|
@ -192,6 +194,23 @@ const action = async (row: TableData, type: string) => {
|
|
|
|
|
dialogVisible.value = true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/** 预览 **/
|
|
|
|
|
const ShowPreViewFile = (data)=>{
|
|
|
|
|
console.log(data);
|
|
|
|
|
router.push({
|
|
|
|
|
name:'PreViewFile',
|
|
|
|
|
query:{
|
|
|
|
|
fileData:data.tId,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
// const routeData = router.resolve({
|
|
|
|
|
// name:'PreViewFile',
|
|
|
|
|
// query:{
|
|
|
|
|
// fileData:JSON.stringify(data),
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
// window.open(routeData.href,'_blank')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const AddAction = () => {
|
|
|
|
|
dialogTitle.value = t('tableDemo.add')
|
|
|
|
|