From 7482313cc90753e730c275ad133b22da210f84f9 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 21 三月 2025 19:50:36 +0800
Subject: [PATCH] test
---
components/oi-form/list/layout/index.vue | 9
pages/modal/5601.vue | 177 +--
pages/modal/3037_2.vue | 66 -
pages/modal/3037.vue | 2201 ++++++++++++++++++++++++--------------------------
pages/modal/3200.vue | 70 -
pages/modal/form/index.vue | 12
6 files changed, 1,114 insertions(+), 1,421 deletions(-)
diff --git a/components/oi-form/list/layout/index.vue b/components/oi-form/list/layout/index.vue
index 9bedb6c..61fcd5b 100644
--- a/components/oi-form/list/layout/index.vue
+++ b/components/oi-form/list/layout/index.vue
@@ -57,15 +57,6 @@
},
},
- mounted() {
- console.log("mounted layout", this.data.setting.colList)
- },
- beforeUpdate (){
- console.log("beforeUpdate layout",this.data)
- },
- updated(){
- console.log("updated layout",this.data)
- }
};
</script>
diff --git a/pages/modal/3037.vue b/pages/modal/3037.vue
index 60422cc..8355d50 100644
--- a/pages/modal/3037.vue
+++ b/pages/modal/3037.vue
@@ -652,7 +652,7 @@
<script>
import {
Base64
- } from '@/js/Base64.js';
+ } from '@/js/Base64.js';
import pickerAddress from '../../js/pickerAddress/pickerAddress.vue'
import utils from "@/js/utils.js"
import {
@@ -1054,8 +1054,8 @@
.Font : {},
Bk_Color: this.classGridStyle.StyleDef.Bk_Color ? this.classGridStyle
.StyleDef.Bk_Color : '#FFFFFF',
- Text_Color: this.classGridStyle.StyleDef.Text_Color ? this.$data
- .classGridStyle.StyleDef.Text_Color : '#000000'
+ Text_Color: this.classGridStyle.StyleDef.Text_Color ? this.classGridStyle.StyleDef
+ .Text_Color : '#000000'
});
// }
}
@@ -1207,10 +1207,10 @@
title_p_wdith: this.subClassGridStyle.StyleDef.title_p_wdith,
Font: this.subClassGridStyle.StyleDef.Font ? this.subClassGridStyle
.StyleDef.Font : {},
- Bk_Color: this.subClassGridStyle.StyleDef.Bk_Color ? this.$data
- .subClassGridStyle.StyleDef.Bk_Color : '#FFFFFF',
- Text_Color: this.subClassGridStyle.StyleDef.Text_Color ? this.$data
- .subClassGridStyle.StyleDef.Text_Color : '#000000'
+ Bk_Color: this.subClassGridStyle.StyleDef.Bk_Color ? this.subClassGridStyle
+ .StyleDef.Bk_Color : '#FFFFFF',
+ Text_Color: this.subClassGridStyle.StyleDef.Text_Color ? this.subClassGridStyle
+ .StyleDef.Text_Color : '#000000'
});
// }
}
@@ -1841,8 +1841,7 @@
for (var i in this.classAttrList) {
for (var j in this.classAttrList[i]
.Attr) {
- if (delvalue[0].attr == this.$data
- .classAttrList[i].Attr[j].Name) {
+ if (delvalue[0].attr == this.classAttrList[i].Attr[j].Name) {
this.classAttrList[i].Attr[j]
.Value = "";
}
@@ -1855,8 +1854,7 @@
for (var i in this.classAttrList) {
for (var j in this.classAttrList[i]
.Attr) {
- if (item[v].attr == this.$data
- .classAttrList[i].Attr[j].Name) {
+ if (item[v].attr == this.classAttrList[i].Attr[j].Name) {
index = i;
iindex = j;
}
@@ -1876,8 +1874,7 @@
if (eventid) {
// self.event_no_sub = 1;
var req = [];
- var attrlist = this.$data
- .classAttrList;
+ var attrlist = this.classAttrList;
for (var i = 0; i < attrlist
.length; i++) {
var attr = attrlist[i].Attr;
@@ -1942,9 +1939,8 @@
if (eventid) {
// self.event_no_sub = 1;
var req = [];
- var attrlist = this.$data
- .subPanelList[e.target.dataset[
- 'iiindex']].subClassAttr;
+ var attrlist = this.subPanelList[e.target.dataset[
+ 'iiindex']].subClassAttr;
for (var i = 0; i < attrlist
.length; i++) {
var attr = attrlist[i].Attr;
@@ -2093,8 +2089,7 @@
if (eventid) {
// self.event_no_sub = 1;
var req = [];
- var attrlist = this.$data
- .classAttrList; //涓绘暟鎹被灞炴�
+ var attrlist = this.classAttrList; //涓绘暟鎹被灞炴�
for (var i = 0; i < attrlist
.length; i++) {
var attr = attrlist[i].Attr;
@@ -2159,8 +2154,7 @@
if (eventid) {
// self.event_no_sub = 1;
var req = [];
- var attrlist = this.$data
- .classAttrList;
+ var attrlist = this.classAttrList;
for (var i = 0; i < attrlist
.length; i++) {
var attr = attrlist[i].Attr;
@@ -2199,11 +2193,9 @@
},
classAttr_extButton(index, iindex) {
var $this = this;
- var before_click_button = $this.$data
- .classAttrList[index].Attr[iindex]
+ var before_click_button = $this.classAttrList[index].Attr[iindex]
.before_click_button;
- var button_callback = $this.$data
- .classAttrList[index].Attr[iindex]
+ var button_callback = $this.classAttrList[index].Attr[iindex]
.button_callback;
if (!before_click_button) {
uni.showModal({
@@ -2242,23 +2234,19 @@
AddPer(data, param) {
// console.log(param);
console.log(data);
- $this.$data
- .classAttrList[
+ $this.classAttrList[
param.index]
.Attr[param.iindex]
.Value = data[0]
.Name;
- $this.$data
- .classAttrList[
+ $this.classAttrList[
param.index]
.Attr[param.iindex]
.ValID = data[0]
.Login + ';' +
data[0].Name;
- var eventid = $this
- .$data
- .classAttrList[
+ var eventid = $this.classAttrList[
param.index]
.Attr[param.iindex]
.action;
@@ -2276,9 +2264,7 @@
0
]
.Login,
- clsid: $this
- .$data
- .param
+ clsid: $this.param
.Master_Cls
.ID,
objid: "",
@@ -2319,23 +2305,19 @@
AddPer(data, param) {
// console.log(param);
// console.log(data);
- $this.$data
- .classAttrList[
+ $this.classAttrList[
param.index]
.Attr[param.iindex]
.Value = data[0]
.Name;
- $this.$data
- .classAttrList[
+ $this.classAttrList[
param.index]
.Attr[param.iindex]
.ValID = data[0]
.ID + ';' + data[0]
.Name;
- var eventid = $this
- .$data
- .classAttrList[
+ var eventid = $this.classAttrList[
param.index]
.Attr[param.iindex]
.action;
@@ -2353,9 +2335,7 @@
rclsid: "",
robjid: "",
userlogin: "",
- clsid: $this
- .$data
- .param
+ clsid: $this.param
.Master_Cls
.ID,
objid: "",
@@ -2383,12 +2363,10 @@
sava() {
if (this.param
.Before_OK_Event) //鍒ゆ柇鍔熻兘鐐瑰弬鏁版槸鍚︽湁纭畾鍓嶈剼鏈�- this.scan_OKDataObjRunCustomEvent(this
- .$data.param.Before_OK_Event.ID);
+ this.scan_OKDataObjRunCustomEvent(this.param.Before_OK_Event.ID);
else if (this.param
.After_OK_Event) //鍒ゆ柇鍔熻兘鐐瑰弬鏁版槸鍚︽湁纭畾鍚庤剼鏈�- this.scan_OKDataObjRunCustomEvent(this
- .$data.param.After_OK_Event.ID);
+ this.scan_OKDataObjRunCustomEvent(this.param.After_OK_Event.ID);
else
uni.navigateBack({
delta: 1
@@ -2527,13 +2505,10 @@
url: '../modal/3037?param=' +
JSON
.stringify(
- this
- .$data
- .param
+ this.param
) +
"&titlename=" +
- this.$data
- .title
+ this.title
});
// this.class_attr_init();
@@ -2699,26 +2674,20 @@
for (
var a =
0; a <
- this
- .$data
- .classAttrList
+ this.classAttrList
.length; a++
) {
for (
var l =
0; l <
- this
- .$data
- .classAttrList[
+ this.classAttrList[
a
]
.Attr
.length; l++
) {
var ca =
- this
- .$data
- .classAttrList[
+ this.classAttrList[
a
]
.Attr[
@@ -2946,15 +2915,11 @@
for (
var c =
0; c <
- $this
- .$data
- .classAttrList
+ $this.classAttrList
.length; c++
) {
var attr =
- $this
- .$data
- .classAttrList[
+ $this.classAttrList[
c
]
.Attr;
@@ -3012,15 +2977,11 @@
for (
var c =
0; c <
- $this
- .$data
- .classAttrList
+ $this.classAttrList
.length; c++
) {
var attr =
- $this
- .$data
- .classAttrList[
+ $this.classAttrList[
c
]
.Attr;
@@ -3061,14 +3022,73 @@
}
}
}
+ 0;
+ if (!
+ $this.refdatastore
+ .filter(
+ function(
+ s
+ ) {
+ return result[
+ i
+ ]
+ .attr ==
+ s
+ .attr
+ }
+ )
+ .length
+ ) {
+ length
+ =
+ 1;
+ $this
+ .refdatastore
+ .push(
+ result[
+ i
+ ]
+ );
+ }
+ if (length ==
+ 0
+ ) {
+ for (
+ var j =
+ 0; j <
+ $this
+ .refdatastore
+ .length; j++
+ ) {
+ if ($this
+ .refdatastore[
+ j
+ ]
+ .attr ==
+ result[
+ i
+ ]
+ .attr
+ ) {
+ $this
+ .refdatastore[
+ j
+ ]
+ .value =
+ result[
+ i
+ ]
+ .value;
+ }
+ }
+ }
}
} else if (data
.action[i]
.action_type ==
'set_global_attr'
) {
- $this.$data
- .global_attr =
+ $this.global_attr =
data
.action[
i]
@@ -3085,13 +3105,11 @@
.length; i++) {
for (var c =
0; c <
- $this.$data
- .classAttrList
+ $this.classAttrList
.length; c++
) {
var attr =
$this
- .$data
.classAttrList[
c]
.Attr;
@@ -3122,7 +3140,6 @@
var length = 0;
if (!$this
- .$data
.refdatastore
.filter(
function(
@@ -3137,8 +3154,7 @@
})
.length) {
length = 1;
- $this.$data
- .refdatastore
+ $this.refdatastore
.push(
result[
i
@@ -3150,12 +3166,10 @@
for (var j =
0; j <
$this
- .$data
.refdatastore
.length; j++
) {
if ($this
- .$data
.refdatastore[
j
]
@@ -3166,7 +3180,6 @@
.attr
) {
$this
- .$data
.refdatastore[
j
]
@@ -3223,21 +3236,17 @@
}
}
if (this.refdatastore.length > 0) {
- for (var i = 0; i < this.$data
- .refdatastore.length; i++) {
+ for (var i = 0; i < this.refdatastore.length; i++) {
if (!req.filter(function(s) {
- return this.$data
- .refdatastore[i]
+ return this.refdatastore[i]
.attr == s.name
}).length) {
length = 1;
req.push({
- 'attr': this.$data
- .refdatastore[
- i].attr,
- 'value': this.$data
- .refdatastore[
- i].value
+ 'attr': this.refdatastore[
+ i].attr,
+ 'value': this.refdatastore[
+ i].value
});
}
}
@@ -3342,8 +3351,7 @@
) {
// self.class_attr_ele.find('.attr_field[data-field="' + result[i].attr + '"]').val(result[i].value).data('val', result[i].value);
var length = 0;
- if (!this.$data
- .refdatastore
+ if (!this.refdatastore
.filter(
function(
s) {
@@ -3356,21 +3364,18 @@
}).length
) {
length = 1;
- this.$data
- .refdatastore.push(
- result[
- i]
- );
+ this.refdatastore.push(
+ result[
+ i]
+ );
}
if (length == 0) {
for (var j =
0; j < this
- .$data
.refdatastore
.length; j++
) {
if (this
- .$data
.refdatastore[
j]
.attr ==
@@ -3378,8 +3383,7 @@
i]
.attr
) {
- this.$data
- .refdatastore[
+ this.refdatastore[
j
]
.value =
@@ -3432,21 +3436,17 @@
}
}
if (this.refdatastore.length > 0) {
- for (var i = 0; i < this.$data
- .refdatastore.length; i++) {
+ for (var i = 0; i < this.refdatastore.length; i++) {
if (!req.filter(function(s) {
- return this.$data
- .refdatastore[i]
+ return this.refdatastore[i]
.attr == s.name
}).length) {
length = 1;
req.push({
- 'attr': this.$data
- .refdatastore[
- i].attr,
- 'value': this.$data
- .refdatastore[
- i].value
+ 'attr': this.refdatastore[
+ i].attr,
+ 'value': this.refdatastore[
+ i].value
});
}
}
@@ -3637,7 +3637,6 @@
robjid: '',
userlogin: '',
clsid: $this
- .$data
.param
.Master_Cls
.ID,
@@ -3762,7 +3761,6 @@
param
) {
$this
- .$data
.classAttrList[
param
.index
@@ -3777,7 +3775,6 @@
]
.Name;
$this
- .$data
.classAttrList[
param
.index
@@ -3813,7 +3810,6 @@
robjid: "",
userlogin: "",
clsid: $this
- .$data
.param
.Master_Cls
.ID,
@@ -3926,117 +3922,83 @@
console.log(dataInfo);
// return;
runCustomEvent(dataInfo).then(data => {
- console.log(data);
- if (data.ret != 0) {
- var tip = data
- .err_info ?
- typeof data
- .err_info ==
- 'string' ? data
- .err_info : data
- .err_info.join(
- '<br/>') : '';
- if (data.ret == 801)
- uni.showModal({
+ console.log(data);
+ if (data.ret != 0) {
+ var tip = data
+ .err_info ?
+ typeof data
+ .err_info ==
+ 'string' ? data
+ .err_info : data
+ .err_info.join(
+ '<br/>') : '';
+ if (data.ret == 801)
+ uni.showModal({
+ title: this.translateSys('tip'),
+ content: tip,
+ showCancel: false,
+ confirmText: this.translateSys('close')
+ });
+ else uni.showModal({
title: this.translateSys('tip'),
- content: tip,
+ content: tip +
+ ',鎻愮ず:' +
+ data
+ .ret,
showCancel: false,
confirmText: this.translateSys('close')
});
- else uni.showModal({
- title: this.translateSys('tip'),
- content: tip +
- ',鎻愮ず:' +
- data
- .ret,
- showCancel: false,
- confirmText: this.translateSys('close')
- });
- return false
- } else {
- var tip = data.info ?
- typeof data.info ==
- 'string' ? data
- .info : data.info
- .join('<br/>') :
- '';
- if (tip) uni
- .showModal({
- title: this.translateSys('tip'),
- content: tip,
- showCancel: false,
- confirmText: this.translateSys('close')
- });
+ return false
+ } else {
+ var tip = data.info ?
+ typeof data.info ==
+ 'string' ? data
+ .info : data.info
+ .join('<br/>') :
+ '';
+ if (tip) uni
+ .showModal({
+ title: this.translateSys('tip'),
+ content: tip,
+ showCancel: false,
+ confirmText: this.translateSys('close')
+ });
- var actionlist = data
- .action;
- if (actionlist) {
- for (var j = 0; j <
- actionlist
- .length; j++) {
- var action =
- actionlist[
- j]
- var action_type =
- action
- .action_type;
- var value =
- action
- .value;
- if (action_type ==
- 'set_dlg_attr'
- ) {
- if (value) {
- var val = value;
- if (typeof value == 'string') {
- val = JSON.parse(value);
- }
- console.log(val);
- for (var i = 0; i < val.length; i++) {
- for (var a = 0; a < this.$data.subClassAttrList.length; a++) {
- for (
- var l =
- 0; l <
- this
- .$data
- .subClassAttrList[
- a
- ]
- .Attr
- .length; l++
- ) {
- var ca =
- this
- .$data
- .subClassAttrList[
- a
- ]
- .Attr[
- l
- ];
- if (val[
- i]
- .attr ==
- ca
- .Name
- ) {
- if (utils.classUtils.attrTypeIsDict(ca.Type)) {
- var
- dictItemList = [];
- for (
- var d in
- val[
- i]
- .choice_list
- ) {
- var val =
- val[
- i]
- .choice_list[
- d
- ];
- dictItemList
- .push({
+ var actionlist = data
+ .action;
+ if (actionlist) {
+ for (var j = 0; j <
+ actionlist
+ .length; j++) {
+ var action =
+ actionlist[
+ j]
+ var action_type =
+ action
+ .action_type;
+ var value =
+ action
+ .value;
+ if (action_type ==
+ 'set_dlg_attr'
+ ) {
+ if (value) {
+ var val = value;
+ if (typeof value == 'string') {
+ val = JSON.parse(value);
+ }
+ console.log(val);
+
+ for (var i = 0; i < val.length; i++) {
+ for (var a = 0; a < this.subClassAttrList.length; a++) {
+ for (var l = 0; l < this.subClassAttrList[a].Attr.length; l++) {
+ var ca = this.subClassAttrList[a].Attr[l];
+ if (val[i].attr == .Name) {
+ if (utils.classUtils.attrTypeIsDict(ca.Type)) {
+ var dictItemList = [];
+ for (var d in val[i].choice_list) {
+ var val = val[i].choice_list[d];
+ dictItemList.push({
"CN_S_NAME": val,
"CN_S_VALUE": val,
"Name": val,
@@ -4044,17 +4006,14 @@
"value": val
});
+ }
+ ca.dictitem = dictItemList;
}
- ca.dictitem =
- dictItemList;
- // attr[j].dictitem = val[i].choice_list;
- } else {
- // ca.value = val[i].value;
+
}
}
}
}
-
}
}
}
@@ -4073,263 +4032,168 @@
}
}).catch(ex => {
- // console.log(ex);
- uni.showModal({
- title: this.translateSys('error') + " 6.1",
- content: ex.errMsg,
- showCancel: false,
- confirmText: this.translateSys('close')
- });
+ // console.log(ex);
+ uni.showModal({
+ title: this.translateSys('error') + " 6.1",
+ content: ex.errMsg,
+ showCancel: false,
+ confirmText: this.translateSys('close')
});
- },
- scan_DataObjRunCustomEvent(info, data_attr) {
- var $this = this;
- var obj_attr = {};
- info.attr.forEach(item => {
- obj_attr[item.attr] = item
- .value;
- });
- var enviroment = {};
- if (info.enviroment) {
- enviroment = info.enviroment;
- } else {
- enviroment = {
- 'function': '3000', // 鍔熻兘鐐圭紪鍙�- cls_id: 'MBOX', //this.param.Sub_Cls.ID, // 鍔熻兘鐐逛粠鏁版嵁绫绘爣璇�- 'button': 'top', // top/bottom
- button_name: '鏂板',
- edit_dlg: {
- type: 'small', //灏忕獥鍙�- class_id: 'MBOX', //this.param.Sub_Cls.ID,//褰撳墠鏁版嵁绫籭d
- },
- master: {
- cls_id: info
- .clsid, // button=bottom鏃�master鐨刢ls_id
- //obj_id: '' // button=bottom鏃�master鐨刼bj_id
- obj_attrs: obj_attr,
- }
- };
-
- }
- var global_attr = this.global_attr;
- if (info.global_attr) {
- global_attr = info.global_attr;
- }
-
- enviroment = Base64.encode(JSON.stringify(
- enviroment)); //灏嗗瓧绗︿覆杞崲涓篵ase64缂栫爜
- var inputParamter = info.inputParamter;
- if (info.inputParamter) {
- info.inputParamter = Base64.encode(JSON
- .stringify(info.inputParamter)
- ); //灏嗗瓧绗︿覆杞崲涓篵ase64缂栫爜
- }
- var global_attr = Base64.encode(JSON
- .stringify(this.global_attr)
- ); //灏嗗瓧绗︿覆杞崲涓篵ase64缂栫爜
-
- if (!info.eventid.includes('{')) info
- .eventid = '{' + info.eventid + '}';
- var dataInfo = {
- ed_type: info.edtype,
- start_transaction: '',
- class_id: info.clsid,
- class_name: '',
- event_id: info.eventid,
- event_name: '',
- data_obj_id: info.objid,
- obj_attr: obj_attr,
- prj_id: info.projectid.replace('{',
- '').replace('}', ''),
- ref_cls_id: info.rclsid,
- rel_obj_id: info.robjid,
- user_login: info.userlogin,
- data_json: '',
- compose_info: '',
- ext_info: enviroment,
- global_attr: global_attr,
- input_param: info.inputParamter,
+ });
+ },
+ scan_DataObjRunCustomEvent(info, data_attr) {
+ var $this = this;
+ var obj_attr = {};
+ info.attr.forEach(item => {
+ obj_attr[item.attr] = item
+ .value;
+ });
+ var enviroment = {};
+ if (info.enviroment) {
+ enviroment = info.enviroment;
+ } else {
+ enviroment = {
+ 'function': '3000', // 鍔熻兘鐐圭紪鍙�+ cls_id: 'MBOX', //this.param.Sub_Cls.ID, // 鍔熻兘鐐逛粠鏁版嵁绫绘爣璇�+ 'button': 'top', // top/bottom
+ button_name: '鏂板',
+ edit_dlg: {
+ type: 'small', //灏忕獥鍙�+ class_id: 'MBOX', //this.param.Sub_Cls.ID,//褰撳墠鏁版嵁绫籭d
+ },
+ master: {
+ cls_id: info
+ .clsid, // button=bottom鏃�master鐨刢ls_id
+ //obj_id: '' // button=bottom鏃�master鐨刼bj_id
+ obj_attrs: obj_attr,
+ }
};
- console.log(dataInfo);
- // return;
- runCustomEvent(dataInfo).then(data => {
- console.log(data);
- if (data.ret != 0) {
- var tip = data
- .err_info ?
- typeof data
- .err_info ==
- 'string' ? data
- .err_info : data
- .err_info.join(
- '<br/>') : '';
- if (data.ret == 801)
- uni.showModal({
- title: this.translateSys('tip'),
- content: tip,
- showCancel: false,
- confirmText: this.translateSys('close')
- });
- else uni.showModal({
+
+ }
+ var global_attr = this.global_attr;
+ if (info.global_attr) {
+ global_attr = info.global_attr;
+ }
+
+ enviroment = Base64.encode(JSON.stringify(
+ enviroment)); //灏嗗瓧绗︿覆杞崲涓篵ase64缂栫爜
+ var inputParamter = info.inputParamter;
+ if (info.inputParamter) {
+ info.inputParamter = Base64.encode(JSON
+ .stringify(info.inputParamter)
+ ); //灏嗗瓧绗︿覆杞崲涓篵ase64缂栫爜
+ }
+ var global_attr = Base64.encode(JSON
+ .stringify(this.global_attr)
+ ); //灏嗗瓧绗︿覆杞崲涓篵ase64缂栫爜
+
+ if (!info.eventid.includes('{')) info
+ .eventid = '{' + info.eventid + '}';
+ var dataInfo = {
+ ed_type: info.edtype,
+ start_transaction: '',
+ class_id: info.clsid,
+ class_name: '',
+ event_id: info.eventid,
+ event_name: '',
+ data_obj_id: info.objid,
+ obj_attr: obj_attr,
+ prj_id: info.projectid.replace('{',
+ '').replace('}', ''),
+ ref_cls_id: info.rclsid,
+ rel_obj_id: info.robjid,
+ user_login: info.userlogin,
+ data_json: '',
+ compose_info: '',
+ ext_info: enviroment,
+ global_attr: global_attr,
+ input_param: info.inputParamter,
+ };
+ console.log(dataInfo);
+ // return;
+ runCustomEvent(dataInfo).then(data => {
+ console.log(data);
+ if (data.ret != 0) {
+ var tip = data
+ .err_info ?
+ typeof data
+ .err_info ==
+ 'string' ? data
+ .err_info : data
+ .err_info.join(
+ '<br/>') : '';
+ if (data.ret == 801)
+ uni.showModal({
title: this.translateSys('tip'),
- content: tip +
- ',鎻愮ず:' +
- data
- .ret,
+ content: tip,
showCancel: false,
confirmText: this.translateSys('close')
});
- return false
- } else {
- var tip = data.info ?
- typeof data.info ==
- 'string' ? data
- .info : data.info
- .join('<br/>') :
- '';
- if (tip) uni
- .showModal({
- title: this.translateSys('tip'),
- content: tip,
- showCancel: false,
- confirmText: this.translateSys('close')
- });
+ else uni.showModal({
+ title: this.translateSys('tip'),
+ content: tip +
+ ',鎻愮ず:' +
+ data
+ .ret,
+ showCancel: false,
+ confirmText: this.translateSys('close')
+ });
+ return false
+ } else {
+ var tip = data.info ?
+ typeof data.info ==
+ 'string' ? data
+ .info : data.info
+ .join('<br/>') :
+ '';
+ if (tip) uni
+ .showModal({
+ title: this.translateSys('tip'),
+ content: tip,
+ showCancel: false,
+ confirmText: this.translateSys('close')
+ });
- var actionlist = data
- .action;
- if (actionlist) {
- console.log(
- actionlist);
- for (var ii =
- 0; ii <
- actionlist
- .length; ii++
+ var actionlist = data
+ .action;
+ if (actionlist) {
+ console.log(
+ actionlist);
+ for (var ii =
+ 0; ii <
+ actionlist
+ .length; ii++
+ ) {
+ var action =
+ actionlist[
+ ii];
+ if (action
+ .action_type ==
+ 'set_dlg_attr'
) {
- var action =
- actionlist[
- ii];
- if (action
- .action_type ==
- 'set_dlg_attr'
+ var result =
+ action
+ .value;
+ for (var i =
+ 0; i <
+ result
+ .length; i++
) {
- var result =
- action
- .value;
- for (var i =
- 0; i <
- result
- .length; i++
+ if (result[
+ i
+ ]
+ .choice_list
) {
- if (result[
- i
- ]
- .choice_list
- ) {
- for (
- var s =
- 0; s <
- $this
- .$data
- .subPanelList
- .length; s++
- ) {
- for (
- var c =
- 0; c <
- $this
- .$data
- .subPanelList[
- s
- ]
- .subClassAttrList
- .length; c++
- ) {
- var attr =
- $this
- .$data
- .subPanelList[
- s
- ]
- .subClassAttrList[
- c
- ]
- .Attr;
- for (
- var j =
- 0; j <
- attr
- .length; j++
- ) {
- if (attr[
- j
- ]
- .Name ==
- result[
- i
- ]
- .attr
- ) {
- if (utils.classUtils.attrTypeIsDict(attr[j]
- .Type)) {
- var
- dictItemList = [];
- for (
- var d in
- result[
- i
- ]
- .choice_list
- ) {
- var val =
- result[
- i
- ]
- .choice_list[
- d
- ];
- dictItemList
- .push({
- "CN_S_NAME": val,
- "CN_S_VALUE": val,
- "Name": val,
- "label": val,
- "value": val
- });
- }
- attr[
- j]
- .dictitem =
- dictItemList;
- // attr[j].dictitem = result[i].choice_list;
- }
- }
- }
- }
- }
- }
for (
var s =
0; s <
- $this
- .$data
- .subPanelList
+ $this.subPanelList
.length; s++
) {
- for (
- var c =
- 0; c <
- $this
- .$data
- .subPanelList[
- s
- ]
- .subClassAttrList
- .length; c++
- ) {
+ for (var c = 0; c < $this.subPanelList[s].subClassAttrList
+ .length; c++) {
var attr =
- $this
- .$data
- .subPanelList[
+ $this.subPanelList[
s
]
.subClassAttrList[
@@ -4342,18 +4206,6 @@
attr
.length; j++
) {
- console
- .log(
- attr[
- j
- ]
- .Name +
- '==' +
- result[
- i
- ]
- .attr
- );
if (attr[
j
]
@@ -4363,399 +4215,67 @@
]
.attr
) {
- attr[
- j]
- .Value =
- result[
- i
- ]
- .value;
- }
- }
- }
- }
- }
- } else if (
- action
- .action_type ==
- 'set_global_attr'
- ) {
- $this
- .$actiontr =
- action
- .value || [];
- } else if (
- action
- .action_type ==
- 'open_common_dlg'
- ) { //鎵撳紑渚ф粦寮规
- var $this =
- this;
- if (action
- .value
- .common_dlg_id ==
- 'check_list'
- ) {
- $this
- .$data
- .check_list =
- action
- .value
- .config;
- if (action
- .value
- .config
- .appear_style ==
- 'sideslip'
- ) //鍒ゆ柇鏄惁鏄晶婊�- $this
- .$data
- .popupType =
- 'right';
- else
- $this
- .$data
- .popupType =
- 'center'
- // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦�uni-popup 缁勪欢涓婄粦瀹�type灞炴�
- $this
- .$refs
- .popup
- .open(
- $this
- .$data
- .popupType
- );
- }
- } else if (
- action
- .action_type ==
- 'add_subcls_panel'
- ) { //涓讳粠鏁版嵁绫绘壂鐮佹煡璇㈡暟鎹�- var result =
- action
- .value;
- var $this =
- this;
- var list_1 =
- JSON
- .parse(
- JSON
- .stringify(
- this
- .$data
- .subClassAttrList
- )
- );
- var scanCodeVal =
- $this
- .$data
- .scanCodeVal;
- var rand =
- '';
- for (var i =
- 0; i <
- 5; i++
- ) { //鐢熸垚5浣嶉殢鏈烘暟
- rand +=
- Math
- .floor(
- Math
- .random() *
- 10
- );
- }
- if (inputParamter[
- 0]
- .attr
- ) {
- if (inputParamter[
- 0
- ]
- .attr ==
- "mast_input_3037"
- ) //鍒ゆ柇鏄富鏁版嵁绫绘壂鐮佹煡璇㈡暟鎹�- scanCodeVal =
- "mast_input_3037-" +
- rand;
- }
- if (info
- .attr[
- 0]
- .attr
- ) {
- if (info
- .attr[
- 0
- ]
- .attr ==
- "mast_input_3037"
- ) //鍒ゆ柇鏄富鏁版嵁绫绘壂鐮佹煡璇㈡暟鎹�- scanCodeVal =
- "mast_input_3037-" +
- rand;
- }
- $this.$data
- .subPanelList
- .push({
- scanCodeVal: scanCodeVal,
- subClassAttr: list_1
- });
- for (var i =
- 0; i <
- result
- .length; i++
- ) {
- for (
- var s =
- 0; s <
- $this
- .$data
- .subPanelList
- .length; s++
- ) {
- if ($this
- .$data
- .subPanelList[
- s
- ]
- .scanCodeVal ==
- scanCodeVal
- ) {
- if (result[
- i
- ]
- .attr ==
- "S_ID"
- )
- $this
- .$data
- .subPanelList[
- s
- ]
- .ObjID =
- result[
- i
- ]
- .value;
- var _subClassAttr =
- $this
- .$data
- .subPanelList[
- s
- ]
- .subClassAttr;
- for (
- var c =
- 0; c <
- _subClassAttr
- .length; c++
- ) {
- var attr =
- _subClassAttr[
- c
- ]
- .Attr;
- for (
- var j =
- 0; j <
- attr
- .length; j++
- ) {
- // console.log(attr[j].Name+'=='+result[i].attr);
- if (attr[
- j
- ]
- .Name ==
- result[
- i
- ]
- .attr
- ) {
+ if (utils.classUtils.attrTypeIsDict(attr[j]
+ .Type)) {
+ var
+ dictItemList = [];
+ for (
+ var d in
+ result[
+ i
+ ]
+ .choice_list
+ ) {
+ var val =
+ result[
+ i
+ ]
+ .choice_list[
+ d
+ ];
+ dictItemList
+ .push({
+ "CN_S_NAME": val,
+ "CN_S_VALUE": val,
+ "Name": val,
+ "label": val,
+ "value": val
+ });
+ }
attr[
j]
- .Value =
- result[
- i
- ]
- .value;
+ .dictitem =
+ dictItemList;
+ // attr[j].dictitem = result[i].choice_list;
}
}
}
-
- // $this.subPanelList[s].subClassAttr=list_1;
- }
- }
-
- var length =
- 0;
- if (!
- $this
- .$data
- .refdatastore
- .filter(
- function(
- s
- ) {
- return result[
- i
- ]
- .attr ==
- s
- .attr
- }
- )
- .length
- ) {
- length
- =
- 1;
- $this
- .$data
- .refdatastore
- .push(
- result[
- i
- ]
- );
- }
- if (length ==
- 0
- ) {
- for (
- var j =
- 0; j <
- $this
- .$data
- .refdatastore
- .length; j++
- ) {
- if ($this
- .$data
- .refdatastore[
- j
- ]
- .attr ==
- result[
- i
- ]
- .attr
- ) {
- $this
- .$data
- .refdatastore[
- j
- ]
- .value =
- result[
- i
- ]
- .value;
- }
}
}
}
- }
- }
- }
-
- if (data.result) {
- var list_1 = JSON
- .parse(JSON
- .stringify(
- this
- .$data
- .subClassAttrList
- ));
- var scanCodeVal =
- $this.$data
- .scanCodeVal;
- var rand = '';
- for (var i = 0; i <
- 5; i++
- ) { //鐢熸垚5浣嶉殢鏈烘暟
- rand += Math
- .floor(Math
- .random() *
- 10);
- }
- if (inputParamter[
- 0].attr) {
- if (inputParamter[
- 0]
- .attr ==
- "mast_input_3037"
- ) //鍒ゆ柇鏄富鏁版嵁绫绘壂鐮佹煡璇㈡暟鎹�- scanCodeVal =
- "mast_input_3037-" +
- rand;
- }
- if (info.attr[0]
- .attr) {
- if (info.attr[
- 0]
- .attr ==
- "mast_input_3037"
- ) //鍒ゆ柇鏄富鏁版嵁绫绘壂鐮佹煡璇㈡暟鎹�- scanCodeVal =
- "mast_input_3037-" +
- rand;
- }
- $this.$data
- .subPanelList
- .push({
- scanCodeVal: scanCodeVal,
- subClassAttr: list_1
- });
- var result = data
- .result;
- for (var i = 0; i <
- result
- .length; i++) {
- for (var s =
- 0; s <
- $this.$data
- .subPanelList
- .length; s++
- ) {
- if ($this
- .$data
- .subPanelList[
- s]
- .scanCodeVal ==
- scanCodeVal
+ for (
+ var s =
+ 0; s <
+ $this
+ .subPanelList
+ .length; s++
) {
- if (result[
- i
- ]
- .attr ==
- "S_ID"
- )
- $this
- .$data
- .subPanelList[
- s
- ]
- .ObjID =
- result[
- i
- ]
- .value;
- var _subClassAttr =
- $this
- .$data
- .subPanelList[
- s
- ]
- .subClassAttr;
for (
var c =
0; c <
- _subClassAttr
+ $this
+ .subPanelList[
+ s
+ ]
+ .subClassAttrList
.length; c++
) {
var attr =
- _subClassAttr[
+ $this
+ .subPanelList[
+ s
+ ]
+ .subClassAttrList[
c
]
.Attr;
@@ -4765,7 +4285,18 @@
attr
.length; j++
) {
- // console.log(attr[j].Name+'=='+result[i].attr);
+ console
+ .log(
+ attr[
+ j
+ ]
+ .Name +
+ '==' +
+ result[
+ i
+ ]
+ .attr
+ );
if (attr[
j
]
@@ -4787,62 +4318,254 @@
}
}
}
-
- var length = 0;
- if (!$this
- .$data
- .refdatastore
- .filter(
- function(
- s
+ } else if (
+ action
+ .action_type ==
+ 'set_global_attr'
+ ) {
+ $this
+ .$actiontr =
+ action
+ .value || [];
+ } else if (
+ action
+ .action_type ==
+ 'open_common_dlg'
+ ) { //鎵撳紑渚ф粦寮规
+ var $this =
+ this;
+ if (action
+ .value
+ .common_dlg_id ==
+ 'check_list'
+ ) {
+ $this.check_list =
+ action
+ .value
+ .config;
+ if (action
+ .value
+ .config
+ .appear_style ==
+ 'sideslip'
+ ) //鍒ゆ柇鏄惁鏄晶婊�+ $this
+ .popupType =
+ 'right';
+ else
+ $this.popupType =
+ 'center'
+ // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦�uni-popup 缁勪欢涓婄粦瀹�type灞炴�
+ $this
+ .$refs
+ .popup
+ .open(
+ $this
+ .popupType
+ );
+ }
+ } else if (
+ action
+ .action_type ==
+ 'add_subcls_panel'
+ ) { //涓讳粠鏁版嵁绫绘壂鐮佹煡璇㈡暟鎹�+ var result =
+ action
+ .value;
+ var $this =
+ this;
+ var list_1 =
+ JSON
+ .parse(
+ JSON
+ .stringify(
+ this.subClassAttrList
+ )
+ );
+ var scanCodeVal =
+ $this.scanCodeVal;
+ var rand =
+ '';
+ for (var i =
+ 0; i <
+ 5; i++
+ ) { //鐢熸垚5浣嶉殢鏈烘暟
+ rand +=
+ Math
+ .floor(
+ Math
+ .random() *
+ 10
+ );
+ }
+ if (inputParamter[
+ 0]
+ .attr
+ ) {
+ if (inputParamter[
+ 0
+ ]
+ .attr ==
+ "mast_input_3037"
+ ) //鍒ゆ柇鏄富鏁版嵁绫绘壂鐮佹煡璇㈡暟鎹�+ scanCodeVal =
+ "mast_input_3037-" +
+ rand;
+ }
+ if (info
+ .attr[
+ 0]
+ .attr
+ ) {
+ if (info
+ .attr[
+ 0
+ ]
+ .attr ==
+ "mast_input_3037"
+ ) //鍒ゆ柇鏄富鏁版嵁绫绘壂鐮佹煡璇㈡暟鎹�+ scanCodeVal =
+ "mast_input_3037-" +
+ rand;
+ }
+ $this.subPanelList
+ .push({
+ scanCodeVal: scanCodeVal,
+ subClassAttr: list_1
+ });
+ for (var i =
+ 0; i <
+ result
+ .length; i++
+ ) {
+ for (
+ var s =
+ 0; s <
+ $this.subPanelList
+ .length; s++
+ ) {
+ if ($this.subPanelList[
+ s
+ ]
+ .scanCodeVal ==
+ scanCodeVal
) {
- return result[
+ if (result[
i
]
.attr ==
- s
- .attr
- })
- .length) {
- length = 1;
- $this.$data
- .refdatastore
- .push(
- result[
- i
- ]
- );
- }
- if (length ==
- 0) {
- for (var j =
- 0; j <
- $this
- .$data
- .refdatastore
- .length; j++
- ) {
- if ($this
- .$data
- .refdatastore[
- j
- ]
- .attr ==
- result[
- i
- ]
- .attr
- ) {
- $this
- .$data
- .refdatastore[
- j
+ "S_ID"
+ )
+ $this.subPanelList[
+ s
]
- .value =
+ .ObjID =
result[
i
]
.value;
+ var _subClassAttr =
+ $this.subPanelList[
+ s
+ ]
+ .subClassAttr;
+ for (
+ var c =
+ 0; c <
+ _subClassAttr
+ .length; c++
+ ) {
+ var attr =
+ _subClassAttr[
+ c
+ ]
+ .Attr;
+ for (
+ var j =
+ 0; j <
+ attr
+ .length; j++
+ ) {
+ // console.log(attr[j].Name+'=='+result[i].attr);
+ if (attr[
+ j
+ ]
+ .Name ==
+ result[
+ i
+ ]
+ .attr
+ ) {
+ attr[
+ j]
+ .Value =
+ result[
+ i
+ ]
+ .value;
+ }
+ }
+ }
+
+ // $this.subPanelList[s].subClassAttr=list_1;
+ }
+ }
+
+ var length =
+ 0;
+ if (!
+ $this.refdatastore
+ .filter(
+ function(
+ s
+ ) {
+ return result[
+ i
+ ]
+ .attr ==
+ s
+ .attr
+ }
+ )
+ .length
+ ) {
+ length
+ =
+ 1;
+ $this.refdatastore
+ .push(
+ result[
+ i
+ ]
+ );
+ }
+ if (length ==
+ 0
+ ) {
+ for (
+ var j =
+ 0; j <
+ $this.refdatastore
+ .length; j++
+ ) {
+ if ($this.refdatastore[
+ j
+ ]
+ .attr ==
+ result[
+ i
+ ]
+ .attr
+ ) {
+ $this.refdatastore[
+ j
+ ]
+ .value =
+ result[
+ i
+ ]
+ .value;
+ }
}
}
}
@@ -4850,51 +4573,281 @@
}
}
- }).catch(ex => {
- // console.log(ex);
- uni.showModal({
- title: this.translateSys('error') + " 7.1",
- content: ex.errMsg,
- showCancel: false,
- confirmText: this.translateSys('close')
- });
+ if (data.result) {
+ var list_1 = JSON
+ .parse(JSON
+ .stringify(
+ this.subClassAttrList
+ ));
+ var scanCodeVal =
+ $this.scanCodeVal;
+ var rand = '';
+ for (var i = 0; i <
+ 5; i++
+ ) { //鐢熸垚5浣嶉殢鏈烘暟
+ rand += Math
+ .floor(Math
+ .random() *
+ 10);
+ }
+ if (inputParamter[
+ 0].attr) {
+ if (inputParamter[
+ 0]
+ .attr ==
+ "mast_input_3037"
+ ) //鍒ゆ柇鏄富鏁版嵁绫绘壂鐮佹煡璇㈡暟鎹�+ scanCodeVal =
+ "mast_input_3037-" +
+ rand;
+ }
+ if (info.attr[0]
+ .attr) {
+ if (info.attr[
+ 0]
+ .attr ==
+ "mast_input_3037"
+ ) //鍒ゆ柇鏄富鏁版嵁绫绘壂鐮佹煡璇㈡暟鎹�+ scanCodeVal =
+ "mast_input_3037-" +
+ rand;
+ }
+ $this.subPanelList
+ .push({
+ scanCodeVal: scanCodeVal,
+ subClassAttr: list_1
+ });
+ var result = data
+ .result;
+ for (var i = 0; i <
+ result
+ .length; i++) {
+ for (var s =
+ 0; s <
+ $this.subPanelList
+ .length; s++
+ ) {
+ if ($this.subPanelList[
+ s]
+ .scanCodeVal ==
+ scanCodeVal
+ ) {
+ if (result[
+ i
+ ]
+ .attr ==
+ "S_ID"
+ )
+ $this.subPanelList[
+ s
+ ]
+ .ObjID =
+ result[
+ i
+ ]
+ .value;
+ var _subClassAttr =
+ $this.subPanelList[
+ s
+ ]
+ .subClassAttr;
+ for (
+ var c =
+ 0; c <
+ _subClassAttr
+ .length; c++
+ ) {
+ var attr =
+ _subClassAttr[
+ c
+ ]
+ .Attr;
+ for (
+ var j =
+ 0; j <
+ attr
+ .length; j++
+ ) {
+ // console.log(attr[j].Name+'=='+result[i].attr);
+ if (attr[
+ j
+ ]
+ .Name ==
+ result[
+ i
+ ]
+ .attr
+ ) {
+ attr[
+ j]
+ .Value =
+ result[
+ i
+ ]
+ .value;
+ }
+ }
+ }
+ }
+ }
+
+ var length = 0;
+ if (!$this.refdatastore
+ .filter(
+ function(
+ s
+ ) {
+ return result[
+ i
+ ]
+ .attr ==
+ s
+ .attr
+ })
+ .length) {
+ length = 1;
+ $this.refdatastore
+ .push(
+ result[
+ i
+ ]
+ );
+ }
+ if (length ==
+ 0) {
+ for (var j =
+ 0; j <
+ $this
+ .refdatastore
+ .length; j++
+ ) {
+ if ($this
+ .refdatastore[
+ j
+ ]
+ .attr ==
+ result[
+ i
+ ]
+ .attr
+ ) {
+ $this
+ .refdatastore[
+ j
+ ]
+ .value =
+ result[
+ i
+ ]
+ .value;
+ }
+ }
+ }
+ }
+ }
+ }
+
+ }).catch(ex => {
+ // console.log(ex);
+ uni.showModal({
+ title: this.translateSys('error') + " 7.1",
+ content: ex.errMsg,
+ showCancel: false,
+ confirmText: this.translateSys('close')
});
- },
- scan_OKDataObjRunCustomEvent(eventID) {
- uni.showLoading({
- title: "鍔犺浇涓�..",
- mask: true
- });
- var $this = this;
- var req = [];
- var attrlist = $this.classAttrList;
- for (var i = 0; i < attrlist.length; i++) {
- var attr = attrlist[i].Attr;
- for (var j = 0; j < attr.length; j++) {
+ });
+ },
+ scan_OKDataObjRunCustomEvent(eventID) {
+ uni.showLoading({
+ title: "鍔犺浇涓�..",
+ mask: true
+ });
+ var $this = this;
+ var req = [];
+ var attrlist = $this.classAttrList;
+ for (var i = 0; i < attrlist.length; i++) {
+ var attr = attrlist[i].Attr;
+ for (var j = 0; j < attr.length; j++) {
+ var ar = attr[j];
+ if (ar.Value == '璇烽�鎷� || ar
+ .Value == '鈥斺�璇烽�鎷┾�鈥�) ar.Value =
+ '';
+ if (utils.classUtils.attrTypeIsDict(ar.Type)) {
+ if (ar.select ==
+ true) { //鍒ゆ柇涓嬫媺鏄惁澶氶�
+ var valStr = "";
+ for (var v in ar.Value) {
+ if (valStr)
+ valStr += ";";
+ valStr += ar.Value[v];
+ }
+ req.push({
+ attr: ar.Name,
+ value: valStr
+ });
+ } else
+ req.push({
+ attr: ar.Name,
+ value: ar.Value
+ });
+ } else
+ req.push(this.formatAttr(ar));
+
+ if (ar.notempty == true && !ar
+ .Value) {
+ // if(ar.NotEmpty=='1'){
+ uni.hideLoading();
+ // uni.showToast({title:ar.DispName+'涓嶈兘涓虹┖锛�,icon:"success",duration:3000});
+ uni.showModal({
+ title: this.translateSys('tip') + "",
+ content: ar
+ .DispName +
+ '涓嶈兘涓虹┖锛�,
+ showCancel: false,
+ confirmText: this.translateSys('close')
+ });
+ return;
+ }
+ }
+ }
+ var objects = [];
+ var subPanelList = $this.subPanelList;
+ for (var s = 0; s < subPanelList
+ .length; s++) {
+ var sub_req = [];
+ for (var i = 0; i < subPanelList[s]
+ .subClassAttr.length; i++) {
+ var attr = subPanelList[s]
+ .subClassAttr[i].Attr;
+ for (var j = 0; j < attr
+ .length; j++) {
var ar = attr[j];
if (ar.Value == '璇烽�鎷� || ar
- .Value == '鈥斺�璇烽�鎷┾�鈥�) ar.Value =
- '';
+ .Value == '鈥斺�璇烽�鎷┾�鈥�) ar
+ .Value = '';
if (utils.classUtils.attrTypeIsDict(ar.Type)) {
if (ar.select ==
true) { //鍒ゆ柇涓嬫媺鏄惁澶氶�
var valStr = "";
- for (var v in ar.Value) {
+ for (var v in ar
+ .Value) {
if (valStr)
valStr += ";";
- valStr += ar.Value[v];
+ valStr += ar.Value[
+ v];
}
- req.push({
- attr: ar.Name,
+ sub_req.push({
+ attr: ar
+ .Name,
value: valStr
});
} else
- req.push({
+ sub_req.push({
attr: ar.Name,
value: ar.Value
});
} else
- req.push(this.formatAttr(ar));
+ sub_req.push(this.formatAttr(ar));
if (ar.notempty == true && !ar
.Value) {
@@ -4913,233 +4866,167 @@
}
}
}
- var objects = [];
- var subPanelList = $this.$data
- .subPanelList;
- for (var s = 0; s < subPanelList
- .length; s++) {
- var sub_req = [];
- for (var i = 0; i < subPanelList[s]
- .subClassAttr.length; i++) {
- var attr = subPanelList[s]
- .subClassAttr[i].Attr;
- for (var j = 0; j < attr
- .length; j++) {
- var ar = attr[j];
- if (ar.Value == '璇烽�鎷� || ar
- .Value == '鈥斺�璇烽�鎷┾�鈥�) ar
- .Value = '';
- if (utils.classUtils.attrTypeIsDict(ar.Type)) {
- if (ar.select ==
- true) { //鍒ゆ柇涓嬫媺鏄惁澶氶�
- var valStr = "";
- for (var v in ar
- .Value) {
- if (valStr)
- valStr += ";";
- valStr += ar.Value[
- v];
- }
- sub_req.push({
- attr: ar
- .Name,
- value: valStr
- });
- } else
- sub_req.push({
- attr: ar.Name,
- value: ar.Value
- });
- } else
- sub_req.push(this.formatAttr(ar));
-
- if (ar.notempty == true && !ar
- .Value) {
- // if(ar.NotEmpty=='1'){
- uni.hideLoading();
- // uni.showToast({title:ar.DispName+'涓嶈兘涓虹┖锛�,icon:"success",duration:3000});
- uni.showModal({
- title: this.translateSys('tip') + "",
- content: ar
- .DispName +
- '涓嶈兘涓虹┖锛�,
- showCancel: false,
- confirmText: this.translateSys('close')
- });
- return;
- }
- }
- }
- objects.push({
- obj_id: subPanelList[s]
- .scanCodeVal,
- obj_attrs: sub_req
- });
+ objects.push({
+ obj_id: subPanelList[s]
+ .scanCodeVal,
+ obj_attrs: sub_req
+ });
+ }
+ var dataJson = {
+ master_cls: {
+ cls_name: 'MBOX', //$this.param.Master_Cls.Name,
+ obj_attrs: req
+ },
+ input_3037: $this.scanCodeVal, //鎵爜鍐呭
+ op_type: $this.param
+ .OperationType, //浣滀笟绫诲瀷瀹氫箟
+ sub_cls: {
+ cls_name: 'MBOX', //$this.param.Sub_Cls.Name,
+ objects: objects
}
- var dataJson = {
- master_cls: {
- cls_name: 'MBOX', //$this.param.Master_Cls.Name,
- obj_attrs: req
- },
- input_3037: $this.$data
- .scanCodeVal, //鎵爜鍐呭
- op_type: $this.param
- .OperationType, //浣滀笟绫诲瀷瀹氫箟
- sub_cls: {
- cls_name: 'MBOX', //$this.param.Sub_Cls.Name,
- objects: objects
- }
- };
- // console.log(JSON.stringify(dataJson));
- // var dataInfo = {
- // edtype: "7", eventid: eventID, projectid: '',rclsid: '', robjid: '', userlogin: '',
- // clsid: 'MBOX', objid: '',attr: JSON.stringify([]), extinfo: JSON.stringify([]),
- // global_attr: JSON.stringify($this.global_attr),dataJson:JSON.stringify(dataJson)
- // }
- // console.log(JSON.stringify(dataInfo));
- var dataJson = Base64.encode(JSON
- .stringify(dataJson)
- ); //灏嗗瓧绗︿覆杞崲涓篵ase64缂栫爜
- var global_attr = Base64.encode(JSON
- .stringify(this.global_attr)
- ); //灏嗗瓧绗︿覆杞崲涓篵ase64缂栫爜
- if (!eventID.includes('{')) eventID = '{' +
- eventID + '}';
- var dataInfo = {
- ed_type: "7",
- start_transaction: '',
- class_id: 'MBOX',
- class_name: '',
- event_id: eventID,
- event_name: '',
- data_obj_id: '',
- obj_attr: '',
- prj_id: '',
- ref_cls_id: '',
- rel_obj_id: '',
- user_login: '',
- data_json: dataJson,
- compose_info: '',
- ext_info: '',
- global_attr: global_attr,
- input_param: '',
- };
- console.log(dataInfo);
- // return;
- runCustomEvent(dataInfo).then(data => {
- console.log(data);
- uni.hideLoading();
- if (data.ret != 0) {
- var tip = data
- .err_info ?
- typeof data
- .err_info ==
- 'string' ? data
- .err_info : data
- .err_info.join(
- '<br/>') : '';
- if (data.ret == 801)
- uni.showModal({
- title: this.translateSys('tip'),
- content: tip,
- showCancel: false,
- confirmText: this.translateSys('close')
- });
- else uni.showModal({
+ };
+ // console.log(JSON.stringify(dataJson));
+ // var dataInfo = {
+ // edtype: "7", eventid: eventID, projectid: '',rclsid: '', robjid: '', userlogin: '',
+ // clsid: 'MBOX', objid: '',attr: JSON.stringify([]), extinfo: JSON.stringify([]),
+ // global_attr: JSON.stringify($this.global_attr),dataJson:JSON.stringify(dataJson)
+ // }
+ // console.log(JSON.stringify(dataInfo));
+ var dataJson = Base64.encode(JSON
+ .stringify(dataJson)
+ ); //灏嗗瓧绗︿覆杞崲涓篵ase64缂栫爜
+ var global_attr = Base64.encode(JSON
+ .stringify(this.global_attr)
+ ); //灏嗗瓧绗︿覆杞崲涓篵ase64缂栫爜
+ if (!eventID.includes('{')) eventID = '{' +
+ eventID + '}';
+ var dataInfo = {
+ ed_type: "7",
+ start_transaction: '',
+ class_id: 'MBOX',
+ class_name: '',
+ event_id: eventID,
+ event_name: '',
+ data_obj_id: '',
+ obj_attr: '',
+ prj_id: '',
+ ref_cls_id: '',
+ rel_obj_id: '',
+ user_login: '',
+ data_json: dataJson,
+ compose_info: '',
+ ext_info: '',
+ global_attr: global_attr,
+ input_param: '',
+ };
+ console.log(dataInfo);
+ // return;
+ runCustomEvent(dataInfo).then(data => {
+ console.log(data);
+ uni.hideLoading();
+ if (data.ret != 0) {
+ var tip = data
+ .err_info ?
+ typeof data
+ .err_info ==
+ 'string' ? data
+ .err_info : data
+ .err_info.join(
+ '<br/>') : '';
+ if (data.ret == 801)
+ uni.showModal({
title: this.translateSys('tip'),
- content: tip +
- ',鎻愮ず:' +
- data
- .ret,
+ content: tip,
showCancel: false,
confirmText: this.translateSys('close')
});
- return false
- } else {
- var tip = data.info ?
- typeof data.info ==
- 'string' ? data
- .info : data.info
- .join('<br/>') :
- '';
- if (tip) uni
- .showModal({
- title: this.translateSys('tip'),
- content: tip,
- showCancel: false,
- confirmText: this.translateSys('close')
- });
-
- var result = data
- .result;
- if (eventID != $this
- .$data.param
- .After_OK_Event.ID)
- $this
- .scan_OKDataObjRunCustomEvent(
- $this.$data
- .param
- .After_OK_Event
- .ID);
- else {
- //鍒锋柊
- uni.redirectTo({
- url: '../modal/3037?param=' +
- JSON
- .stringify(
- $this
- .$data
- .param
- ) +
- "&titlename=" +
- $this
- .$data
- .title
- });
- }
- }
-
- }).catch(ex => {
- // console.log(ex);
- uni.hideLoading();
- uni.showModal({
- title: this.translateSys('error') + " 8.1",
- content: ex.errMsg,
+ else uni.showModal({
+ title: this.translateSys('tip'),
+ content: tip +
+ ',鎻愮ず:' +
+ data
+ .ret,
showCancel: false,
confirmText: this.translateSys('close')
});
- });
- },
+ return false
+ } else {
+ var tip = data.info ?
+ typeof data.info ==
+ 'string' ? data
+ .info : data.info
+ .join('<br/>') :
+ '';
+ if (tip) uni
+ .showModal({
+ title: this.translateSys('tip'),
+ content: tip,
+ showCancel: false,
+ confirmText: this.translateSys('close')
+ });
- formatAttr(attr) {
- if (utils.classUtils.attrTypeIsObjRefMulti(attr.Type)) //if(ar.Type=='寮曠敤瀵硅薄(澶氫釜)')
- if (attr.Value == '璇�) ar.Value = '';
- 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 (utils.classUtils.attrTypeIsBool(attr.Type)) //if(ar.Type=='甯冨皵鍊�)
- return {
- attr: attr.Name,
- value: attr.Value ? '1' : '0'
- };
- else
- return {
- attr: attr.Name,
- value: attr.Value ? attr.Value : ''
- };
- },
- translate(t) {
- if (typeof this.$t == "function") return this.$t(`page.${t}`)
- else return t;
- },
- translateSys(t) {
- if (typeof this.$t == "function") return this.$t(`sys.${t}`)
- else return t;
- },
- }
+ var result = data
+ .result;
+ if (eventID != $this.param.After_OK_Event.ID)
+ $this.scan_OKDataObjRunCustomEvent(
+ $this.param
+ .After_OK_Event
+ .ID);
+ else {
+ //鍒锋柊
+ uni.redirectTo({
+ url: '../modal/3037?param=' +
+ JSON
+ .stringify(
+ $this.param
+ ) +
+ "&titlename=" +
+ $this.title
+ });
+ }
+ }
+
+ }).catch(ex => {
+ // console.log(ex);
+ uni.hideLoading();
+ uni.showModal({
+ title: this.translateSys('error') + " 8.1",
+ content: ex.errMsg,
+ showCancel: false,
+ confirmText: this.translateSys('close')
+ });
+ });
+ },
+
+ formatAttr(attr) {
+ if (utils.classUtils.attrTypeIsObjRefMulti(attr.Type)) //if(ar.Type=='寮曠敤瀵硅薄(澶氫釜)')
+ if (attr.Value == '璇�) ar.Value = '';
+ 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 (utils.classUtils.attrTypeIsBool(attr.Type)) //if(ar.Type=='甯冨皵鍊�)
+ return {
+ attr: attr.Name,
+ value: attr.Value ? '1' : '0'
+ };
+ else
+ return {
+ attr: attr.Name,
+ value: attr.Value ? attr.Value : ''
+ };
+ },
+ translate(t) {
+ if (typeof this.$t == "function") return this.$t(`page.${t}`)
+ else return t;
+ },
+ translateSys(t) {
+ if (typeof this.$t == "function") return this.$t(`sys.${t}`)
+ else return t;
+ },
+ }
}
</script>
<style>
diff --git a/pages/modal/3037_2.vue b/pages/modal/3037_2.vue
index 64bf0e8..cbcff22 100644
--- a/pages/modal/3037_2.vue
+++ b/pages/modal/3037_2.vue
@@ -531,20 +531,7 @@
});
}
}
- var length = 0;
- if (!$this.$data.refdatastore.filter(function(s) {
- return result[i].attr == s.attr
- }).length) {
- length = 1;
- $this.$data.refdatastore.push(result[i]);
- }
- if (length == 0) {
- for (var j = 0; j < $this.$data.refdatastore.length; j++) {
- if ($this.$data.refdatastore[j].attr == result[i].attr) {
- $this.$data.refdatastore[j].value = result[i].value;
- }
- }
- }
+
}
} else if (data.action[i].action_type == 'set_dlg_attr_show') {
var result = action.value;
@@ -999,8 +986,7 @@
rclsid: "",
robjid: "",
userlogin: "",
- clsid: $this.$data
- .param
+ clsid: $this.param
.DataCls.id,
objid: "",
attr: param.req,
@@ -1123,8 +1109,8 @@
//瀛愭暟鎹被鎵爜鏌ヨ鏁版嵁
if (isflag) {
uni.hideKeyboard();
- this.$data.scanCodeVal =newVal;
- var eventid = this.$data.param.Scan_Code.Input_Change_Event.ID;
+ this.scanCodeVal =newVal;
+ var eventid = this.param.Scan_Code.Input_Change_Event.ID;
if (eventid) {
//涓绘暟鎹被灞炴�
var obj_attr = this.head_styledef.form.model;
@@ -1601,20 +1587,7 @@
}
}
- var length = 0;
- if (!$this.$data.refdatastore.filter(function(s) {
- return result[i].attr == s.attr
- }).length) {
- length = 1;
- $this.$data.refdatastore.push(result[i]);
- }
- if (length == 0) {
- for (var j = 0; j < $this.$data.refdatastore.length; j++) {
- if ($this.$data.refdatastore[j].attr == result[i].attr) {
- $this.$data.refdatastore[j].value = result[i].value;
- }
- }
- }
+
}
} else if (action.action_type == 'set_dlg_attr_show') {
var result = action.value;
@@ -1859,19 +1832,7 @@
}
}
var length = 0;
- if (!$this.$data.refdatastore.filter(function(s) {
- return result[i].attr == s.attr
- }).length) {
- length = 1;
- $this.$data.refdatastore.push(result[i]);
- }
- if (length == 0) {
- for (var j = 0; j < $this.$data.refdatastore.length; j++) {
- if ($this.$data.refdatastore[j].attr == result[i].attr) {
- $this.$data.refdatastore[j].value = result[i].value;
- }
- }
- }
+
}
} else if (action.action_type == 'set_global_attr') {
$this.$actiontr = action.value || [];
@@ -2641,20 +2602,5 @@
margin-top: 5px;
}
- // .uni-px-5 {
- // margin: 0;
- // display: inline-block;
- // margin: 0;
- // font-size: 14px;
- // }
- // .uni-select{
- // border: 1px solid #ccc;
- // border-radius: 0;
- // }
- // .uni-section-content{
- // display: inline-block;
- // width: 100px;
- // border: 1px solid red;
- // }
}
</style>
\ No newline at end of file
diff --git a/pages/modal/3200.vue b/pages/modal/3200.vue
index c5309ae..33e678a 100644
--- a/pages/modal/3200.vue
+++ b/pages/modal/3200.vue
@@ -25,42 +25,8 @@
</div>
<div class="dv-panel-input" v-if="!ListHtml_Panel"
:style="param.ListPage.CheckBox==true && param.ListPage.Click_View==true?'width:85%;':param.ListPage.CheckBox==false && param.ListPage.Click_View==true?'width:91%;':param.ListPage.CheckBox==true && param.ListPage.Click_View==false?'width:88%;':'width:100%;'">
- <uni-forms class="v-area dv-panel" label-align="right">
- <view v-for="(item,index) in style.form.items" :key="index">
- <!-- 鏍呮牸甯冨眬 -->
- <uni-row v-if="item.name == 'Layout'" :gutter="item.setting.gutter">
- <uni-col
- :span="item.setting.spanList && item.setting.spanList[key]? item.setting.spanList[key] : 24 / item.setting.col"
- v-for="(col,key) in item.setting.colList" :key="key">
- <uni-forms-item v-if="col != null"
- :label="col.labelWidth === 0 ? '' : col.label? col.label+'锛�:''"
- :label-width="col.labelWidth || col.labelWidth === 0 ? col.labelWidth : 100+'px'">
- <view v-if="col.disabled">{{col.value}}</view>
- <input class="uni-input"
- v-else-if="col.name=='Input' || col.name=='InputNumber'"
- :type="col.name=='InputNumber'?'number':'text'"
- v-model="col.value" :placeholder="col.placeholder"
- :maxlength="-1" />
- <view v-else>{{col.value}}</view>
+ <OIForm class="v-area dv-panel" :form="style.form.items" viewMode></OIForm>
- </uni-forms-item>
- <uni-forms-item v-else label=""></uni-forms-item>
- </uni-col>
- </uni-row>
- <uni-forms-item v-else
- :label="item.labelWidth === 0 ? '' : item.label? item.label+'锛�:''"
- :label-width="item.labelWidth || item.labelWidth === 0 ? item.labelWidth : 100+'px'"
- :style="{ textAlign: item.setting.align }">
- <view v-if="item.disabled">{{item.value}}</view>
- <input v-else-if="item.name=='Input' || item.name=='InputNumber' "
- class="uni-input" :type="item.name=='InputNumber'?'number':'text'"
- v-model="item.value" :disabled="item.disabled"
- :placeholder="item.placeholder" :maxlength="-1" />
- <view v-else>{{item.value}}</view>
-
- </uni-forms-item>
- </view>
- </uni-forms>
</div>
<div class="dv-panel-button" v-if="param.ListPage.Click_View==true">
<a @click="onViewPageClick(style)"><i class="mobox-normal-right-arrow" /></a>
@@ -1958,37 +1924,9 @@
.dv-panel {
background-color: #efefef;
padding: 20rpx 20rpx 20rpx 0px;
-
- .uni-forms-item {
- padding-bottom: 5rpx;
- margin-bottom: 0;
-
- .uni-forms-item__label {
- height: 20px !important;
- padding: 0 10rpx 0 0 !important;
- }
-
- .uni-input {
- width: calc(100% - 12rpx);
- padding: 5rpx;
- border: 1px solid #d5d5d5;
- color: #2d8cf0;
- height: 20px;
- background: #FFF;
- line-height: 20px;
- border-radius: 6px !important;
- font-size: 14px;
- font-family: inherit;
- box-shadow: none !important;
- transition-duration: 0.1s;
- vertical-align: middle;
- }
-
- .uni-input:hover {
- border: 1px solid rgb(41, 121, 255);
- }
- }
-
+ border-radius: 12rpx;
+ margin-bottom: 20rpx;
+ text-align: right;
}
.dv-listHtml-Panel,
diff --git a/pages/modal/5601.vue b/pages/modal/5601.vue
index d22290d..1943ef7 100644
--- a/pages/modal/5601.vue
+++ b/pages/modal/5601.vue
@@ -24,7 +24,6 @@
</image>
<checkbox-group @change="checkboxChange">
<div class="dv-panel" v-for="(style,ii) in pageData.DefList" :key="ii"
- <div class="dv-panel" v-for="(style,ii) in pageData.DefList" :key="ii"
@tap="onPanelClick(ii,style.form.htmlobjId)"
:id="'dvpanel'+style.form.htmlobjId"
:class="style.form.htmlobjId==active_id?'bk-active':''">
@@ -1292,25 +1291,16 @@
attr.value,
attr.operation
)
- if (ele2.name != 'Layout') {
- if (ele2.fieldId == attr.attr) {
- ele2.value = $this.operationNumber(
- ele2.value,
- attr.value,
- attr.operation
- )
}
} else if (ele2.name == 'Layout') {
ele2.setting.colList.forEach(col => {
if (col) {
- if (col.fieldId == attr
- .attr) {
+ if (col.fieldId == attr.attr) {
col.value = $this
.operationNumber(
col.value,
attr.value,
- attr
- .operation
+ attr.operation
)
}
}
@@ -1320,80 +1310,74 @@
});
}
} else if (rowData.condition) {
- const conditions = rowData.condition || [];
- if (conditions.length > 0) {
- let bFindCondition = true;
- for (let i in conditions) {
- const condition = conditions[i];
- let bFind = false;
- for (let i2 in ele.form.items) {
- const ele2 = ele.form.items[i2];
- if (ele2.name != "Layout") {
- if (ele2.fieldId == condition.attr) {
- if (condition.value == ele2.value) {
+ const conditions = rowData.condition
+ let bFindCondition = true;
+ for (let i in conditions) {
+ const condition = conditions[i];
+ let bFind = false;
+ for (let i2 in ele.form.items) {
+ const ele2 = ele.form.items[i2];
+ if (ele2.name != "Layout") {
+ if (ele2.fieldId == condition.attr) {
+ if (condition.value == ele2.value) {
+ bFind = true;
+ }
+ break;
+ }
+ } else {
+ const colList = ele2.setting.colList || [];
+ for (let i3 in colList) {
+ const col = colList[i3];
+ if (col.fieldId == condition.attr) {
+ if (condition.value == col.value) {
bFind = true;
}
break;
}
- } else {
- const colList = ele2.setting.colList || [];
- for (let i3 in colList) {
- const col = colList[i3];
- if (col.fieldId == condition.attr) {
- if (condition.value == col.value) {
- bFind = true;
- }
- break;
- }
- }
- if (bFind) break;
}
- }
- if (!bFind) {
- bFindCondition = false;
- break;
+ if (bFind) break;
}
}
- if (bFindCondition) {
- rowData.attrs.forEach(attr => {
- ele.form.items.forEach(ele2 => {
- if (ele2.name != 'Layout') {
- if (ele2.fieldId == attr.attr) {
- ele2.value =
- $this.operationNumber(
- ele2.value,
- attr.value,
- attr.operation
- )
- }
- } else if (ele2.name == 'Layout') {
- ele2.setting.colList.forEach(col => {
- if (col) {
- if (col.fieldId == attr
- .attr) {
- col.value =
- $this
- .operationNumber(
- col.value,
- attr
- .value,
- attr
- .operation)
- }
- }
- })
- }
- });
- });
-
+ if (!bFind) {
+ bFindCondition = false;
+ break;
}
}
+ if (bFindCondition) {
+ rowData.attrs.forEach(attr => {
+ ele.form.items.forEach(ele2 => {
+ if (ele2.name != 'Layout') {
+ if (ele2.fieldId == attr.attr) {
+ ele2.value =
+ $this.operationNumber(
+ ele2.value,
+ attr.value,
+ attr.operation
+ )
+ }
+ } else if (ele2.name == 'Layout') {
+ ele2.setting.colList.forEach(col => {
+ if (col) {
+ if (col.fieldId == attr.attr) {
+ col.value =
+ $this.operationNumber(
+ col.value, attr
+ .value, attr
+ .operation)
+ }
+ }
+ })
+ }
+ });
+ });
+
+ }
+
}
})
});
- pageData.DefList = detailStyleDefList
+ pageData.DefList = detailStyleDefList
$this.$set(this.pageDetail, pageIndex, pageData)
-
},
//鍔犺浇姝e湪鐮佺洏鍐呭
viewAceionRow(data) {
@@ -1424,15 +1408,7 @@
if (ele.name != 'Layout') {
if (ele.fieldId == attr.attr)
ele.value = attr.value;
- if (ele.fieldId == attr.attr)
- ele.value = attr.value;
} else if (ele.name == 'Layout') {
- ele.setting.colList.forEach(col => {
- if (col) {
- if (col.fieldId == attr.attr)
- col.value = attr.value;
- }
- });
ele.setting.colList.forEach(col => {
if (col) {
if (col.fieldId == attr.attr)
@@ -1499,7 +1475,6 @@
if (data.clear == false) {
var isflag = true;
pageData.DefList.forEach((style, index) => {
- if (style.form.objId == detailStyle.form.objId) {
if (style.form.objId == detailStyle.form.objId) {
cont.attrs.forEach(attr => {
style.form.items.forEach(ele => {
@@ -3103,36 +3078,6 @@
margin: 0;
- .uni-forms-item {
- padding-bottom: 5rpx;
- margin-bottom: 0;
-
- .uni-forms-item__label {
- height: 20px !important;
- padding: 0 10rpx 0 0 !important;
- }
-
- .uni-input {
- width: calc(100% - 12rpx);
- padding: 5rpx;
- border: 1px solid #d5d5d5;
- color: #2d8cf0;
- height: 20px;
- background: #FFF;
- line-height: 20px;
- border-radius: 6px !important;
- font-size: 14px;
- font-family: inherit;
- box-shadow: none !important;
- transition-duration: 0.1s;
- vertical-align: middle;
- }
-
- .uni-input:hover {
- border: 1px solid rgb(41, 121, 255);
- }
- }
-
}
@@ -3254,14 +3199,6 @@
.input-disabled {
background-color: #f3f3f3 !important;
}
-
- // ::v-deep .uni-row {
- // margin-bottom: 0px;
- // }
-
- // .view-tabpage ::v-deep .uni-row {
- // margin-bottom: 5px;
- // }
.demo-uni-col {
height: 36px;
diff --git a/pages/modal/form/index.vue b/pages/modal/form/index.vue
index 1d2c903..3d77b3a 100644
--- a/pages/modal/form/index.vue
+++ b/pages/modal/form/index.vue
@@ -7,7 +7,7 @@
@on-click-suffix="classAttr_extButton"></OIForm>
</view>
<view class="view-bottom">
- <button type="primary" @tap="onClickOk" class="btn_add" :class="okLoading?'btn_disabled':''"
+ <button type="primary" @tap="ok" class="btn_add" :class="okLoading?'btn_disabled':''"
:disabled="okLoading">{{translateSys('ok')}}</button>
<button type="default" @tap="cancel" class="btn_cancel">{{translateSys('cancel')}}</button>
@@ -56,11 +56,9 @@
} from "@/api/data.js"
import dayjs from "dayjs";
import OIForm from '@/components/oi-form/index.vue'
- import buttonClickMixin from '@/mixins/button-click.js';
export default {
name: "PageModalForm",
- mixins: [buttonClickMixin],
components: {
OIForm
},
@@ -1461,12 +1459,6 @@
});
});
},
- onClickOK() {
- this.handleButtonClick(async (done) => {
- await this.ok()
- done(); // 閲嶇疆鐘舵�
- });
- },
//纭畾
async ok() {
try {
@@ -1475,6 +1467,7 @@
mask: true
});
this.okLoading = true
+ console.log(obj_attr)
var obj_attr = this.head_styledef.form.model || {};
console.log(obj_attr)
let ret = await this.sava();
@@ -1490,6 +1483,7 @@
uni.navigateBack()
} catch (ex) {
+ this.okLoading = true
return false;
}
},
--
Gitblit v1.9.1