详情请求文件接口添加await

This commit is contained in:
zhujiyan
2024-05-14 14:04:53 +08:00
parent 18da96dd8a
commit 1075b33aa6
2 changed files with 21 additions and 9 deletions

View File

@@ -27,7 +27,7 @@
<!-- 上传 -->
<Audit ref='AuditRef' @onSubmit='tableStore.index()' />
<!-- 查看详情 detail 新增/修改 create-->
<addForm ref='addForms' @onSubmit='tableStore.index()' openType='create'></addForm>
<addForm ref='addForms' v-if="show" @onSubmit='show=false;tableStore.index()' openType='create'></addForm>
</template>
<script setup lang='ts'>
import { ref, onMounted, provide, nextTick } from 'vue'
@@ -54,6 +54,7 @@ const istatusList = dictData.getBasicData('On-network_Status')
const addRef = ref()
const AuditRef = ref()
const ruleFormRef = ref()
const show:any=ref(false)
const fileList = ref([])
const tableStore = new TableStore({
url: '/supervision-boot/userReport/getUserReport',
@@ -144,7 +145,12 @@ const addList = () => {
//三个表单
const addForms = ref()
const addFormModel = () => {
addForms.value.open()
show.value=true
setTimeout(() => {
addForms.value.open()
}, 0);
}
// 导出