centaline-data-driven 1.2.93 → 1.2.94
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/build/centaline/centaline.path.js +1 -0
- package/package.json +1 -1
- package/src/Form.vue +6 -17
- package/src/SearchList.vue +0 -2
- package/src/centaline/browseVideo/index.js +11 -0
- package/src/centaline/browseVideo/src/browseVideo.vue +30 -0
- package/src/centaline/common/index.js +28 -1
- package/src/centaline/dynamicContact/src/dynamicContact.vue +3 -0
- package/src/centaline/dynamicDetail/src/dynamicContactList.vue +3 -0
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +15 -1
- package/src/centaline/dynamicDetail/src/dynamicPropertySimpleDetailRET.vue +3 -0
- package/src/centaline/dynamicForm/src/dynamicForm.vue +3 -0
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchList.vue +1 -1
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchListTable.vue +5 -2
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +5 -28
- package/src/centaline/loader/src/ctl/Form.js +6 -0
- package/src/centaline/loader/src/ctl/SearchTable.js +6 -1
- 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
|
@@ -44,6 +44,7 @@ const paths = {
|
|
|
44
44
|
"dynamicCompound": "./src/centaline/dynamicCompound/index.js",//复合控件
|
|
45
45
|
"dynamicContact": "./src/centaline/dynamicContact/index.js",//联系人电话
|
|
46
46
|
"dynamicLayout": "./src/centaline/dynamicLayout/index.js",//Layout组件
|
|
47
|
+
"browseVideo": "./src/centaline/browseVideo/index.js",//确认框组件
|
|
47
48
|
},
|
|
48
49
|
"plugs": {
|
|
49
50
|
"api": "./src/centaline/api/index.js",//调用API插件
|
package/package.json
CHANGED
package/src/Form.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div id="app-form" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
3
|
<!-- <ct-form :api="'/PropertyRET/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
|
|
4
4
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
5
|
-
<ct-form :api="'/
|
|
5
|
+
<ct-form :api="'/api/third-dept-tran/transaction/detail'" :apiParam="apiParam"></ct-form>
|
|
6
6
|
<!--<ct-form :api="'api/Form/formdata'"></ct-form>-->
|
|
7
7
|
<ct-dialog-list></ct-dialog-list>
|
|
8
8
|
</div>
|
|
@@ -13,23 +13,12 @@
|
|
|
13
13
|
name: 'App',
|
|
14
14
|
data() {
|
|
15
15
|
return {
|
|
16
|
-
// apiParam: {profitReturnId: "1504359257134055426", actionType: 1, pageStyle: 2, pageTitle: "查看返利", pageOnly: true} ,
|
|
17
|
-
// apiParam: {headerParam: {}, urlParam: {contractID: "06cad32e-4d0d-4b6f-bd24-16a28629a550", actionType: "0"}}
|
|
18
|
-
// apiParam: {originalTraId: "1475658732246241281", actionType: 2, chanceID: "1"} ,
|
|
19
|
-
// apiParam: {originalTraId: "1516290587463507969", actionType: "3", pageStyle: "2", pageTitle: "成交报告",pageOnly: "true"}
|
|
20
16
|
apiParam:{
|
|
21
|
-
actionType:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
groupName: "estateId",
|
|
27
|
-
operation: 2,
|
|
28
|
-
searchDataType: 3,
|
|
29
|
-
searchValue1: "201703020943128D8A8FCF463E4016D6"
|
|
30
|
-
}]
|
|
31
|
-
}
|
|
32
|
-
}
|
|
17
|
+
actionType: 3,
|
|
18
|
+
originalTraId: "1530076554013306882",
|
|
19
|
+
pageOnly: true,
|
|
20
|
+
pageStyle: 2,
|
|
21
|
+
pageTitle: "成交报告",
|
|
33
22
|
}
|
|
34
23
|
}
|
|
35
24
|
},
|
package/src/SearchList.vue
CHANGED
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
:searchStatsApi="'/exampleList/getListStats'"
|
|
14
14
|
></ct-searchlist>
|
|
15
15
|
|
|
16
|
-
<!--<ct-searchlist :searchConditionApi="'/api/invoice-info/search-condition'" :searchDataApi="'/api/invoice-info/list'" :searchDataStatisticsApi="'api/ContractList/GetLayoutOfStatisticsTool'" :apiParam="para"></ct-searchlist>-->
|
|
17
|
-
<!-- <ct-searchlist :searchConditionApi="'/PropertyStatusList/getLayoutOfSearch'" :searchDataApi="'/PropertyStatusList/getListOfSearchModel'" :apiParam="para"></ct-searchlist> -->
|
|
18
16
|
<ct-dialog-list></ct-dialog-list>
|
|
19
17
|
</div>
|
|
20
18
|
</template>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import browseVideo from './src/browseVideo'
|
|
2
|
+
|
|
3
|
+
browseVideo.install = function (Vue) {
|
|
4
|
+
Vue.component(browseVideo.name, browseVideo);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
8
|
+
window.Vue.use(browseVideo);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default browseVideo;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="alert fade in" role="alert" style="padding:0px;border-bottom:none;display: table-caption;margin-left: 5px;">
|
|
4
|
+
<video :src="submitData[router.submitFormField]" controls="true" autoplay controlslist="nodownload"
|
|
5
|
+
:height="router.dialogHeight?router.dialogHeight-10:'40'" :width="router.dialogWidth?router.dialogWidth-10:'100%'">您的浏览器不支持 video 标签。
|
|
6
|
+
</video>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
<script>
|
|
11
|
+
export default {
|
|
12
|
+
name: 'ct-video',
|
|
13
|
+
props: {
|
|
14
|
+
router: Object,
|
|
15
|
+
submitData: Object,
|
|
16
|
+
},
|
|
17
|
+
data() {
|
|
18
|
+
return {
|
|
19
|
+
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
methods: {
|
|
23
|
+
clickHandler(ev, v) {
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
<style scoped>
|
|
29
|
+
|
|
30
|
+
</style>
|
|
@@ -215,7 +215,10 @@ const common = {
|
|
|
215
215
|
*/
|
|
216
216
|
closeDialog(vmodel) {
|
|
217
217
|
if (vmodel) {
|
|
218
|
-
if (vmodel.name === 'ct-comfirm'
|
|
218
|
+
if (vmodel.name === 'ct-comfirm'
|
|
219
|
+
|| vmodel.$options.name === 'ctDialog'
|
|
220
|
+
|| vmodel.$options.name === 'ct-dialog'
|
|
221
|
+
|| vmodel.$options.name === 'ct-video') {
|
|
219
222
|
this.dialogList.deleteDialog(vmodel);
|
|
220
223
|
return;
|
|
221
224
|
}
|
|
@@ -269,6 +272,30 @@ const common = {
|
|
|
269
272
|
|
|
270
273
|
},
|
|
271
274
|
|
|
275
|
+
browseVideo(router, submitData) {
|
|
276
|
+
let self = this;
|
|
277
|
+
|
|
278
|
+
return new Promise((resolve, reject) => {
|
|
279
|
+
var dialogOption = {
|
|
280
|
+
title: router.pageTitle,
|
|
281
|
+
name: 'ct-video',
|
|
282
|
+
vmodel: {},
|
|
283
|
+
content: [{
|
|
284
|
+
component: 'ct-video',
|
|
285
|
+
attrs: {
|
|
286
|
+
router: router,
|
|
287
|
+
submitData: submitData,
|
|
288
|
+
width: router.dialogWidth + 'px',
|
|
289
|
+
height: router.dialogHeight + 'px'
|
|
290
|
+
},
|
|
291
|
+
on: {
|
|
292
|
+
}
|
|
293
|
+
}]
|
|
294
|
+
};
|
|
295
|
+
this.openDialog(dialogOption);
|
|
296
|
+
})
|
|
297
|
+
},
|
|
298
|
+
|
|
272
299
|
/**
|
|
273
300
|
* @method
|
|
274
301
|
* @param {Object} evControl 指定Vue对象
|
|
@@ -261,6 +261,9 @@
|
|
|
261
261
|
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
262
262
|
window.open(submitData[field.submitFormField], "_blank");
|
|
263
263
|
}
|
|
264
|
+
else if (field.isSeeVoice) {//看视频
|
|
265
|
+
self.$common.browseVideo(field,submitData)
|
|
266
|
+
}
|
|
264
267
|
else{
|
|
265
268
|
field.doAction(submitData, (data) => {
|
|
266
269
|
self.model.doAction(data,field);
|
|
@@ -402,6 +402,9 @@
|
|
|
402
402
|
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
403
403
|
window.open(submitData[field.submitFormField], "_blank");
|
|
404
404
|
}
|
|
405
|
+
else if (field.isSeeVoice) {//看视频
|
|
406
|
+
self.$common.browseVideo(field,submitData)
|
|
407
|
+
}
|
|
405
408
|
else{
|
|
406
409
|
field.doAction(submitData, (data) => {
|
|
407
410
|
self.model.doAction(data,field);
|
|
@@ -217,7 +217,18 @@
|
|
|
217
217
|
</div>
|
|
218
218
|
</div>
|
|
219
219
|
<div v-else class="el-tabs__content" :key="model.tags2Key">
|
|
220
|
-
<div v-
|
|
220
|
+
<div v-if="col.list" role="tabpanel" aria-labelledby="tab-first" class="el-tab-pane">
|
|
221
|
+
<div v-for="(info, i) in col.list" :key="i" class="tab-conten">
|
|
222
|
+
<img :src="info.dutyEmpUrl">
|
|
223
|
+
<div class="user-name" style="display: block;padding-top: 5px;">
|
|
224
|
+
<div style="display: flex;">
|
|
225
|
+
<div class="text">{{info.dutyEmpName}}</div>
|
|
226
|
+
<span class="user-but">{{info.dutyDeptName}}</span>
|
|
227
|
+
</div>
|
|
228
|
+
<div class="text">{{info.mobileNo}}</div>
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
</div>
|
|
221
232
|
</div>
|
|
222
233
|
</el-tab-pane>
|
|
223
234
|
</el-tabs>
|
|
@@ -587,6 +598,9 @@
|
|
|
587
598
|
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
588
599
|
window.open(submitData[field.submitFormField], "_blank");
|
|
589
600
|
}
|
|
601
|
+
else if (field.isSeeVoice) {//看视频
|
|
602
|
+
self.$common.browseVideo(field,submitData)
|
|
603
|
+
}
|
|
590
604
|
else{
|
|
591
605
|
field.doAction(submitData, (data) => {
|
|
592
606
|
self.model.doAction(data,field);
|
|
@@ -401,6 +401,9 @@
|
|
|
401
401
|
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
402
402
|
window.open(submitData[field.submitFormField], "_blank");
|
|
403
403
|
}
|
|
404
|
+
else if (field.isSeeVoice) {//看视频
|
|
405
|
+
self.$common.browseVideo(field,submitData)
|
|
406
|
+
}
|
|
404
407
|
else{
|
|
405
408
|
field.doAction(submitData, (data) => {
|
|
406
409
|
self.model.doAction(data,field);
|
|
@@ -402,6 +402,9 @@
|
|
|
402
402
|
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
403
403
|
window.open(submitData[field.submitFormField], "_blank");
|
|
404
404
|
}
|
|
405
|
+
else if (field.isSeeVoice) {//看视频
|
|
406
|
+
self.$common.browseVideo(field,submitData)
|
|
407
|
+
}
|
|
405
408
|
else if (field.isExport) {
|
|
406
409
|
submitData = field.getActionPara(submitData).para;
|
|
407
410
|
self.model.export(field, submitData);
|
|
@@ -182,9 +182,10 @@
|
|
|
182
182
|
c.width = (c.maxLen + 2) * 6;
|
|
183
183
|
});
|
|
184
184
|
},
|
|
185
|
-
searchComplate(searchModel) {
|
|
185
|
+
searchComplate(searchModel,flagSearch) {
|
|
186
186
|
var self = this;
|
|
187
187
|
this.loading = true;
|
|
188
|
+
if(flagSearch==undefined)flagSearch=true;
|
|
188
189
|
this.$nextTick(function () {
|
|
189
190
|
if (typeof self.api !== 'undefined' && typeof searchModel !== 'undefined') {
|
|
190
191
|
var postData;
|
|
@@ -205,7 +206,9 @@
|
|
|
205
206
|
}
|
|
206
207
|
postData.fields.push(retains);
|
|
207
208
|
}
|
|
208
|
-
self.loaderObj.SearchTable(self.api, self.load, searchModel,
|
|
209
|
+
self.loaderObj.SearchTable(self.api, self.load, searchModel, flagSearch, postData,function(){
|
|
210
|
+
self.loading = false;
|
|
211
|
+
});
|
|
209
212
|
}
|
|
210
213
|
if (typeof self.source !== 'undefined') {
|
|
211
214
|
self.load(self.loaderObj.SearchTable(self.source));
|
|
@@ -757,34 +757,8 @@
|
|
|
757
757
|
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
758
758
|
window.open(submitData[field.submitFormField], "_blank");
|
|
759
759
|
}
|
|
760
|
-
else if (field.isSeeVoice
|
|
761
|
-
|
|
762
|
-
title: field.pageTitle,
|
|
763
|
-
pane: self.$common.getParentPane(self),
|
|
764
|
-
content: [{
|
|
765
|
-
component: 'ct-form',
|
|
766
|
-
attrs: {
|
|
767
|
-
//ssource: data.content,
|
|
768
|
-
api: field.action,
|
|
769
|
-
apiParam: field.getActionPara(submitData).para,
|
|
770
|
-
showTitle: false,
|
|
771
|
-
width: field.dialogWidth + 'px',
|
|
772
|
-
height: field.dialogHeight + 'px'
|
|
773
|
-
},
|
|
774
|
-
on: {
|
|
775
|
-
submit(ev) {
|
|
776
|
-
self.model.updateFields(ev, () => {
|
|
777
|
-
self.$refs.Fields.forEach((fd) => {
|
|
778
|
-
fd.$forceUpdate();
|
|
779
|
-
});
|
|
780
|
-
});
|
|
781
|
-
self.$common.closeDialog(dialogOption.dialog);
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
}]
|
|
785
|
-
};
|
|
786
|
-
self.$common.openDialog(dialogOption);
|
|
787
|
-
window.open(submitData[field.submitFormField], "_blank");
|
|
760
|
+
else if (field.isSeeVoice) {//看视频
|
|
761
|
+
self.$common.browseVideo(field,submitData)
|
|
788
762
|
}
|
|
789
763
|
else {
|
|
790
764
|
//self.operationLoading = true;
|
|
@@ -967,6 +941,9 @@
|
|
|
967
941
|
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
968
942
|
window.open(submitData[field.submitFormField], "_blank");
|
|
969
943
|
}
|
|
944
|
+
else if (field.isSeeVoice) {//看视频
|
|
945
|
+
self.$common.browseVideo(field,submitData)
|
|
946
|
+
}
|
|
970
947
|
else {
|
|
971
948
|
//self.operationLoading = true;
|
|
972
949
|
|
|
@@ -13,6 +13,12 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
13
13
|
get source() {
|
|
14
14
|
return source;
|
|
15
15
|
},
|
|
16
|
+
get flagSearch() {
|
|
17
|
+
if(source.flagSearch!=undefined){
|
|
18
|
+
return source.flagSearch;
|
|
19
|
+
}
|
|
20
|
+
return true;
|
|
21
|
+
},
|
|
16
22
|
get title() {
|
|
17
23
|
return source.title;
|
|
18
24
|
},
|
|
@@ -4,7 +4,7 @@ import Router from './Router';
|
|
|
4
4
|
import Vue from 'vue';
|
|
5
5
|
import Enum from './lib/Enum';
|
|
6
6
|
import formData from '../../../formData';
|
|
7
|
-
const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSearchData) {
|
|
7
|
+
const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSearchData,postThenHandler) {
|
|
8
8
|
var init = function (source) {
|
|
9
9
|
var rtn = {
|
|
10
10
|
$vue: null,
|
|
@@ -890,6 +890,11 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
890
890
|
callBack(rtn);
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
|
+
else{
|
|
894
|
+
if(postThenHandler){
|
|
895
|
+
postThenHandler();
|
|
896
|
+
}
|
|
897
|
+
}
|
|
893
898
|
}
|
|
894
899
|
);
|
|
895
900
|
}
|
package/src/main.js
CHANGED
|
@@ -12,10 +12,10 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
12
12
|
// 关闭生产模式下给出的提示
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
|
-
baseUrl: "http://10.88.22.
|
|
15
|
+
baseUrl: "http://10.88.22.46:7070/v1/form/router",
|
|
16
16
|
// baseUrl: "http://10.88.23.22:9999/v1/form/router",
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
baseUrl: "http://10.88.22.69:8080/",
|
|
18
|
+
flagRouterSelf: true,
|
|
19
19
|
zindex: 999,
|
|
20
20
|
showRequestErrorMessage: true,
|
|
21
21
|
handler: {
|
|
@@ -39,7 +39,7 @@ Vue.use(centaline, {
|
|
|
39
39
|
// 获取请求头
|
|
40
40
|
getRequestHeaders: function () {
|
|
41
41
|
return {
|
|
42
|
-
oldToken: '
|
|
42
|
+
oldToken: '059a0de9-385e-49d1-85a7-c04e4c1c0a18',
|
|
43
43
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
44
44
|
EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
|
|
45
45
|
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6Ijc4N2U5ZDA1LThlMGItNDY0ZS1iMThjLTQzNjEyZWIyZDQ1ZCJ9.1W1c_YwAF9jfjAtOq9twaB6FH4KiySPuZmWIzcLSDxjfJTgXu7fcf4Cu8kyWcRC2bXrzNQoOYsHAR1vfMAQvGA',
|