From 81162e054b22d912acef0452841be8185c810ba2 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期四, 27 六月 2024 10:17:41 +0800
Subject: [PATCH] 异常处理

---
 pages/modal/3037.vue |   46 +++++++++++++++++++++++-----------------------
 1 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/pages/modal/3037.vue b/pages/modal/3037.vue
index a4f59fc..89d712d 100644
--- a/pages/modal/3037.vue
+++ b/pages/modal/3037.vue
@@ -644,7 +644,7 @@
 <script>
 	import Base64 from '../../components/js-base64/base64.js'
 	import pickerAddress from '../../js/pickerAddress/pickerAddress.vue'
-	import classUtils from "@/js/utils.js"
+	import utils from "@/js/utils.js"
 	export default {
 		modules: {
 			Base64,
@@ -720,7 +720,7 @@
 						$this.$data.classAttrList = success.result;
 						success.result.forEach(async (group, index) => {
 							group.attr_list.forEach(async (attr, key) => {
-								if (classUtils.attrTypeIsDict(attr.type))
+								if (utils.classUtils.attrTypeIsDict(attr.type))
 								// if (attr.type == "瀛楀吀-瀛楃涓� || attr.type == "瀛楀吀-鏁存暟" ||attr.type == "dict-char" || attr.type == "dict-int")
 								{
 									await $this.DictItemGetList(attr, key, index, 'mast');
@@ -765,7 +765,7 @@
 						$this.$data.subClassAttrList = success.result;
 						success.result.forEach(async (group, index) => {
 							group.attr_list.forEach(async (attr, key) => {
-								if (classUtils.attrTypeIsDict(attr.type)) {
+								if (utils.classUtils.attrTypeIsDict(attr.type)) {
 									//if (attr.type == "瀛楀吀-瀛楃涓� || attr.type == "瀛楀吀-鏁存暟" ||attr.type == "dict-char" || attr.type == "dict-int"){
 									await $this.DictItemGetList(attr, key, index, 'sub');
 								}
@@ -1072,7 +1072,7 @@
 											}
 											//	console.log(ca.dictitem);
 										}
-										if (classUtils.attrTypeIsDate(ca
+										if (utils.classUtils.attrTypeIsDate(ca
 												.Type
 											)) // if(ca.Type=='鏃ユ湡' || ca.Type=='鏃堕棿' ||ca.Type=='date' || ca.Type=='datetime')
 										{
@@ -1085,15 +1085,15 @@
 											ca.Value = date.year + '-' + (date.month >= 10 ? date.month : '0' + date
 												.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day);
 										}
-										if (classUtils.attrTypeIsObjRefMulti(ca
+										if (utils.classUtils.attrTypeIsObjRefMulti(ca
 												.Type)) // if(ca.Type=='寮曠敤瀵硅薄(澶氫釜)' || ca.Type=='obj-ref-multi'){
 										{
 											ca.RelClsList = ca.RelCls;
 											ca.Value = '璇烽�鎷�;
 										}
-										if (classUtils.attrTypeIsRegion(ca.Type)) //if(ca.Type=='鐪佸競鍖�|| ca.Type=='region')
+										if (utils.classUtils.attrTypeIsRegion(ca.Type)) //if(ca.Type=='鐪佸競鍖�|| ca.Type=='region')
 											ca.Value = '璇烽�鎷�;
-										if (classUtils.attrTypeIsBool(ca.Type)) //if(ca.Type=='甯冨皵鍊�|| ca.Type=='bool')
+										if (utils.classUtils.attrTypeIsBool(ca.Type)) //if(ca.Type=='甯冨皵鍊�|| ca.Type=='bool')
 											ca.Value = false;
 
 										attr.push(ca);
@@ -1228,7 +1228,7 @@
 												}
 											}
 										}
-										if (classUtils.attrTypeIsDate(ca.Type)) //if(ca.Type=='鏃ユ湡' || ca.Type=='鏃堕棿')
+										if (utils.classUtils.attrTypeIsDate(ca.Type)) //if(ca.Type=='鏃ユ湡' || ca.Type=='鏃堕棿')
 										{
 											var nowDate = new Date();
 											var date = {
@@ -1239,14 +1239,14 @@
 											ca.Value = date.year + '-' + (date.month >= 10 ? date.month : '0' + date
 												.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day);
 										}
-										if (classUtils.attrTypeIsObjRefMulti(ca.Type)) //if(ca.Type=='寮曠敤瀵硅薄(澶氫釜)')
+										if (utils.classUtils.attrTypeIsObjRefMulti(ca.Type)) //if(ca.Type=='寮曠敤瀵硅薄(澶氫釜)')
 										{
 											ca.RelClsList = ca.RelCls;
 											ca.Value = '璇�;
 										}
-										if (classUtils.attrTypeIsRegion(ca.Type)) //if(ca.Type=='鐪佸競鍖�||ca.Type=='region')
+										if (utils.classUtils.attrTypeIsRegion(ca.Type)) //if(ca.Type=='鐪佸競鍖�||ca.Type=='region')
 											ca.Value = '璇烽�鎷�;
-										if (classUtils.attrTypeIsBool(ca.Type)) //if(ca.Type=='甯冨皵鍊�||ca.Type=='bool')
+										if (utils.classUtils.attrTypeIsBool(ca.Type)) //if(ca.Type=='甯冨皵鍊�||ca.Type=='bool')
 											ca.Value = false;
 
 										attr.push(ca);
@@ -1378,7 +1378,7 @@
 						for (var j = 0; j < attr.length; j++) {
 							var ar = attr[j];
 							if (ar.Value == '璇烽�鎷� || ar.Value == '鈥斺�璇烽�鎷┾�鈥�) ar.Value = '';
-							if (classUtils.attrTypeIsDict(ar
+							if (utils.classUtils.attrTypeIsDict(ar
 									.Type)) //if (ar.Type == '瀛楀吀' || ar.Type == '瀛楀吀-瀛楃涓� || ar.Type == '瀛楀吀-鏁存暟' ) {
 								if (ar.select == true) { //鍒ゆ柇涓嬫媺鏄惁澶氶�
 									var valStr = "";
@@ -1950,7 +1950,7 @@
 								for (var j = 0; j < attr
 									.length; j++) {
 									var ar = attr[j];
-									if (classUtils.attrTypeIsDict(
+									if (utils.classUtils.attrTypeIsDict(
 											ar.Type
 										)) //if(ar.Type=='瀛楀吀' || ar.Type=='瀛楀吀-瀛楃涓� || ar.Type=='瀛楀吀-鏁存暟')
 										req.push({
@@ -2470,7 +2470,7 @@
 						if (ar.Value == '璇烽�鎷� || ar
 							.Value == '鈥斺�璇烽�鎷┾�鈥�) ar.Value =
 							'';
-						if (classUtils.attrTypeIsDict(ar.Type)) {
+						if (utils.classUtils.attrTypeIsDict(ar.Type)) {
 							if (ar.select ==
 								true) { //鍒ゆ柇涓嬫媺鏄惁澶氶�
 								var valStr = "";
@@ -2807,7 +2807,7 @@
 																ca
 																.Name
 															) {
-																if (classUtils.attrTypeIsDict(ca.Type)) {
+																if (utils.classUtils.attrTypeIsDict(ca.Type)) {
 																	var
 																		dictItemList = [];
 																	for (
@@ -3122,7 +3122,7 @@
 															]
 															.attr
 														) {
-															if (classUtils.attrTypeIsDict(attr[j].Type)) {
+															if (utils.classUtils.attrTypeIsDict(attr[j].Type)) {
 																var
 																	dictItemList = [];
 																for (
@@ -4291,7 +4291,7 @@
 															ca
 															.Name
 														) {
-															if (classUtils.attrTypeIsDict(ca.Type)) {
+															if (utils.classUtils.attrTypeIsDict(ca.Type)) {
 																var
 																	dictItemList = [];
 																for (
@@ -4613,7 +4613,7 @@
 																]
 																.attr
 															) {
-																if (classUtils.attrTypeIsDict(attr[j].Type)) {
+																if (utils.classUtils.attrTypeIsDict(attr[j].Type)) {
 																	var
 																		dictItemList = [];
 																	for (
@@ -5293,7 +5293,7 @@
 						if (ar.Value == '璇烽�鎷� || ar
 							.Value == '鈥斺�璇烽�鎷┾�鈥�) ar.Value =
 							'';
-						if (classUtils.attrTypeIsDict(ar.Type)) {
+						if (utils.classUtils.attrTypeIsDict(ar.Type)) {
 							if (ar.select ==
 								true) { //鍒ゆ柇涓嬫媺鏄惁澶氶�
 								var valStr = "";
@@ -5347,7 +5347,7 @@
 							if (ar.Value == '璇烽�鎷� || ar
 								.Value == '鈥斺�璇烽�鎷┾�鈥�) ar
 								.Value = '';
-							if (classUtils.attrTypeIsDict(ar.Type))  {
+							if (utils.classUtils.attrTypeIsDict(ar.Type))  {
 								if (ar.select ==
 									true) { //鍒ゆ柇涓嬫媺鏄惁澶氶�
 									var valStr = "";
@@ -5541,15 +5541,15 @@
 			},
 
 			formatAttr(attr) {
-				if (classUtils.attrTypeIsObjRefMulti(attr.Type)) //if(ar.Type=='寮曠敤瀵硅薄(澶氫釜)')
+				if (utils.classUtils.attrTypeIsObjRefMulti(attr.Type)) //if(ar.Type=='寮曠敤瀵硅薄(澶氫釜)')
 					if (attr.Value == '璇�) ar.Value = '';
-				if (classUtils.attrTypeIsUser(attr.Type) || classUtils.attrTypeIsProject(attr
+				if (utils.classUtils.attrTypeIsUser(attr.Type) || utils.classUtils.attrTypeIsProject(attr
 						.Type)) //if(ar.Type=='寮曠敤浜哄憳' || ar.Type=='寮曠敤椤圭洰')
 					return {
 						attr: attr.Name,
 						value: attr.ValID ? attr.ValID : ''
 					};
-				else if (classUtils.attrTypeIsBool(attr.Type)) //if(ar.Type=='甯冨皵鍊�)
+				else if (utils.classUtils.attrTypeIsBool(attr.Type)) //if(ar.Type=='甯冨皵鍊�)
 					return {
 						attr: attr.Name,
 						value: attr.Value ? '1' : '0'

--
Gitblit v1.9.1