centaline-data-driven 1.2.88 → 1.2.91
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/Detail.vue +1 -1
- package/src/Form.vue +13 -7
- package/src/centaline/common/index.js +0 -2
- package/src/centaline/dynamicForm/src/dynamicForm.vue +25 -7
- package/src/centaline/dynamicT/src/dynamicT.vue +3 -1
- package/src/centaline/loader/src/ctl/Router.js +3 -0
- package/src/centaline/templateControls/src/dynamicTableCurrency.vue +38 -9
- package/src/main.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/src/Detail.vue
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="'/salematter/agent/readDetail'" :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>
|
|
@@ -18,12 +18,18 @@
|
|
|
18
18
|
// apiParam: {originalTraId: "1475658732246241281", actionType: 2, chanceID: "1"} ,
|
|
19
19
|
// apiParam: {originalTraId: "1516290587463507969", actionType: "3", pageStyle: "2", pageTitle: "成交报告",pageOnly: "true"}
|
|
20
20
|
apiParam:{
|
|
21
|
-
actionType:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
actionType: 2,
|
|
22
|
+
jsonData: {
|
|
23
|
+
searchFields: {
|
|
24
|
+
fields: [{
|
|
25
|
+
fieldName1: "estateId",
|
|
26
|
+
groupName: "estateId",
|
|
27
|
+
operation: 2,
|
|
28
|
+
searchDataType: 3,
|
|
29
|
+
searchValue1: "201703020943128D8A8FCF463E4016D6"
|
|
30
|
+
}]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
27
33
|
}
|
|
28
34
|
}
|
|
29
35
|
},
|
|
@@ -205,7 +205,6 @@ const common = {
|
|
|
205
205
|
* @desc 打开弹窗
|
|
206
206
|
*/
|
|
207
207
|
openDialog(vmodel) {
|
|
208
|
-
//this.dialogList.List.push(vmodel);
|
|
209
208
|
this.dialogList.addDialog(vmodel);
|
|
210
209
|
},
|
|
211
210
|
|
|
@@ -217,7 +216,6 @@ const common = {
|
|
|
217
216
|
closeDialog(vmodel) {
|
|
218
217
|
if (vmodel) {
|
|
219
218
|
if (vmodel.name === 'ct-comfirm' || vmodel.$options.name === 'ctDialog' || vmodel.$options.name === 'ct-dialog') {
|
|
220
|
-
//vmodel.dialogTableVisible = false;
|
|
221
219
|
this.dialogList.deleteDialog(vmodel);
|
|
222
220
|
return;
|
|
223
221
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<el-row v-if="collapseFieldsRow.length > 0">
|
|
12
12
|
<el-col v-for="(col, index) in collapseFieldsRow[0]" :key="index" v-if="col.show !== false" :span="col.colspan" style="padding:5px">
|
|
13
13
|
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" v-bind="col.bindPara" :from="'form'"
|
|
14
|
-
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)"
|
|
14
|
+
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
|
|
15
15
|
@input="inputHandler(col,$event)"
|
|
16
16
|
@popupSearchList="popupSearchListHandler"
|
|
17
17
|
@tableButtonClick="clickHandler"></component>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<el-row>
|
|
26
26
|
<el-col v-for="(col, index) in collapseFieldsRow[index + 1]" :key="index" :span="col.colspan" v-if="col.show !== false" style="padding:5px">
|
|
27
27
|
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" v-bind="col.bindPara" :fileData="getFileData(col)"
|
|
28
|
-
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)"
|
|
28
|
+
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
|
|
29
29
|
@input="inputHandler(col,$event)" @importComplete="importComplete"
|
|
30
30
|
@popupSearchList="popupSearchListHandler"
|
|
31
31
|
@tableButtonClick="clickHandler"></component>
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<el-row>
|
|
45
45
|
<el-col v-for="(col, index) in collapseFieldsRow[index + 1]" :key="index" :span="col.colspan" v-if="col.show !== false" style="padding:5px">
|
|
46
46
|
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" v-bind="col.bindPara" :fileData="getFileData(col)" :from="'form'"
|
|
47
|
-
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)"
|
|
47
|
+
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
|
|
48
48
|
@input="inputHandler(col,$event)" @importComplete="importComplete"
|
|
49
49
|
@popupSearchList="popupSearchListHandler"
|
|
50
50
|
@tableButtonClick="clickHandler"></component>
|
|
@@ -478,15 +478,33 @@
|
|
|
478
478
|
self.model.requiredHandle(field);
|
|
479
479
|
//self.model.validMrf(field);
|
|
480
480
|
|
|
481
|
-
if(field.
|
|
481
|
+
if(field.onAfterChanged){
|
|
482
482
|
var router =self.model.actionRouters.find((v) => {
|
|
483
|
-
return v.id === field.
|
|
483
|
+
return v.id === field.onAfterChanged;
|
|
484
484
|
});
|
|
485
485
|
self.clickHandler(router);
|
|
486
486
|
}
|
|
487
|
-
|
|
487
|
+
|
|
488
|
+
self.$forceUpdate();
|
|
489
|
+
},
|
|
490
|
+
enterHandler(field) {
|
|
491
|
+
var self = this;
|
|
492
|
+
if (typeof field.change !== 'undefined') {
|
|
493
|
+
if (typeof this.model.scripts !== 'undefined') {
|
|
494
|
+
this.model.scripts.formData.setExcuteListData(this.model.fields);
|
|
495
|
+
}
|
|
496
|
+
this.model.scripts.$fd = field.id;
|
|
497
|
+
this.$common.excute.call(this.model.scripts, field.change);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
self.model.isChanged = true;
|
|
501
|
+
self.model.hiddenHandle(field);
|
|
502
|
+
self.model.requiredHandle(field);
|
|
503
|
+
//self.model.validMrf(field);
|
|
504
|
+
|
|
505
|
+
if(field.routerKeyForEnterKey){
|
|
488
506
|
var router =self.model.actionRouters.find((v) => {
|
|
489
|
-
return v.id === field.
|
|
507
|
+
return v.id === field.routerKeyForEnterKey;
|
|
490
508
|
});
|
|
491
509
|
self.clickHandler(router);
|
|
492
510
|
}
|
|
@@ -101,6 +101,9 @@ const Router = function (source) {
|
|
|
101
101
|
get isOpenUrlInBrowse() {
|
|
102
102
|
return source.actionType === Enum.ActionType.OpenUrlInBrowse;
|
|
103
103
|
},
|
|
104
|
+
get isListenVoice() {
|
|
105
|
+
return source.actionType === Enum.ActionType.ListenVoice;
|
|
106
|
+
},
|
|
104
107
|
//打开页面(1Form,2SearchList(弹在tab),3Tab,4执行客户端脚本,5SearchList(弹出))
|
|
105
108
|
get navToNewPage() {
|
|
106
109
|
return source.navToNewPage;
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="isOperationalColumn?'subdiv_allinline':''" v-if="isShowLabel" @click="isOperationalColumn?clickHandler($event):null">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
<div v-if="router.isListenVoice">
|
|
4
|
+
<el-popover class="Stats-popover" :popper-class="'el-listenVoice'+rowindex" :placement="option.placement?option.placement:'left'"
|
|
5
|
+
v-model="visible" :trigger="option.trigger?option.trigger:''" style="margin:0px;">
|
|
6
|
+
<div class="alert fade in" role="alert" style="padding:0px;border-bottom:none;display: table-caption;">
|
|
7
|
+
<button type="button" class="close el-icon-close" style="right:0px;float:right;margin-bottom: 5px;cursor: pointer;" data-dismiss="alert" aria-label="Close" @click="clickHandler">
|
|
8
|
+
</button>
|
|
9
|
+
<video :src="rowData[router.submitFormField]" controls="true" autoplay controlslist="nodownload"
|
|
10
|
+
:height="router.dialogHeight?router.dialogHeight:'40'" :width="router.dialogWidth?router.dialogWidth:'100%'">您的浏览器不支持 video 标签。
|
|
11
|
+
</video>
|
|
12
|
+
</div>
|
|
13
|
+
<img v-if="router.imgUrl && isShowImg" slot="reference" class="ct-tablecurrencyImg ct-tablecurrencyItem" :src="router.imgUrl" :title="router.label" @click="!isOperationalColumn?clickHandler($event):null"/>
|
|
14
|
+
<a v-else slot="reference" href="javascript:void(0);" class="ct-tablecurrencyItem" @click="!isOperationalColumn?clickHandler($event):null">
|
|
15
|
+
{{label}}
|
|
16
|
+
</a>
|
|
17
|
+
</el-popover>
|
|
18
|
+
</div>
|
|
19
|
+
<div v-else>
|
|
20
|
+
<img v-if="router.imgUrl && isShowImg" class="ct-tablecurrencyImg ct-tablecurrencyItem" :src="router.imgUrl" :title="router.label" @click="!isOperationalColumn?clickHandler($event):null"/>
|
|
21
|
+
<a v-else href="javascript:void(0);" class="ct-tablecurrencyItem" @click="!isOperationalColumn?clickHandler($event):null">
|
|
22
|
+
{{label}}
|
|
23
|
+
</a>
|
|
24
|
+
</div>
|
|
7
25
|
</div>
|
|
8
26
|
</template>
|
|
9
27
|
|
|
@@ -28,10 +46,8 @@
|
|
|
28
46
|
label: function () {
|
|
29
47
|
return (typeof this.colValue === "undefined" || this.colValue === '') ? this.router.label : this.colValue
|
|
30
48
|
},
|
|
31
|
-
isShowLabel:function()
|
|
32
|
-
|
|
33
|
-
if(this.label||this.router.imgUrl)
|
|
34
|
-
{
|
|
49
|
+
isShowLabel:function(){
|
|
50
|
+
if(this.label||this.router.imgUrl){
|
|
35
51
|
return true
|
|
36
52
|
}
|
|
37
53
|
return false;
|
|
@@ -39,11 +55,24 @@
|
|
|
39
55
|
},
|
|
40
56
|
data() {
|
|
41
57
|
return {
|
|
58
|
+
visible:false,
|
|
59
|
+
option: {
|
|
60
|
+
isHidden: true,//是否开启操作栏隐藏设置,默认开启
|
|
61
|
+
showNum: 3,//如果isHidden为true时,个数大于3就会隐藏,默认是3
|
|
62
|
+
appendId: '',//将浮动栏添加到对应id或者class节点中。或者.xxx。传空字符串是添加到body中。
|
|
63
|
+
trigger: 'manual',//触发方式,传值可查看Popper UI组件trigger属性
|
|
64
|
+
placement: 'bottom-start',//方向,传值可查看Popper UI组件placement属性
|
|
65
|
+
},
|
|
42
66
|
}
|
|
43
67
|
},
|
|
44
68
|
methods: {
|
|
45
69
|
clickHandler(ev) {
|
|
46
|
-
|
|
70
|
+
if(this.router.isListenVoice){
|
|
71
|
+
this.visible=!this.visible;
|
|
72
|
+
}
|
|
73
|
+
else{
|
|
74
|
+
this.$emit('click', this.router, this.rowData,this.rowindex);
|
|
75
|
+
}
|
|
47
76
|
}
|
|
48
77
|
}
|
|
49
78
|
}
|
package/src/main.js
CHANGED
|
@@ -41,8 +41,8 @@ Vue.use(centaline, {
|
|
|
41
41
|
return {
|
|
42
42
|
oldToken: 'd7a1705d-d8f4-4fee-9778-f9f6e402eacd',
|
|
43
43
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
44
|
-
EstateInfo: '
|
|
45
|
-
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.
|
|
44
|
+
EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
|
|
45
|
+
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6Ijc4N2U5ZDA1LThlMGItNDY0ZS1iMThjLTQzNjEyZWIyZDQ1ZCJ9.1W1c_YwAF9jfjAtOq9twaB6FH4KiySPuZmWIzcLSDxjfJTgXu7fcf4Cu8kyWcRC2bXrzNQoOYsHAR1vfMAQvGA',
|
|
46
46
|
};
|
|
47
47
|
},
|
|
48
48
|
// 请求完成事件,可判断是否登录过期执行响应操作
|