From d066a9659f793dee40ac7fa0bc399ebd30664b4a Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期四, 14 八月 2025 10:01:10 +0800
Subject: [PATCH] 3202加列表按钮跳转功能点
---
pages/modal/5601.vue | 56 ++++++++++++++++++++++++++++++++++++++++----------------
1 files changed, 40 insertions(+), 16 deletions(-)
diff --git a/pages/modal/5601.vue b/pages/modal/5601.vue
index 924be99..ac406c8 100644
--- a/pages/modal/5601.vue
+++ b/pages/modal/5601.vue
@@ -185,7 +185,8 @@
//鑾峰彇涓绘暟鎹被ID
this.ClsID = this.param.master_cls?.id;
if (this.ClsID) {
- this.loadData(options.paramValue)
+ const paramValue = options.paramValue ?JSON.parse(options.paramValue) :undefined
+ this.loadData(paramValue)
} else {
uni.showModal({
title: this.translateSys("error"),
@@ -224,6 +225,7 @@
//鑾峰彇鏁版嵁绫荤殑鑷畾涔夎〃鍗曞弬鏁� await this.Head_UIStyleGetInfo(this.ClsID, this.param.Input_UI_Style.ID);
//浼犲叆鍙傛暟鍊�+ console.log(paramValue)
if (paramValue) {
const attrs = paramValue.attrs || [];
(this.head_styledef?.form?.items || []).forEach(async (ele, index) => {
@@ -522,9 +524,13 @@
} catch (ex) {
// console.log(ex);
+ let exStr = JSON.stringify(ex)
+ if (exStr == "{}")
+ exStr = ex
+ let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
uni.showModal({
title: this.translateSys("error") + "1",
- content: ex.errMsg,
+ content: tip,
showCancel: false,
confirmText: this.translateSys('close')
});
@@ -590,10 +596,14 @@
console.log("Detail_UIstyleGetInfo", detailstyledef);
return detailstyledef
} catch (ex) {
- // console.log(ex);
+ console.log(ex);
+ let exStr = JSON.stringify(ex)
+ if (exStr == "{}")
+ exStr = ex
+ let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
uni.showModal({
title: this.translateSys("error") + "2",
- content: ex.errMsg,
+ content: tip,
showCancel: false,
confirmText: this.translateSys('close')
});
@@ -629,10 +639,14 @@
}
formItem.dict = list;
} catch (ex) {
- // console.log(ex);
+ console.log(ex);
+ let exStr = JSON.stringify(ex)
+ if (exStr == "{}")
+ exStr = ex
+ let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
uni.showModal({
title: this.translateSys("error") + "3",
- content: ex.errMsg,
+ content: tip,
showCancel: false,
confirmText: this.translateSys('close')
});
@@ -853,7 +867,7 @@
};
const result = await runCustomEvent(dataInfo)
console.log(result)
- if (result.ret != 0) {
+ if (result.ret != 0&& result.ret != 1) {
var tip = result.err_info ? typeof result
.err_info == 'string' ? result
.err_info : result.err_info.join('<br/>') :
@@ -938,7 +952,10 @@
} catch (ex) {
console.log(ex)
- var tip = typeof ex == "string" ? ex : ex.message;
+ let exStr = JSON.stringify(ex)
+ if (exStr == "{}")
+ exStr = ex
+ let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
uni.showModal({
title: this.translateSys("error") + "6.1",
content: this.translate(
@@ -1075,7 +1092,7 @@
};
const result = await runCustomEvent(dataInfo)
console.log(result);
- if (result.ret != 0) {
+ if (result.ret != 0&& result.ret != 1) {
var tip = result.err_info ? typeof result
.err_info == 'string' ? result
.err_info : result.err_info.join('<br/>') :
@@ -1264,7 +1281,11 @@
}
} catch (ex) {
- var tip = typeof ex == "string" ? ex : ex.message;
+ console.log(ex);
+ let exStr = JSON.stringify(ex)
+ if (exStr == "{}")
+ exStr = ex
+ let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
uni.showModal({
title: this.translateSys("error") + "4.2",
content: this.translate(
@@ -2132,7 +2153,7 @@
console.log(dataInfo);
// return;
runCustomEvent(dataInfo).then(data => {
- if (data.ret != 0) {
+ if (data.ret != 0&& data.ret != 1) {
var tip = data.err_info ? typeof data.err_info == 'string' ? data
.err_info :
data
@@ -2305,7 +2326,7 @@
console.log(dataInfo);
// return;
runCustomEvent(dataInfo).then(data => {
- if (data.ret != 0) {
+ if (data.ret != 0&& data.ret != 1) {
var tip = data.err_info ? typeof data.err_info == 'string' ? data
.err_info :
data
@@ -2963,7 +2984,7 @@
console.log(dataInfo);
runCustomEvent(dataInfo).then(result => {
console.log(result);
- if (result.ret != 0) {
+ if (result.ret != 0&& result.ret != 1) {
var tip = result.err_info ? typeof result
.err_info == 'string' ? result.err_info :
result.err_info.join('<br/>') : '';
@@ -3200,12 +3221,15 @@
console.log(ex)
return
}
- }if ([0, 2, 3, 4, -1].includes(result.result_type)) {
+ }
}
}).catch(ex => {
console.log(ex);
- let tip = typeof ex.errMsg == "string" ? ex.errMsg : ex
+ let exStr = JSON.stringify(ex)
+ if (exStr == "{}")
+ exStr = ex
+ let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
uni.showModal({
title: this.translateSys("error") + "8.1",
content: this.translate("execute_after_ok_event_failed") +
@@ -3428,7 +3452,7 @@
button {
text-align: left;
- line-height: 1.5;
+ line-height: 1.6;
border: none;
margin-right: 10rpx;
--
Gitblit v1.9.1