From be17b7971f263369fd78b1f257f05f6a4c18a6c6 Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: Fri, 15 Jul 2022 09:06:49 +0800
Subject: [PATCH] 添加修改页面
---
src/views/specialWorkSystem/approveProcessManagement/approveLinkSettings/reportTypeSetting/index.vue | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/views/specialWorkSystem/approveProcessManagement/reportTypeSetting/index.vue b/src/views/specialWorkSystem/approveProcessManagement/approveLinkSettings/reportTypeSetting/index.vue
similarity index 92%
rename from src/views/specialWorkSystem/approveProcessManagement/reportTypeSetting/index.vue
rename to src/views/specialWorkSystem/approveProcessManagement/approveLinkSettings/reportTypeSetting/index.vue
index c7b94d6..676466b 100644
--- a/src/views/specialWorkSystem/approveProcessManagement/reportTypeSetting/index.vue
+++ b/src/views/specialWorkSystem/approveProcessManagement/approveLinkSettings/reportTypeSetting/index.vue
@@ -114,6 +114,15 @@
editor: '',
editeTime: ''
})
+ const timeForm = {
+ hour12: false,
+ year: 'numeric',
+ month: '2-digit',
+ day: '2-digit',
+ hour: '2-digit',
+ minute: '2-digit',
+ second: '2-digit'
+ }
const addReport = ()=>{
dialogAddForm.value = true
};
@@ -128,8 +137,8 @@
await formEl.validate((valid, fields) => {
if (valid) {
if(rowIndex.value == -1){
- reportForm.value.createTime = new Date().toLocaleString()
- reportForm.value.editeTime = new Date().toLocaleString()
+ reportForm.value.createTime = new Date().toLocaleString('zh', timeForm).replace(/\//g,'-')
+ reportForm.value.editeTime = new Date().toLocaleString('zh', timeForm).replace(/\//g,'-')
tableData.push(reportForm.value)
}else{
tableData[rowIndex.value] = reportForm.value
@@ -144,7 +153,7 @@
dialogAddForm.value = true
rowIndex.value = index
reportForm.value = JSON.parse(JSON.stringify(row))
- reportForm.value.editeTime = new Date().toLocaleString()
+ reportForm.value.editeTime = new Date().toLocaleString('zh', timeForm).replace(/\//g,'-')
}
const deleteRow = (index)=>{
tableData.splice( index,1)
@@ -172,6 +181,7 @@
reportForm,
ruleFormRef,
addRules,
+ timeForm,
dialogColse,
editeRow,
deleteRow,
--
Gitblit v1.9.2