整理表单代码
This commit is contained in:
@@ -1580,12 +1580,6 @@ const confirmForm = () => {
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (!sensitiveDevices.value) {
|
|
||||||
return ElMessage({
|
|
||||||
message: '请上传主要敏感设备清单',
|
|
||||||
type: 'warning'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if (!antiInterferenceReport.value) {
|
if (!antiInterferenceReport.value) {
|
||||||
return ElMessage({
|
return ElMessage({
|
||||||
message: '请上传抗扰度测试报告',
|
message: '请上传抗扰度测试报告',
|
||||||
|
|||||||
@@ -18,8 +18,7 @@
|
|||||||
<template #operation>
|
<template #operation>
|
||||||
<!-- <el-button icon="el-icon-Plus" type="primary" @click="addList">新增</el-button> -->
|
<!-- <el-button icon="el-icon-Plus" type="primary" @click="addList">新增</el-button> -->
|
||||||
<el-button icon="el-icon-Plus" type="primary" @click="addFormModel">新增</el-button>
|
<el-button icon="el-icon-Plus" type="primary" @click="addFormModel">新增</el-button>
|
||||||
<el-button icon="el-icon-Download" @click="exportEvent" type="primary">导出</el-button>
|
<!-- <el-button icon="el-icon-Download" @click="exportEvent" type="primary">导出</el-button> -->
|
||||||
<el-button icon="el-icon-Plus" type="primary" @click="buildModel">建设</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
<Table ref="tableRef" />
|
<Table ref="tableRef" />
|
||||||
@@ -29,8 +28,6 @@
|
|||||||
<Audit ref="AuditRef" @onSubmit="tableStore.index()" />
|
<Audit ref="AuditRef" @onSubmit="tableStore.index()" />
|
||||||
<!-- 查看详情 detail 新增/修改 create-->
|
<!-- 查看详情 detail 新增/修改 create-->
|
||||||
<addForm ref="addForms" @onSubmit="tableStore.index()" openType="create"></addForm>
|
<addForm ref="addForms" @onSubmit="tableStore.index()" openType="create"></addForm>
|
||||||
<!-- 建设阶段表单 -->
|
|
||||||
<Build ref="buildForms" @onSubmit="tableStore.index()"></Build>
|
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, provide, nextTick } from 'vue'
|
import { ref, onMounted, provide, nextTick } from 'vue'
|
||||||
@@ -43,7 +40,6 @@ import Audit from './audit.vue'
|
|||||||
import addForm from './addForm.vue'
|
import addForm from './addForm.vue'
|
||||||
import { useDictData } from '@/stores/dictData'
|
import { useDictData } from '@/stores/dictData'
|
||||||
import { getLoadTypeUserList } from '@/api/process-boot/interference'
|
import { getLoadTypeUserList } from '@/api/process-boot/interference'
|
||||||
import Build from './build.vue'
|
|
||||||
const dictData = useDictData()
|
const dictData = useDictData()
|
||||||
const { push } = useRouter()
|
const { push } = useRouter()
|
||||||
|
|
||||||
@@ -157,10 +153,6 @@ const addFormModel = () => {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const buildForms = ref()
|
|
||||||
const buildModel = () => {
|
|
||||||
buildForms.value.open()
|
|
||||||
}
|
|
||||||
// 导出
|
// 导出
|
||||||
const exportEvent = () => {
|
const exportEvent = () => {
|
||||||
let form = JSON.parse(JSON.stringify(tableStore.table.params))
|
let form = JSON.parse(JSON.stringify(tableStore.table.params))
|
||||||
|
|||||||
Reference in New Issue
Block a user