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

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(() => {

View File

@@ -560,7 +560,9 @@
<div class="dialog-footer">
<el-button @click="close()">取消</el-button>
<el-button type="primary" @click="confirmForm(true)">保存</el-button>
<el-button type="primary" v-if="props.openType != 'create'" @click="confirmForm(false)">提交审批</el-button>
<el-button type="primary" v-if="props.submissionControl" @click="confirmForm(false)">
提交审批
</el-button>
</div>
</template>
</el-dialog>
@@ -599,6 +601,10 @@ const props = defineProps({
type: String,
default: 'create'
},
submissionControl: {
type: Boolean,
default: true
},
update: {
type: Boolean,
default: false
@@ -1468,7 +1474,7 @@ const confirmForm = (flag: boolean) => {
} else {
confirmFormData.id = resendId.value
if (controFlag.value) confirmFormData.dataType = 1
console.log("🚀 ~ ruleFormRef.value.validate ~ controFlag.value:", controFlag.value)
console.log('🚀 ~ ruleFormRef.value.validate ~ controFlag.value:', controFlag.value)
console.log(123123)
if (props.normalizedControl) {
if (title.value == '编辑') {
@@ -1495,7 +1501,6 @@ const confirmForm = (flag: boolean) => {
})
}
} else {
updateFormData(confirmFormData).then(res => {
ElMessage({
message: '重新发起成功',

View File

@@ -35,7 +35,7 @@
<sensitive-user-popup ref="sensitiveUserPopup" />
<!-- 查看详情 detail 新增/修改 create-->
<addForm ref="addForms" @onSubmit="tableStore.index()" openType="create"></addForm>
<addForm ref="addForms" @onSubmit="tableStore.index()" openType="create" :submissionControl="false"></addForm>
</div>
</template>
<script setup lang="ts">