centaline-data-driven-v3 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/centaline-data-driven-v3.umd.js +60 -60
- package/package.json +1 -1
- package/src/components/Layout/Layout.vue +1 -1
- package/src/components/web/AIChat.vue +1 -1
- package/src/components/web/FormList.vue +1 -1
- package/src/loader/index.js +2 -2
- package/src/loader/src/AIChat.js +1 -1
- package/src/loader/src/AppContainer.js +1 -1
- package/src/loader/src/Canlendar.js +1 -1
- package/src/loader/src/CellLayout.js +3 -3
- package/src/loader/src/File.js +4 -4
- package/src/loader/src/Form.js +22 -3
- package/src/loader/src/Photo.js +1 -1
- package/src/loader/src/PhotoSelect.js +1 -1
- package/src/loader/src/PhotoSelectList.js +1 -1
- package/src/loader/src/Router.js +4 -0
- package/src/loader/src/SearchCategory.js +1 -1
- package/src/loader/src/SearchScreen.js +4 -4
- package/src/loader/src/SearchStats.js +3 -3
- package/src/loader/src/SearchTable.js +2 -2
- package/src/loader/src/SliceUpload.js +1 -1
- package/src/loader/src/Tree.js +3 -3
- package/src/main.js +6 -6
- package/src/utils/common.js +3 -3
- package/src/utils/mixins.js +37 -18
- package/src/views/Form.vue +2 -2
package/package.json
CHANGED
|
@@ -116,7 +116,7 @@ function load(data, cellLayout) {
|
|
|
116
116
|
|
|
117
117
|
function getValue(data, val) {
|
|
118
118
|
return val.split(".").reduce((data, currentVal) => {
|
|
119
|
-
|
|
119
|
+
let rtn = data[common.initialsToLowerCase(currentVal)];
|
|
120
120
|
var a = typeof rtn;
|
|
121
121
|
if (props.flagFormList) {
|
|
122
122
|
if (data[currentVal]) {
|
|
@@ -236,7 +236,7 @@ model.value.parentModel = props.parentModel;
|
|
|
236
236
|
model.value.parameterAction = props.parameterAction
|
|
237
237
|
model.value.$vue = { insertOrUpdateRow, insertRow, delRow, deleteAll, insertSingleRow, itemKey };
|
|
238
238
|
model.value.validExcute = () => {
|
|
239
|
-
|
|
239
|
+
let rtn = fieldsValidExcute();
|
|
240
240
|
return fieldsValidExcute();
|
|
241
241
|
}
|
|
242
242
|
const Fields = ref()
|
package/src/loader/index.js
CHANGED
package/src/loader/src/AIChat.js
CHANGED
|
@@ -10,7 +10,7 @@ const loadApi = function (action,searchModel, callBack) {
|
|
|
10
10
|
}).then(
|
|
11
11
|
function (response) {
|
|
12
12
|
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
13
|
-
|
|
13
|
+
let rtn = loadModel(response.content);
|
|
14
14
|
if (callBack) {
|
|
15
15
|
callBack(rtn);
|
|
16
16
|
}
|
|
@@ -17,7 +17,7 @@ function loadCanlendarApi(action, searchModel, flagSearch, callBack, postThenHan
|
|
|
17
17
|
}).then(
|
|
18
18
|
function (response) {
|
|
19
19
|
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
20
|
-
|
|
20
|
+
let rtn = loadCanlendarModel(response.content, searchModel, action);
|
|
21
21
|
if (callBack) {
|
|
22
22
|
callBack(rtn);
|
|
23
23
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import util from '../../utils/pub-use'
|
|
2
2
|
const CellLayout = function (source, actionRouter, rowdata, forname, forrowindex) {
|
|
3
|
-
|
|
3
|
+
let rtn = {
|
|
4
4
|
get fields() {
|
|
5
5
|
return source.fields;
|
|
6
6
|
},
|
|
@@ -59,7 +59,7 @@ const CellLayout = function (source, actionRouter, rowdata, forname, forrowindex
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
else if(source.visibility=='last'){
|
|
62
|
-
|
|
62
|
+
let rtn="0";
|
|
63
63
|
if(typeof forname !== "undefined"){
|
|
64
64
|
if(rowdata[forname].length-1==forrowindex){
|
|
65
65
|
rtn="1";
|
|
@@ -68,7 +68,7 @@ const CellLayout = function (source, actionRouter, rowdata, forname, forrowindex
|
|
|
68
68
|
return rtn;
|
|
69
69
|
}
|
|
70
70
|
else if(source.visibility=='!last'){
|
|
71
|
-
|
|
71
|
+
let rtn="1";
|
|
72
72
|
if(typeof forname !== "undefined"){
|
|
73
73
|
if(rowdata[forname].length-1==forrowindex){
|
|
74
74
|
rtn="0";
|
package/src/loader/src/File.js
CHANGED
|
@@ -7,7 +7,7 @@ import request from '../../utils/request';
|
|
|
7
7
|
function loadFromModel(source, SourceList, router, optionApi, videoPlayIconUrl, moreActionRouter) {
|
|
8
8
|
|
|
9
9
|
var init = function (data) {
|
|
10
|
-
|
|
10
|
+
let rtn = {
|
|
11
11
|
disableUpload: false,
|
|
12
12
|
qrcodeVisible: false,
|
|
13
13
|
isQrCode: false,
|
|
@@ -303,9 +303,9 @@ function getOptions(model, callBack) {
|
|
|
303
303
|
if (!model.paramName1) {
|
|
304
304
|
return false;
|
|
305
305
|
}
|
|
306
|
-
if (model.optionModel.isInit) {
|
|
307
|
-
|
|
308
|
-
}
|
|
306
|
+
// if (model.optionModel.isInit) {
|
|
307
|
+
// return model.optionModel.options;
|
|
308
|
+
// }
|
|
309
309
|
|
|
310
310
|
var params = {
|
|
311
311
|
action: model.optionApi,
|
package/src/loader/src/Form.js
CHANGED
|
@@ -11,8 +11,8 @@ function loadFormApi(api, callBack, apiParam, failCallBack, isFormList) {
|
|
|
11
11
|
request.postHandler(common.globalUri(), { "action": api, "para": apiParam }).then(
|
|
12
12
|
function (response) {
|
|
13
13
|
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
let data = response.content;
|
|
15
|
+
let rtn = loadFromModel(data, isFormList);
|
|
16
16
|
if (callBack) {
|
|
17
17
|
callBack(rtn);
|
|
18
18
|
}
|
|
@@ -119,6 +119,25 @@ function loadFromModel(source, isFormList) {
|
|
|
119
119
|
this.form.$vue.loaded(this.form)
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
+
if (rtn1.controlType === Enum.ControlType.File
|
|
123
|
+
|| rtn1.controlType === Enum.ControlType.SliceUpload) {
|
|
124
|
+
if (attrKey.toLowerCase() == 'paramName1'.toLowerCase()) {
|
|
125
|
+
rtn1.mediaLabe.mediaLabelName = ''
|
|
126
|
+
rtn1.mediaLabe.mediaLabelID = ''
|
|
127
|
+
if (rtn1.fileList) {
|
|
128
|
+
rtn1.fileList.forEach((v) => {
|
|
129
|
+
v.mediaLabelID = ''
|
|
130
|
+
v.mediaLabelName = ''
|
|
131
|
+
})
|
|
132
|
+
}
|
|
133
|
+
if (rtn1.fileSourceList) {
|
|
134
|
+
rtn1.fileSourceList.forEach((v) => {
|
|
135
|
+
v.mediaLabelID = ''
|
|
136
|
+
v.mediaLabelName = ''
|
|
137
|
+
})
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
122
141
|
hiddenHandle(rtn1, this.form);
|
|
123
142
|
requiredHandle(rtn1, this.form);
|
|
124
143
|
}
|
|
@@ -783,7 +802,7 @@ function loadFromModel(source, isFormList) {
|
|
|
783
802
|
},
|
|
784
803
|
//获取查询数据参数
|
|
785
804
|
get searchData() {
|
|
786
|
-
|
|
805
|
+
let rtn = {
|
|
787
806
|
fields: []
|
|
788
807
|
};
|
|
789
808
|
this.fields.forEach((v) => {
|
package/src/loader/src/Photo.js
CHANGED
|
@@ -11,7 +11,7 @@ const loadApi = function (action, callBack,searchModel) {
|
|
|
11
11
|
}).then(
|
|
12
12
|
function (response) {
|
|
13
13
|
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
14
|
-
|
|
14
|
+
let rtn = loadModel(response);
|
|
15
15
|
if (callBack) {
|
|
16
16
|
callBack(rtn);
|
|
17
17
|
}
|
package/src/loader/src/Router.js
CHANGED
|
@@ -75,6 +75,10 @@ const Router = function (source) {
|
|
|
75
75
|
return source.buttonType === Enum.ButtonType.openFileDialog;
|
|
76
76
|
},
|
|
77
77
|
|
|
78
|
+
get isButton() {
|
|
79
|
+
return source.buttonType === Enum.ButtonType.Button;
|
|
80
|
+
},
|
|
81
|
+
|
|
78
82
|
//是否需要警示标志
|
|
79
83
|
get flagAlert() {
|
|
80
84
|
return source.flagAlert;
|
|
@@ -8,7 +8,7 @@ function loadSearchCategoryApi(action, callBack, callBackError) {
|
|
|
8
8
|
request.postHandler(common.globalUri(), { action: action, para: {} }).then(
|
|
9
9
|
function (response) {
|
|
10
10
|
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
11
|
-
|
|
11
|
+
let rtn = loadSearchCategoryModel(response.content.fields[0]);
|
|
12
12
|
if (callBack) {
|
|
13
13
|
callBack(rtn);
|
|
14
14
|
}
|
|
@@ -10,8 +10,8 @@ function loadSearchScreenApi(action, callBack, screenPara, prevParam, failCallBa
|
|
|
10
10
|
request.postHandler(common.globalUri(), { "action": action, "para": screenPara }).then(
|
|
11
11
|
function (response) {
|
|
12
12
|
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
let data = response.content;
|
|
14
|
+
let rtn = loadSearchScreenModel(data, prevParam);
|
|
15
15
|
if (callBack) {
|
|
16
16
|
callBack(rtn);
|
|
17
17
|
}
|
|
@@ -608,7 +608,7 @@ function loadSearchScreenModel(source, prevParam) {
|
|
|
608
608
|
},
|
|
609
609
|
//获取搜索条件数据
|
|
610
610
|
get searchData() {
|
|
611
|
-
|
|
611
|
+
let rtn = {
|
|
612
612
|
fields: []
|
|
613
613
|
};
|
|
614
614
|
this.screen.forEach((v) => {
|
|
@@ -632,7 +632,7 @@ function loadSearchScreenModel(source, prevParam) {
|
|
|
632
632
|
return rtn;
|
|
633
633
|
},
|
|
634
634
|
get searchDataOfHide() {
|
|
635
|
-
|
|
635
|
+
let rtn = {
|
|
636
636
|
fields: []
|
|
637
637
|
};
|
|
638
638
|
this.screen.forEach((v) => {
|
|
@@ -17,7 +17,7 @@ function loadSearchStatsApi(action, callBack, searchModel, defaultSearchData) {
|
|
|
17
17
|
}).then(
|
|
18
18
|
function (response) {
|
|
19
19
|
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
20
|
-
|
|
20
|
+
let rtn = loadSearchStatsModel(response,searchModel, defaultSearchData);
|
|
21
21
|
if (callBack) {
|
|
22
22
|
callBack(rtn);
|
|
23
23
|
}
|
|
@@ -26,7 +26,7 @@ function loadSearchStatsApi(action, callBack, searchModel, defaultSearchData) {
|
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
28
|
function loadSearchStatsModel(source, searchModel, defaultSearchData) {
|
|
29
|
-
|
|
29
|
+
let rtn = {
|
|
30
30
|
searchModel: searchModel,
|
|
31
31
|
tableHeight: 350,
|
|
32
32
|
defaultSearchData: defaultSearchData,
|
|
@@ -84,7 +84,7 @@ function loadSearchStatsModel(source, searchModel, defaultSearchData) {
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
searchData(fieldName1, val, operation, searchDataType) {
|
|
87
|
-
|
|
87
|
+
let rtn = {
|
|
88
88
|
fields: []
|
|
89
89
|
};
|
|
90
90
|
rtn.fields.push({
|
|
@@ -17,7 +17,7 @@ function loadSearchTableApi(action, callBack, searchModel, flagSearch, defaultSe
|
|
|
17
17
|
}).then(
|
|
18
18
|
function (response) {
|
|
19
19
|
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
20
|
-
|
|
20
|
+
let rtn = loadSearchTableModel(response, searchModel, defaultSearchData, action, searchAction);
|
|
21
21
|
if (callBack) {
|
|
22
22
|
callBack(rtn);
|
|
23
23
|
}
|
|
@@ -31,7 +31,7 @@ function loadSearchTableApi(action, callBack, searchModel, flagSearch, defaultSe
|
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
33
|
function loadSearchTableModel(source, searchModel, defaultSearchData, action, searchAction) {
|
|
34
|
-
|
|
34
|
+
let rtn = {
|
|
35
35
|
formData: {
|
|
36
36
|
formTable: null,
|
|
37
37
|
execRouter(routerKey) {
|
|
@@ -11,7 +11,7 @@ async function postFile(api, data, callback) {
|
|
|
11
11
|
callback(xhr, msg, true);
|
|
12
12
|
return false;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
let rtn = JSON.parse(xhr.responseText);
|
|
15
15
|
callback(xhr, rtn, false);
|
|
16
16
|
}
|
|
17
17
|
window.XMLHttpRequest && (xhr.onerror = function () {
|
package/src/loader/src/Tree.js
CHANGED
|
@@ -18,7 +18,7 @@ function loadSearchTreeApi(action, searchModel) {
|
|
|
18
18
|
}).then(
|
|
19
19
|
function (response) {
|
|
20
20
|
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
21
|
-
|
|
21
|
+
let rtn = loadSearchTreeModel(response);
|
|
22
22
|
resolve(rtn);
|
|
23
23
|
|
|
24
24
|
// if (callBack) {
|
|
@@ -34,7 +34,7 @@ function loadSearchTreeApi(action, searchModel) {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
function loadSearchTreeModel(source, searchModel) {
|
|
37
|
-
|
|
37
|
+
let rtn = {
|
|
38
38
|
searchModel: searchModel,
|
|
39
39
|
get source() {
|
|
40
40
|
return source;
|
|
@@ -94,7 +94,7 @@ function loadSearchTreeModel(source, searchModel) {
|
|
|
94
94
|
},
|
|
95
95
|
//组装查询条件
|
|
96
96
|
searchData(fieldName1, _parentID, operation, searchDataType) {
|
|
97
|
-
|
|
97
|
+
let rtn = {
|
|
98
98
|
fields: []
|
|
99
99
|
};
|
|
100
100
|
rtn.fields.push({
|
package/src/main.js
CHANGED
|
@@ -22,7 +22,7 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
22
22
|
|
|
23
23
|
app.use(centaline, {
|
|
24
24
|
//baseUrl:"https://uplink.centaline.com.cn/xian/",
|
|
25
|
-
baseUrl:"
|
|
25
|
+
baseUrl:"https://kq-api.centaline.com.cn/onecard-api/",
|
|
26
26
|
//baseUrl: "https://kq-api.centaline.com.cn/onecard-api/",
|
|
27
27
|
//baseUrl: "http://10.88.22.13:6060/onecard-api/",
|
|
28
28
|
//baseUrl: "http://10.88.22.66:6060/xian/",
|
|
@@ -30,10 +30,10 @@ app.use(centaline, {
|
|
|
30
30
|
//baseUrl: "http://10.1.245.111:38028/",
|
|
31
31
|
|
|
32
32
|
flagRouterSelf: true,
|
|
33
|
-
flagApp:
|
|
33
|
+
flagApp: false,//是否app端
|
|
34
34
|
zindex: 999,
|
|
35
35
|
showRequestSuccessMessage: true,
|
|
36
|
-
showRequestErrorMessage:
|
|
36
|
+
showRequestErrorMessage: true,
|
|
37
37
|
language: 'HK',
|
|
38
38
|
handler: {
|
|
39
39
|
// 打开tab页
|
|
@@ -67,12 +67,12 @@ app.use(centaline, {
|
|
|
67
67
|
return {
|
|
68
68
|
//authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVay1xvvOl3sJA2HiPIxElSIJBIIcXdAQEfPFK-YZt4Nlm2EChqtDafOYWqpRG6kxLoTxZhUTSRxHLUPH_DHfOmt5SDWt1gHScieHapNiol94q5pXYoNFJAvJ6isGHWmNMYVcBjWtyCr_iW2JZ93-fqPc8f18MwGIqFRCIO1GXmWGYd9npCZJ6N5JjYZ7g8AAAD__w.HgtNKtHWooj8c9Hy_vB8CfKq-qOeHMp0irnW0DfXtHo"}',
|
|
69
69
|
//oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
|
|
70
|
-
|
|
71
|
-
authObject: '{EmpID:"Token_4abee9c9-2616-4cb5-beda-1f94dc7d8a96",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_4abee9c9-2616-4cb5-beda-1f94dc7d8a96",Platform:"IOS"}',
|
|
70
|
+
authObject: '{token:"1647-1927532276019761152",platform:"WEB"}',
|
|
71
|
+
//authObject: '{EmpID:"Token_4abee9c9-2616-4cb5-beda-1f94dc7d8a96",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_4abee9c9-2616-4cb5-beda-1f94dc7d8a96",Platform:"IOS"}',
|
|
72
72
|
};
|
|
73
73
|
},
|
|
74
74
|
getToken() {
|
|
75
|
-
return "
|
|
75
|
+
return "wufw-1926816278719369216"
|
|
76
76
|
},
|
|
77
77
|
// 请求完成事件,可判断是否登录过期执行响应操作
|
|
78
78
|
requestComplete: function (response) {
|
package/src/utils/common.js
CHANGED
|
@@ -40,7 +40,7 @@ const common = {
|
|
|
40
40
|
* @returns {Array | Element} 返回匹配元素数组或匹配元素
|
|
41
41
|
*/
|
|
42
42
|
getElementByClassName(className, type, isFirst) {
|
|
43
|
-
|
|
43
|
+
let rtn = [];
|
|
44
44
|
var elements = [];
|
|
45
45
|
if (type) {
|
|
46
46
|
elements = document.getElementsByTagName(type);
|
|
@@ -97,7 +97,7 @@ const common = {
|
|
|
97
97
|
* @returns {Object} 返回复制对象
|
|
98
98
|
*/
|
|
99
99
|
CloneCode(obj, sourceHistory, cloneHistory) {
|
|
100
|
-
|
|
100
|
+
let rtn;
|
|
101
101
|
switch (typeof obj) {
|
|
102
102
|
case 'boolean':
|
|
103
103
|
case 'number':
|
|
@@ -383,7 +383,7 @@ const common = {
|
|
|
383
383
|
//sleep
|
|
384
384
|
}
|
|
385
385
|
this.evalBizy = true;
|
|
386
|
-
|
|
386
|
+
let rtn = {};
|
|
387
387
|
var currentKey = [];
|
|
388
388
|
for (var k in window) {
|
|
389
389
|
currentKey.push(k);
|
package/src/utils/mixins.js
CHANGED
|
@@ -124,7 +124,7 @@ function validExcuteMessage(validtemp, model) {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
//路由操作事件
|
|
127
|
-
export function RouterClickHandler(field, submitData, action, model, source, callBack,flagMouseenter) {
|
|
127
|
+
export function RouterClickHandler(field, submitData, action, model, source, callBack, flagMouseenter) {
|
|
128
128
|
if (source == 'form') {
|
|
129
129
|
model.scripts.$fd = field.id;
|
|
130
130
|
model.scripts.$result = [];
|
|
@@ -144,7 +144,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
144
144
|
//action有值,提交到后台
|
|
145
145
|
if (field.action) {
|
|
146
146
|
if (common.flagApp()) {
|
|
147
|
-
showLoadingToast({ message:common.LocalizedString('正在处理', '正在處理')
|
|
147
|
+
showLoadingToast({ message: common.LocalizedString('正在处理', '正在處理'), forbidClick: true, duration: 100000 });
|
|
148
148
|
}
|
|
149
149
|
field.disabled = true;//提交按钮禁用
|
|
150
150
|
model.pageDisabled = true;
|
|
@@ -424,20 +424,20 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
424
424
|
common.getDataDrivenOpts().handler.openTabSearch(field, submitData);
|
|
425
425
|
}
|
|
426
426
|
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
427
|
-
if(common.getDataDrivenOpts().handler.openUrlInBrowse){
|
|
427
|
+
if (common.getDataDrivenOpts().handler.openUrlInBrowse) {
|
|
428
428
|
common.getDataDrivenOpts().handler.openUrlInBrowse(submitData[field.submitFormField]);
|
|
429
429
|
}
|
|
430
|
-
else{
|
|
430
|
+
else {
|
|
431
431
|
window.open(submitData[field.submitFormField], "_blank");
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
else if (field.isBrowserNewTab) {// 浏览器打开
|
|
435
435
|
submitData = field.getActionPara(submitData).para;
|
|
436
436
|
let query = common.objectToQueryStr(submitData);
|
|
437
|
-
if(common.getDataDrivenOpts().handler.openUrlInBrowse){
|
|
437
|
+
if (common.getDataDrivenOpts().handler.openUrlInBrowse) {
|
|
438
438
|
common.getDataDrivenOpts().handler.openUrlInBrowse(action + query);
|
|
439
439
|
}
|
|
440
|
-
else{
|
|
440
|
+
else {
|
|
441
441
|
window.open(action + query, "_blank");
|
|
442
442
|
}
|
|
443
443
|
}
|
|
@@ -520,10 +520,10 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
520
520
|
},
|
|
521
521
|
],
|
|
522
522
|
};
|
|
523
|
-
if(flagMouseenter&&callBack){
|
|
523
|
+
if (flagMouseenter && callBack) {
|
|
524
524
|
callBack(dialogOption.content[0])
|
|
525
525
|
}
|
|
526
|
-
else{
|
|
526
|
+
else {
|
|
527
527
|
common.openDialog(dialogOption);
|
|
528
528
|
}
|
|
529
529
|
}
|
|
@@ -664,10 +664,10 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
664
664
|
else {
|
|
665
665
|
field.loading = true;
|
|
666
666
|
if (!field.flagAlert && field.content) {
|
|
667
|
-
common.message(
|
|
667
|
+
common.message(field.content, 'info', 1500, true)
|
|
668
668
|
}
|
|
669
669
|
field.doBlobAction(submitData, (data, headers) => {
|
|
670
|
-
field.loading=false;
|
|
670
|
+
field.loading = false;
|
|
671
671
|
if (data.type == "application/json") {
|
|
672
672
|
const reader = new FileReader();
|
|
673
673
|
reader.readAsText(data, 'utf-8');
|
|
@@ -772,10 +772,10 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
772
772
|
},
|
|
773
773
|
}]
|
|
774
774
|
};
|
|
775
|
-
if(flagMouseenter&&callBack){
|
|
775
|
+
if (flagMouseenter && callBack) {
|
|
776
776
|
callBack(dialogOption.content[0])
|
|
777
777
|
}
|
|
778
|
-
else{
|
|
778
|
+
else {
|
|
779
779
|
common.openDialog(dialogOption);
|
|
780
780
|
}
|
|
781
781
|
}
|
|
@@ -798,10 +798,10 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
798
798
|
},
|
|
799
799
|
}]
|
|
800
800
|
};
|
|
801
|
-
if(flagMouseenter&&callBack){
|
|
801
|
+
if (flagMouseenter && callBack) {
|
|
802
802
|
callBack(dialogOption.content[0])
|
|
803
803
|
}
|
|
804
|
-
else{
|
|
804
|
+
else {
|
|
805
805
|
common.openDialog(dialogOption);
|
|
806
806
|
}
|
|
807
807
|
}
|
|
@@ -846,20 +846,30 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
846
846
|
},
|
|
847
847
|
}]
|
|
848
848
|
};
|
|
849
|
-
if(flagMouseenter&&callBack){
|
|
849
|
+
if (flagMouseenter && callBack) {
|
|
850
850
|
callBack(dialogOption.content[0])
|
|
851
851
|
}
|
|
852
|
-
else{
|
|
852
|
+
else {
|
|
853
853
|
common.openDialog(dialogOption);
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
856
|
else {
|
|
857
857
|
if (source == 'table') {
|
|
858
|
-
|
|
858
|
+
model.$vue.operationLoading = true
|
|
859
859
|
}
|
|
860
860
|
else {
|
|
861
|
-
|
|
861
|
+
submitData = field.getActionPara(submitData).para;
|
|
862
|
+
if (field.is == 'ct-button' && field.isButton) {
|
|
863
|
+
field.loading = true;
|
|
864
|
+
var fieldButton = model.fields.find((v) => {
|
|
865
|
+
return v.fieldName1 === field.key;
|
|
866
|
+
});
|
|
867
|
+
if (fieldButton) {
|
|
868
|
+
fieldButton.loading = true;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
862
871
|
}
|
|
872
|
+
|
|
863
873
|
field.doAction(submitData, (data) => {
|
|
864
874
|
if (source == 'table') {
|
|
865
875
|
model.$vue.operationLoading = false
|
|
@@ -904,6 +914,15 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
904
914
|
}
|
|
905
915
|
}
|
|
906
916
|
else {
|
|
917
|
+
if (field.is == 'ct-button' && field.isButton) {
|
|
918
|
+
field.loading = false;
|
|
919
|
+
var fieldButton = model.fields.find((v) => {
|
|
920
|
+
return v.fieldName1 === field.key;
|
|
921
|
+
});
|
|
922
|
+
if (fieldButton) {
|
|
923
|
+
fieldButton.loading = false;
|
|
924
|
+
}
|
|
925
|
+
}
|
|
907
926
|
if (data.rtnCode === Enum.ReturnCode.Successful || data.isSuccess) {
|
|
908
927
|
if (callBack) {
|
|
909
928
|
callBack(data);
|
package/src/views/Form.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="data-driven" id="app-form" >
|
|
3
3
|
|
|
4
|
-
<ct-form :api="'/
|
|
4
|
+
<ct-form :api="'/EmployeeAttendanceBillApply/getLayoutOfNew'" :apiParam="apiParam" :flagNavbar="true"></ct-form>
|
|
5
5
|
<!-- <ct-form :api="'/api/third-dept-tran/tran-comm-adjust/task'" :apiParam="apiParam"></ct-form> -->
|
|
6
6
|
<!-- <ct-form :api="'/PropertyTranToActive/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
|
|
7
7
|
<!-- <ct-textbox :source="source"></ct-textbox> -->
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
</template>
|
|
11
11
|
<script lang="ts" setup>
|
|
12
12
|
//const apiParam={"originalTraId":"1739561435204980737","actionType":1,"pageStyle":2,"pageTitle":"成交报告","pageOnly":true}
|
|
13
|
-
const apiParam={"actionType":2
|
|
13
|
+
const apiParam={"actionType":2}
|
|
14
14
|
</script>
|