centaline-data-driven-v3 0.1.7 → 0.1.9
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 +75 -75
- package/package.json +1 -1
- package/src/components/web/SearchList/SearchTable.vue +0 -2
- package/src/loader/src/Canlendar.js +1 -1
- package/src/loader/src/Form.js +2 -2
- package/src/loader/src/SearchStats.js +2 -1
- package/src/loader/src/SearchTable.js +2 -1
- package/src/loader/src/Tree.js +1 -1
- package/src/utils/request.js +2 -0
package/package.json
CHANGED
|
@@ -500,7 +500,6 @@ function toolbarClickHandler(field) {
|
|
|
500
500
|
}
|
|
501
501
|
//导入
|
|
502
502
|
function importComplete(res, field) {
|
|
503
|
-
debugger
|
|
504
503
|
if (res && res.rtnCode && res.rtnCode === 201) {
|
|
505
504
|
if (res.rtnMsg) {
|
|
506
505
|
ElMessage({
|
|
@@ -519,7 +518,6 @@ function importComplete(res, field) {
|
|
|
519
518
|
});
|
|
520
519
|
}
|
|
521
520
|
if (field.flagAsync) {
|
|
522
|
-
debugger
|
|
523
521
|
if (res.rtnCode && res.rtnCode === 202 && res.rtnMsg) {
|
|
524
522
|
common.confirm(res.rtnMsg, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
|
525
523
|
if (res.content && res.content.action) {
|
|
@@ -4,7 +4,7 @@ import request from '../../utils/request';
|
|
|
4
4
|
import Router from './Router';
|
|
5
5
|
|
|
6
6
|
function loadCanlendarApi(action, searchModel, flagSearch, callBack, postThenHandler) {
|
|
7
|
-
|
|
7
|
+
var apiData = searchModel?.searchData ? searchModel.searchData : {};
|
|
8
8
|
request.postHandler(common.globalUri(), {
|
|
9
9
|
action: action,
|
|
10
10
|
para: {
|
package/src/loader/src/Form.js
CHANGED
|
@@ -723,7 +723,7 @@ function loadFromModel(source, isFormList) {
|
|
|
723
723
|
return rtn._scripts;
|
|
724
724
|
}
|
|
725
725
|
else {
|
|
726
|
-
if (typeof source.scripts !== 'undefined') {
|
|
726
|
+
if (source&&typeof source.scripts !== 'undefined') {
|
|
727
727
|
rtn._scripts = base.common.eval(source.scripts);
|
|
728
728
|
return rtn._scripts;
|
|
729
729
|
}
|
|
@@ -747,7 +747,7 @@ function loadFromModel(source, isFormList) {
|
|
|
747
747
|
}
|
|
748
748
|
else {
|
|
749
749
|
let aiattr = { showAI: false, width: 0 };
|
|
750
|
-
if (source
|
|
750
|
+
if (source?.aiChat) {
|
|
751
751
|
aiattr.showAI = true;
|
|
752
752
|
aiattr.width = parseFloat(source.aiChat.width || 300);
|
|
753
753
|
}
|
|
@@ -4,7 +4,8 @@ import request from '../../utils/request';
|
|
|
4
4
|
import Router from './Router';
|
|
5
5
|
|
|
6
6
|
function loadSearchStatsApi(action, callBack, searchModel, defaultSearchData) {
|
|
7
|
-
|
|
7
|
+
var apiData = searchModel?.searchData ? searchModel.searchData : {};
|
|
8
|
+
|
|
8
9
|
request.postHandler(common.globalUri(),
|
|
9
10
|
{
|
|
10
11
|
action: action,
|
|
@@ -4,7 +4,8 @@ import request from '../../utils/request';
|
|
|
4
4
|
import Router from './Router';
|
|
5
5
|
|
|
6
6
|
function loadSearchTableApi(action, callBack, searchModel, flagSearch, defaultSearchData, postThenHandler, searchAction) {
|
|
7
|
-
|
|
7
|
+
var apiData = searchModel?.searchData ? searchModel.searchData : {};
|
|
8
|
+
|
|
8
9
|
request.postHandler(common.globalUri(), {
|
|
9
10
|
action: action,
|
|
10
11
|
para: {
|
package/src/loader/src/Tree.js
CHANGED
|
@@ -5,7 +5,7 @@ import Router from './Router';
|
|
|
5
5
|
|
|
6
6
|
function loadSearchTreeApi(action, searchModel) {
|
|
7
7
|
return new Promise((resolve, reject) => {
|
|
8
|
-
var apiData = searchModel ? searchModel.searchData : {};
|
|
8
|
+
var apiData = searchModel?.searchData ? searchModel.searchData : {};
|
|
9
9
|
request.postHandler(common.globalUri(),
|
|
10
10
|
{
|
|
11
11
|
action: action,
|
package/src/utils/request.js
CHANGED
|
@@ -128,6 +128,7 @@ const request = {
|
|
|
128
128
|
return Promise.resolve(response.data, response.headers);
|
|
129
129
|
},
|
|
130
130
|
postHandler(url, params, scripts) {
|
|
131
|
+
console.log("postHandler-----",params);
|
|
131
132
|
if (params.action.indexOf('http://') > -1 || params.action.indexOf('https://') > -1) {
|
|
132
133
|
url = params.action;
|
|
133
134
|
params = params.para;
|
|
@@ -136,6 +137,7 @@ const request = {
|
|
|
136
137
|
url = url + (url == '' || url.substr(-1) == '/' ? '' : '/') + (params.action.charAt(0) == '/' ? params.action.substr(1) : params.action);
|
|
137
138
|
params = params.para;
|
|
138
139
|
}
|
|
140
|
+
console.log("-----",params);
|
|
139
141
|
return Axios.post(url, params, {
|
|
140
142
|
headers: common.getDataDrivenOpts().handler.getRequestHeaders(),
|
|
141
143
|
}).then((response) => {
|