From 1ca46431ab9faea036ec8b2ae54b20b720f7bad6 Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: Mon, 25 Jul 2022 18:29:48 +0800
Subject: [PATCH] 添加修改页面
---
src/views/specialWorkSystem/approveProcessManagement/approveProcessList/index.vue | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/src/views/specialWorkSystem/approveProcessManagement/approveProcessList/index.vue b/src/views/specialWorkSystem/approveProcessManagement/approveProcessList/index.vue
index f3d5ac6..2bf2079 100644
--- a/src/views/specialWorkSystem/approveProcessManagement/approveProcessList/index.vue
+++ b/src/views/specialWorkSystem/approveProcessManagement/approveProcessList/index.vue
@@ -245,6 +245,7 @@
}
]
)
+
// 时间格式化
const timeForm = {
hour12: false,
@@ -269,10 +270,14 @@
const deleteDialog = ref(false)
const addRecord = ref({})
const details = ref({})
+
+ // 查看记录
const viewRecord = (row) =>{
details.value = JSON.parse(JSON.stringify(row))
dialogDetails.value = true
}
+
+ // 删除记录
const deleteRecord = (index) =>{
chosenIndex.value = index
deleteDialog.value = true
@@ -281,6 +286,15 @@
tableData.splice(chosenIndex.value,1)
deleteDialog.value = false
}
+
+ // 修改记录
+ const editRecord =(index, row)=>{
+ dialogAddRecord.value = true
+ chosenIndex.value = index
+ addRecord.value = JSON.parse(JSON.stringify(row))
+ }
+
+ // 新增修改记录确认
const confirmAddRecord = async (formEl: FormInstance | undefined) =>{
if (!formEl) return
await formEl.validate((valid, fields) => {
@@ -305,11 +319,6 @@
}
const indexClear = ()=>{
chosenIndex.value = -1
- }
- const editRecord =(index, row)=>{
- dialogAddRecord.value = true
- chosenIndex.value = index
- addRecord.value = JSON.parse(JSON.stringify(row))
}
// 折线图
const renderMenu = async (value: string) => {
--
Gitblit v1.9.2