From 3eced4f79a9cf7b211e86b26b8c8ca20ae3f4576 Mon Sep 17 00:00:00 2001
From: xiejun <xiejun@vci-tech.com>
Date: 星期一, 29 一月 2024 09:44:59 +0800
Subject: [PATCH] 获取集团分类根节点前端传null传入后端直接改为空字符串bug修复
---
Source/UBCS-WEB/src/views/code/codeApply.vue | 17 ++++++-----------
1 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/Source/UBCS-WEB/src/views/code/codeApply.vue b/Source/UBCS-WEB/src/views/code/codeApply.vue
index c9df49d..30bf0f2 100644
--- a/Source/UBCS-WEB/src/views/code/codeApply.vue
+++ b/Source/UBCS-WEB/src/views/code/codeApply.vue
@@ -53,7 +53,7 @@
<script>
import {getAuthTree,getUsedTemplateByClassifyOid,getCodeRule,addSaveCode} from '@/api/code/codeApply.js'
-
+import func from '@/util/func';
export default {
name: "codeApply",
components: { FormTemplate: () => import('@/components/FormTemplate/FormTemplate') },
@@ -157,15 +157,6 @@
// 杩涜琛ㄥ崟鏍¢獙
const formValidate = await this.$refs.FormTemplate.validate();
if (!formValidate) return;
- let codeValidate = true;
- // 杩涜鐮佸�肩敵璇锋牎楠�
- // if (this.showCodeApply) {
- // codeValidate = await this.$refs.CodeApply.validate();
- // if (!codeValidate) {
- // this.activeName = "codeApply";
- // return false;
- // }
- // }
let resembleQueryList = [];
if (this.showResembleQuery && this.$refs.resembleQueryRef) {
// 杩涜鐩镐技椤规煡璇�
@@ -226,6 +217,10 @@
resForm.codeRuleOid = this.codeRuleOid;
resForm.templateOid = this.templateOid;
// this.$emit("submit", resForm);
+ if(func.notEmpty(resForm.ts)) {
+ resForm.ts = func.formattedDateTime(resForm.ts);
+ // resForm.ts = resForm.ts.toISOString().replace("Z", "");
+ }
addSaveCode(resForm).then(res => {
this.$nextTick(() => {
this.addvisible = false;
@@ -233,7 +228,7 @@
this.onLoad()
})
})
- console.log(resForm)
+ // console.log(resForm)
},
getDefaultValueAndFormValues(form) {
let defaultValue = {};
--
Gitblit v1.9.3