修改敏感及重要用户台账新增提交审核按钮

This commit is contained in:
GGJ
2024-09-14 10:56:49 +08:00
parent 794646c001
commit 703a84a978
3 changed files with 30 additions and 9 deletions

View File

@@ -19,9 +19,10 @@ import TableHeader from '@/components/table/header/index.vue'
import { libtemplateDel } from '@/api/supervision-boot/database/index'
import { ElMessage } from 'element-plus'
import Table from '@/components/table/index.vue'
import { getFileNameAndFilePath } from '@/api/system-boot/file'
import PopupEdit from './components/form.vue'
defineOptions({
name: 'database/case'
name: 'database/stencil'
})
const popupEditRef = ref()
@@ -48,7 +49,9 @@ const tableStore = new TableStore({
type: 'primary',
icon: 'el-icon-Plus',
render: 'basicButton',
click: row => {}
click: row => {
window.open(window.location.origin + '/#/previewFile?' + row.name)
}
},
{
name: 'edit',
@@ -56,7 +59,9 @@ const tableStore = new TableStore({
type: 'primary',
icon: 'el-icon-Plus',
render: 'basicButton',
click: row => {}
click: row => {
downloadTheReport(row.url)
}
},
{
name: 'edit',
@@ -96,6 +101,17 @@ const tableStore = new TableStore({
const addUser = () => {
popupEditRef.value.open('新增模版')
}
// 下载报告
const downloadTheReport = (url: string) => {
// getFileNameAndFilePath({ filePath: url }).then((res: any) => {
// const link = document.createElement('a')
// link.href = res.data.url
// link.download = res.data.name
// document.body.appendChild(link)
// link.click()
// document.body.removeChild(link)
// })
}
provide('tableStore', tableStore)
onMounted(() => {