centaline-data-driven 1.3.32 → 1.3.35
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/package.json +1 -1
- package/src/Form.vue +6 -2
- package/src/centaline/api/index.js +10 -2
- package/src/centaline/dynamicForm/src/dynamicForm.vue +74 -5
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +2 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +101 -43
- package/src/centaline/dynamicSearchList/src/dynamicTableToolbar.vue +2 -2
- package/src/centaline/loader/src/ctl/FormList.js +53 -21
- package/src/centaline/loader/src/ctl/SearchScreen.js +33 -15
- package/src/centaline/loader/src/ctl/SearchTable.js +7 -8
- package/src/centaline/progress/src/progress.vue +31 -9
- package/src/main.js +4 -4
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -558,7 +558,11 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
558
558
|
var self = this;
|
|
559
559
|
var searchFields = {
|
|
560
560
|
fields: []
|
|
561
|
-
};
|
|
561
|
+
};
|
|
562
|
+
//this.searchModel ? this.searchModel.searchData : { fields: [] };
|
|
563
|
+
if(this.searchModel && this.searchModel.searchDataOfHide){
|
|
564
|
+
searchFields=this.searchModel.searchDataOfHide
|
|
565
|
+
}
|
|
562
566
|
var searchValue1 = router.flagAddRowAfterAction ? rtnData.responseData.content : rtn.listData[rtn.selectIndex][self.primaryKey];
|
|
563
567
|
if (self.primaryKey) {
|
|
564
568
|
searchFields.fields.push({
|
|
@@ -835,12 +839,6 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
835
839
|
}
|
|
836
840
|
});
|
|
837
841
|
},
|
|
838
|
-
export (btn, submitData) {
|
|
839
|
-
Vue.prototype.$api.postHandler(common.globalUri(), {
|
|
840
|
-
action: btn.action,
|
|
841
|
-
para: submitData
|
|
842
|
-
});
|
|
843
|
-
},
|
|
844
842
|
_scripts: null,
|
|
845
843
|
get scripts() {
|
|
846
844
|
if (rtn._scripts !== null) {
|
|
@@ -914,7 +912,8 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
914
912
|
}
|
|
915
913
|
}
|
|
916
914
|
);
|
|
917
|
-
}
|
|
915
|
+
}
|
|
916
|
+
else {
|
|
918
917
|
return init(data);
|
|
919
918
|
}
|
|
920
919
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="ct-progress">
|
|
3
|
-
<div>
|
|
4
|
-
<el-progress
|
|
5
|
-
<span>{{message}}</span>
|
|
3
|
+
<div style="padding: 5px;">
|
|
4
|
+
<el-progress type="circle" :percentage="percentage"></el-progress>
|
|
5
|
+
<span class="progressMsg">{{ message }}</span>
|
|
6
6
|
</div>
|
|
7
7
|
</div>
|
|
8
8
|
</template>
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
props: {
|
|
14
14
|
progressAction: String,
|
|
15
15
|
progressKey: String,
|
|
16
|
+
progressType: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: 'export'
|
|
19
|
+
},
|
|
16
20
|
},
|
|
17
21
|
data() {
|
|
18
22
|
return {
|
|
@@ -39,21 +43,31 @@
|
|
|
39
43
|
|
|
40
44
|
this.$api.postHandler(this.$common.globalUri(), params, null).then((response) => {
|
|
41
45
|
const data = response.content;
|
|
42
|
-
if (data
|
|
43
|
-
|
|
46
|
+
if (data) {
|
|
47
|
+
if(data.processTaskName){
|
|
48
|
+
self.message = data.processTaskName;
|
|
49
|
+
}
|
|
50
|
+
else if(data.rtnMsg){
|
|
51
|
+
self.message = data.rtnMsg;
|
|
52
|
+
}
|
|
53
|
+
else if(response.rtnMsg){
|
|
54
|
+
self.message = response.rtnMsg;
|
|
55
|
+
}
|
|
44
56
|
}
|
|
45
|
-
if (response.rtnCode === 200) {
|
|
57
|
+
if (response.rtnCode === 200 && data.rtnCode === 200) {
|
|
46
58
|
this.percentage = data.percentage;
|
|
47
59
|
if (data.flagFinished) {
|
|
48
|
-
|
|
49
|
-
|
|
60
|
+
if(this.progressType=='export'){
|
|
61
|
+
window.open(data.content, "_blank");
|
|
62
|
+
}
|
|
63
|
+
setTimeout(() => { self.$emit('finished',data); }, 800);
|
|
50
64
|
}
|
|
51
65
|
else {
|
|
52
66
|
setTimeout(() => { self.getApiData() }, 1000);
|
|
53
67
|
}
|
|
54
68
|
}
|
|
55
69
|
else {
|
|
56
|
-
|
|
70
|
+
self.$emit('error',data);
|
|
57
71
|
}
|
|
58
72
|
});
|
|
59
73
|
}
|
|
@@ -67,4 +81,12 @@
|
|
|
67
81
|
}
|
|
68
82
|
</script>
|
|
69
83
|
<style>
|
|
84
|
+
.ct-progress {
|
|
85
|
+
text-align: center;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.progressMsg {
|
|
89
|
+
margin-top: 5px;
|
|
90
|
+
display: block;
|
|
91
|
+
}
|
|
70
92
|
</style>
|
package/src/main.js
CHANGED
|
@@ -12,11 +12,11 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
12
12
|
// 关闭生产模式下给出的提示
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
|
-
|
|
15
|
+
baseUrl: "http://10.88.22.46:7070/v1/form/router",
|
|
16
16
|
// baseUrl: "http://10.88.23.22:9999/v1/form/router",
|
|
17
17
|
// baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
18
|
-
baseUrl: "http://10.88.22.69:8080/",
|
|
19
|
-
flagRouterSelf: true,
|
|
18
|
+
// baseUrl: "http://10.88.22.69:8080/",
|
|
19
|
+
// flagRouterSelf: true,
|
|
20
20
|
zindex: 999,
|
|
21
21
|
showRequestSuccessMessage: true,
|
|
22
22
|
showRequestErrorMessage: true,
|
|
@@ -41,7 +41,7 @@ Vue.use(centaline, {
|
|
|
41
41
|
// 获取请求头
|
|
42
42
|
getRequestHeaders: function () {
|
|
43
43
|
return {
|
|
44
|
-
oldToken: '
|
|
44
|
+
oldToken: 'a0c6a2be-f79e-47ea-8490-212d5f4f4ff4',
|
|
45
45
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
46
46
|
EstateInfo: ' {"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
|
|
47
47
|
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjYzMzZiMDJiLTZjOGEtNDIzNC05MGQ5LTliYWI2MTIyNTQzNyJ9.hOxMvGLm03QMPu9C4lgRzkEHC7ECqxJ_L6mfqQRqv39xJ42I8gzSRO-E68vWp-A99ewnxnqvTZ6H_6fOQ9DljQ',
|