centaline-data-driven 1.2.54 → 1.2.57
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 +3 -3
- package/src/assets/Unchecked.png +0 -0
- package/src/assets/checked.png +0 -0
- package/src/centaline/css/common.css +0 -1
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +21 -15
- package/src/centaline/dynamicContact/src/dynamicContact.vue +5 -4
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +5 -4
- package/src/centaline/dynamicDetail/src/dynamicPropertySimpleDetailRET.vue +10 -7
- package/src/centaline/dynamicForm/src/dynamicForm.vue +13 -6
- package/src/centaline/dynamicPhotoSelect/src/dynamicPhotoSelect.vue +59 -14
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +8 -1
- package/src/centaline/formData/index.js +1 -2
- package/src/centaline/loader/src/ctl/Base.js +3 -1
- package/src/centaline/loader/src/ctl/Detail.js +5 -1
- package/src/centaline/loader/src/ctl/Router.js +9 -0
- package/src/main.js +2 -3
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/src/Form.vue
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-form" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
3
|
<!-- <ct-form :api="'/api/third-dept-tran/profit-return/applyUI'" :apiParam="apiParam"></ct-form> -->
|
|
4
|
-
<ct-form :api="'/PropertyRET/getLayoutOfNew'" :apiParam="apiParam"></ct-form>
|
|
4
|
+
<!-- <ct-form :api="'/PropertyRET/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
|
|
5
5
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
6
|
-
|
|
6
|
+
<ct-form :api="'/api/third-dept-tran/transaction/detail'" :apiParam="apiParam"></ct-form>
|
|
7
7
|
<!--<ct-form :api="'api/Form/formdata'"></ct-form>-->
|
|
8
8
|
<ct-dialog-list></ct-dialog-list>
|
|
9
9
|
</div>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
// apiParam: {profitReturnId: "1504359257134055426", actionType: 1, pageStyle: 2, pageTitle: "查看返利", pageOnly: true} ,
|
|
18
18
|
// apiParam: {headerParam: {}, urlParam: {contractID: "06cad32e-4d0d-4b6f-bd24-16a28629a550", actionType: "0"}}
|
|
19
19
|
// apiParam: {originalTraId: "1475658732246241281", actionType: 2, chanceID: "1"} ,
|
|
20
|
-
apiParam: {
|
|
20
|
+
apiParam: {originalTraId: "1516290587463507969", actionType: "3", pageStyle: "2", pageTitle: "成交报告",pageOnly: "true"}
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
methods: {
|
|
Binary file
|
|
Binary file
|
|
@@ -34,30 +34,31 @@
|
|
|
34
34
|
<div>{{model.label}}</div>
|
|
35
35
|
<div style="color:red;font-weight:700;">{{model.subText}}</div>
|
|
36
36
|
</el-button>
|
|
37
|
-
<el-button v-else-if="model.isCallTel"
|
|
37
|
+
<el-button v-else-if="model.isCallTel" :id="model.id"
|
|
38
38
|
:type="model.isHyperLink ? 'text' : 'primary'"
|
|
39
39
|
v-bind="model.attrs" @click="clickHandle"
|
|
40
|
-
:style="{color:model.textColor,backgroundColor:model.bgColor,borderColor:model.borderColor}"
|
|
40
|
+
:style="{color:model.textColor,backgroundColor:model.imgUrl?'transparent':model.bgColor,borderColor:model.imgUrl?'transparent':model.borderColor,padding:model.imgUrl?'0px':null}"
|
|
41
41
|
:icon="model.icon"
|
|
42
42
|
:disabled="model.disabled || model.locked">
|
|
43
|
-
<el-popover :ref="'popover'+model.id"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
43
|
+
<el-popover :ref="'popover'+model.id"
|
|
44
|
+
class="Stats-popover" :popper-class="'el-popoverCallTel'" :placement="option.placement?option.placement:'left'"
|
|
45
|
+
v-model="visible" :trigger="option.trigger?option.trigger:''">
|
|
46
|
+
<div style="border-bottom:none">
|
|
47
|
+
<div style="color: #388cd3;text-align: center;">{{message}}</div>
|
|
48
|
+
<img v-show="qrCode" :src="qrCode" style="margin-top: 5px;" :style="{'width':width+'px','height':height+'px'}" />
|
|
49
|
+
</div>
|
|
50
|
+
<img v-if="model.imgUrl" slot="reference" :title="model.label" :src="tellImgUrl?tellImgUrl:model.imgUrl" height="24px" />
|
|
51
|
+
<span v-else slot="reference">{{model.label}}</span>
|
|
52
|
+
</el-popover>
|
|
53
53
|
</el-button>
|
|
54
54
|
<el-button v-else
|
|
55
55
|
:type="model.isHyperLink ? 'text' : 'primary'"
|
|
56
56
|
v-bind="model.attrs" @click="$emit('click',model)"
|
|
57
|
-
:style="{color:model.textColor,backgroundColor:model.bgColor,borderColor:model.borderColor}"
|
|
57
|
+
:style="{color:model.textColor,backgroundColor:model.imgUrl?'transparent':model.bgColor,borderColor:model.imgUrl?'transparent':model.borderColor,padding:model.imgUrl?'0px':null}"
|
|
58
58
|
:icon="model.icon"
|
|
59
59
|
:disabled="model.disabled || model.locked">
|
|
60
|
-
|
|
60
|
+
<img v-if="model.imgUrl" :title="model.label" :src="model.imgUrl" height="24px"/>
|
|
61
|
+
<span v-else>{{model.label}}</span>
|
|
61
62
|
</el-button>
|
|
62
63
|
</template>
|
|
63
64
|
<script>
|
|
@@ -77,10 +78,11 @@
|
|
|
77
78
|
qrCode:'',
|
|
78
79
|
width:300,
|
|
79
80
|
height:300,
|
|
81
|
+
tellImgUrl:'',
|
|
80
82
|
option: {
|
|
81
83
|
isHidden: true,//是否开启操作栏隐藏设置,默认开启
|
|
82
84
|
showNum: 3,//如果isHidden为true时,个数大于3就会隐藏,默认是3
|
|
83
|
-
appendId: '',//将浮动栏添加到对应id或者class节点中。或者.xxx。传空字符串是添加到body中。
|
|
85
|
+
appendId: '.el-button',//将浮动栏添加到对应id或者class节点中。或者.xxx。传空字符串是添加到body中。
|
|
84
86
|
trigger: 'manual',//触发方式,传值可查看Popper UI组件trigger属性
|
|
85
87
|
placement: 'bottom-start',//方向,传值可查看Popper UI组件placement属性
|
|
86
88
|
},
|
|
@@ -138,6 +140,7 @@
|
|
|
138
140
|
if(this.model.isCallTel){
|
|
139
141
|
if(this.visible){
|
|
140
142
|
this.visible=false;
|
|
143
|
+
this.tellImgUrl='';
|
|
141
144
|
}
|
|
142
145
|
else{
|
|
143
146
|
this.$emit('click',this.model);
|
|
@@ -150,9 +153,11 @@
|
|
|
150
153
|
callTelClick(data){
|
|
151
154
|
this.message='';
|
|
152
155
|
this.qrCode='';
|
|
156
|
+
this.tellImgUrl='';
|
|
153
157
|
if(data.content.actionType=='显示消息'){
|
|
154
158
|
this.visible=true;
|
|
155
159
|
this.message=data.content.message;
|
|
160
|
+
if(data.content.imgUrl)this.tellImgUrl=data.content.imgUrl;
|
|
156
161
|
}
|
|
157
162
|
else if(data.content.actionType=='扫码拨号'){
|
|
158
163
|
this.visible=true;
|
|
@@ -160,6 +165,7 @@
|
|
|
160
165
|
this.qrCode = data.content.qrCode;
|
|
161
166
|
if(data.content.width)this.width=data.content.width;
|
|
162
167
|
if(data.content.height)this.height=data.content.height;
|
|
168
|
+
if(data.content.imgUrl)this.tellImgUrl=data.content.imgUrl;
|
|
163
169
|
}
|
|
164
170
|
},
|
|
165
171
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div v-if="apiRouter!=={} && model && model.listData.length>0"
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
<div v-if="apiRouter!=={} && model && model.listData.length>0"
|
|
3
|
+
style="border: 1px solid #ECEFF2;box-shadow: 0 2px 4px 0 rgba(0,0,0,0.06);border-radius: 6px;
|
|
4
|
+
padding-bottom: 10px;padding-top: 10px;padding-left: 10px;display: flex;font-size: 12px;width:100%">
|
|
5
|
+
<div class="ct-so" style="width:auto;margin-right: 10px;">
|
|
5
6
|
<el-popover ref="pop" placement="bottom-start" v-model="showDrop" trigger="click">
|
|
6
7
|
<div>
|
|
7
8
|
<ctSelectOptionVertical :model="model" @click="selectOption($event)"></ctSelectOptionVertical>
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
</div>
|
|
20
21
|
<div style="margin-left: 5px;display: flex;">
|
|
21
22
|
<component v-for="(router, index) in model.rowRouter" :key="index" :ref="'router'+router.id"
|
|
22
|
-
v-if="!router.rightField || model.listData[model.value][router.rightField] == 1"
|
|
23
|
+
v-if="!router.rightField || model.listData[model.value][router.rightField] == 1"
|
|
23
24
|
:is="router.is" :vmodel="router" :api="model.optionApi" @click="fieldClickHandler(router)">
|
|
24
25
|
</component>
|
|
25
26
|
</div>
|
|
@@ -177,9 +177,10 @@
|
|
|
177
177
|
<div class="t-item">
|
|
178
178
|
<span class="i">{{col.operationName}}</span>
|
|
179
179
|
</div>
|
|
180
|
-
<div class="t-item"><span class="i" :class="'operation'+col.flagKey">{{col.desc}}</span></div>
|
|
180
|
+
<div class="t-item"><span class="i" :class="'operation'+col.flagKey" :style="{color:col.descColor}">{{col.desc}}</span></div>
|
|
181
181
|
<div class="t-item" style="min-height: 50px;">
|
|
182
|
-
<component
|
|
182
|
+
<component v-for="(router, routerIndex) in col.routers" :key="routerIndex" :is="router.is" :vmodel="router" :api="model.optionApi"
|
|
183
|
+
@click="fieldClickHandler(router,$event)" class="el-button t-but el-button--info max-info"></component>
|
|
183
184
|
</div>
|
|
184
185
|
</div>
|
|
185
186
|
</div>
|
|
@@ -594,10 +595,10 @@
|
|
|
594
595
|
}
|
|
595
596
|
</script>
|
|
596
597
|
<style lang="scss" scoped>
|
|
597
|
-
.operation0{
|
|
598
|
+
.operation0,.operation20,.operation-1000{
|
|
598
599
|
color: #000000;
|
|
599
600
|
}
|
|
600
|
-
.operation1{
|
|
601
|
+
.operation1,.operation10{
|
|
601
602
|
color: #388cd3;
|
|
602
603
|
}
|
|
603
604
|
.operation2{
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
<span>{{model.fields1Dic.DistrictName.value}}</span>
|
|
28
28
|
<span>{{model.fields1Dic.AreaName.value}}</span>
|
|
29
29
|
</div>
|
|
30
|
-
<div style="
|
|
31
|
-
<div v-for="(tag, index) in model.actionRouterLabel" :key="index" class="t-tag"
|
|
30
|
+
<div style="display: flex;flex-wrap: wrap;">
|
|
31
|
+
<div v-for="(tag, index) in model.actionRouterLabel" :key="index" class="t-tag" style="margin-top: 7px;"
|
|
32
32
|
:style="{color:tag.textColor,backgroundColor:tag.bgColor,borderColor:tag.borderColor}">
|
|
33
33
|
{{tag.label}}
|
|
34
34
|
</div>
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<div style="margin-top: 7px;font-size: 14px;font-weight: Bold;color: #EE6B6B;">{{model.fields1Dic.FloorName.value}}</div>
|
|
49
49
|
</div>
|
|
50
50
|
</div>
|
|
51
|
-
<div ref="contact" style="margin-top: 16px;" v-if="model.contactApiRouter!==null" >
|
|
51
|
+
<div ref="contact" id="contact" style="margin-top: 16px;" v-if="model.contactApiRouter!==null" >
|
|
52
52
|
<ct-contact :apiRouter="model.contactApiRouter" :api="model.contactApiRouter.action" :apiParam="model.contactApiRouter.getSearchPara()"></ct-contact>
|
|
53
53
|
</div>
|
|
54
54
|
<div ref="routers" style="margin-top: 16px;display: flex;">
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
<el-popover v-if="showIndex>0" ref="popover0" :append-to-table="option.appendId?option.appendId:''"
|
|
61
61
|
class="Stats-popover" popper-class="el-popover1" :placement="option.placement?option.placement:'left'"
|
|
62
62
|
:trigger="option.trigger?option.trigger:''">
|
|
63
|
-
<div class="tab-list" style="border-bottom:none">
|
|
64
|
-
<component v-for="(router, index) in model.actionRoutersSimple.slice(showIndex)" :key="index"
|
|
63
|
+
<div class="tab-list" style="border-bottom:none;display: flex;flex-direction: column;">
|
|
64
|
+
<component v-for="(router, index) in model.actionRoutersSimple.slice(showIndex)" :key="index" style="margin-bottom: 10px;margin-left: 0px;"
|
|
65
65
|
v-if="!router.rightField || (model.fields1Dic[router.rightField] && model.fields1Dic[router.rightField].value == 1)"
|
|
66
66
|
:is="router.is" :vmodel="router" :api="model.optionApi" @click="fieldClickHandler(router)">
|
|
67
67
|
</component>
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
showNum: 3,//如果isHidden为true时,个数大于3就会隐藏,默认是3
|
|
101
101
|
appendId: '',//将浮动栏添加到对应id或者class节点中。或者.xxx。传空字符串是添加到body中。
|
|
102
102
|
trigger: 'hover',//触发方式,传值可查看Popper UI组件trigger属性
|
|
103
|
-
placement: '
|
|
103
|
+
placement: 'left-start',//方向,传值可查看Popper UI组件placement属性
|
|
104
104
|
},
|
|
105
105
|
}
|
|
106
106
|
},
|
|
@@ -147,9 +147,12 @@
|
|
|
147
147
|
this.topWidth=this.$refs.main.clientWidth-140;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
let totalWidth=
|
|
150
|
+
let totalWidth=0;
|
|
151
151
|
let sumWidth=0;
|
|
152
152
|
let moreWidth = 20;
|
|
153
|
+
if(self.$refs.routers){
|
|
154
|
+
totalWidth=self.$refs.routers.offsetWidth;
|
|
155
|
+
}
|
|
153
156
|
self.model.actionRoutersSimple.forEach((v,i) => {
|
|
154
157
|
if(!v.rightField || (self.model.fields1Dic[v.rightField] && self.model.fields1Dic[v.rightField].value == 1)){
|
|
155
158
|
if(self.$refs['routers'+i][0] && self.$refs['routers'+i][0].$el){
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
var self = this;
|
|
106
106
|
return {
|
|
107
107
|
loading: true,
|
|
108
|
-
activeName: '
|
|
108
|
+
activeName: '-1',
|
|
109
109
|
collapse: [],//分组数组
|
|
110
110
|
collapseActiveNames: [],//默认展开的分组name
|
|
111
111
|
collapseFieldsRow: [],//分组数组对应的行列布局
|
|
@@ -172,6 +172,9 @@
|
|
|
172
172
|
}
|
|
173
173
|
else if (v.is === 'ct-group') {
|
|
174
174
|
self.collapse.push(v);
|
|
175
|
+
if(v.isExpand && self.activeName=='-1'){
|
|
176
|
+
self.activeName=(self.collapse.length-1).toString();
|
|
177
|
+
}
|
|
175
178
|
if (v.lock || v.isExpand) {
|
|
176
179
|
realCollapseActiveNames.push(self.collapse.length - 1);
|
|
177
180
|
}
|
|
@@ -186,10 +189,11 @@
|
|
|
186
189
|
collapseItem.push(v);
|
|
187
190
|
}
|
|
188
191
|
});
|
|
192
|
+
if(self.activeName==='-1')self.activeName='0';
|
|
189
193
|
if (collapseItem.length > 0) {
|
|
190
194
|
collapseItemArr.push(collapseItem);
|
|
191
195
|
}
|
|
192
|
-
|
|
196
|
+
|
|
193
197
|
//遍历分组里的组件,计算行列布局
|
|
194
198
|
for (var i = 0; i < collapseItemArr.length; i++) {
|
|
195
199
|
var myFilter = collapseItemArr[i];
|
|
@@ -251,8 +255,11 @@
|
|
|
251
255
|
if (!field.isClientFuntion) {
|
|
252
256
|
if (field.isSubmit) {
|
|
253
257
|
let verified = true;
|
|
254
|
-
if
|
|
255
|
-
|
|
258
|
+
if(field.flagVerifyData){
|
|
259
|
+
verified=self.validExcute();
|
|
260
|
+
}
|
|
261
|
+
if (verified) {
|
|
262
|
+
if (field.flagVerifyData && typeof field.onClick !== 'undefined') {
|
|
256
263
|
verified = self.$common.excute.call(self.model.scripts, field.onClick);
|
|
257
264
|
}
|
|
258
265
|
|
|
@@ -290,7 +297,7 @@
|
|
|
290
297
|
self.parentModel.$vue.closeTabThen(data);
|
|
291
298
|
}
|
|
292
299
|
}
|
|
293
|
-
field.disabled = false;
|
|
300
|
+
field.disabled = false;
|
|
294
301
|
self.model.pageDisabled= false;
|
|
295
302
|
});
|
|
296
303
|
}
|
|
@@ -407,7 +414,7 @@
|
|
|
407
414
|
}
|
|
408
415
|
}
|
|
409
416
|
|
|
410
|
-
if (field.isSubmit && !self.validExcute()) {
|
|
417
|
+
if (field.isSubmit && field.flagVerifyData && !self.validExcute()) {
|
|
411
418
|
return;
|
|
412
419
|
}
|
|
413
420
|
|
|
@@ -20,21 +20,36 @@
|
|
|
20
20
|
@click="viewerOpen(photoList, index)"
|
|
21
21
|
>
|
|
22
22
|
</el-image>
|
|
23
|
-
<span
|
|
23
|
+
<span
|
|
24
|
+
class="cover-list-item-span-delete"
|
|
25
|
+
v-if="!modelPhotoselect.lock"
|
|
26
|
+
>
|
|
24
27
|
<i class="el-icon-delete" @click="handleRemove(index)"></i>
|
|
25
28
|
</span>
|
|
26
|
-
<span class="cover-list-item-span"
|
|
27
|
-
<span class="el-dropdown-link">
|
|
28
|
-
|
|
29
|
+
<span class="cover-list-item-span">
|
|
30
|
+
<span class="el-dropdown-link" v-if="item.mediaLabelName">
|
|
31
|
+
<span style="width: 80px; height: 26px; display: inline-flex;">
|
|
32
|
+
{{ item.mediaLabelName }} </span>
|
|
33
|
+
</span>
|
|
34
|
+
<span v-if="item.rightDefault==true||item.rightDefault=='true'"
|
|
35
|
+
:class="[
|
|
36
|
+
item.flagDefault &&
|
|
37
|
+
(item.flagDefault == true || item.flagDefault == 'true')
|
|
38
|
+
? 'checked'
|
|
39
|
+
: 'Unchecked',
|
|
40
|
+
'isradio',
|
|
41
|
+
]"
|
|
42
|
+
@click="radiochecked(photoList, item)"
|
|
43
|
+
>
|
|
29
44
|
</span>
|
|
30
45
|
</span>
|
|
31
46
|
</div>
|
|
32
47
|
</li>
|
|
33
48
|
</draggable>
|
|
34
49
|
</ul>
|
|
35
|
-
<div
|
|
50
|
+
<div
|
|
36
51
|
class="el-upload el-upload--picture-card"
|
|
37
|
-
v-if="!modelPhotoselect.lock&&photoList.length<max"
|
|
52
|
+
v-if="!modelPhotoselect.lock && photoList.length < max"
|
|
38
53
|
@click="handleOpen()"
|
|
39
54
|
>
|
|
40
55
|
<i class="el-icon-plus"></i>
|
|
@@ -65,7 +80,8 @@ export default {
|
|
|
65
80
|
},
|
|
66
81
|
data() {
|
|
67
82
|
return {
|
|
68
|
-
|
|
83
|
+
radio: "1",
|
|
84
|
+
max: 99999,
|
|
69
85
|
validMessage: "",
|
|
70
86
|
photoList: [],
|
|
71
87
|
modelPhotoselect: {},
|
|
@@ -103,7 +119,7 @@ export default {
|
|
|
103
119
|
methods: {
|
|
104
120
|
load(data) {
|
|
105
121
|
this.model = data;
|
|
106
|
-
this.max=data.max?data.max:99999;
|
|
122
|
+
this.max = data.max ? data.max : 99999;
|
|
107
123
|
this.modelPhotoselect = data;
|
|
108
124
|
this.photoList = data.fileList;
|
|
109
125
|
},
|
|
@@ -156,7 +172,7 @@ export default {
|
|
|
156
172
|
}, 3000);
|
|
157
173
|
photoList = photoList.slice(0, this.modelPhotoselect.max);
|
|
158
174
|
}
|
|
159
|
-
}
|
|
175
|
+
}
|
|
160
176
|
self.modelPhotoselect.setFileList(photoList);
|
|
161
177
|
self.photoList = photoList;
|
|
162
178
|
|
|
@@ -183,7 +199,15 @@ export default {
|
|
|
183
199
|
self.$nextTick(function () {
|
|
184
200
|
self.modelPhotoselect.setFileList(self.photoList);
|
|
185
201
|
});
|
|
186
|
-
},
|
|
202
|
+
},
|
|
203
|
+
radiochecked(list, item) {
|
|
204
|
+
var self = this;
|
|
205
|
+
list.forEach((v) => {
|
|
206
|
+
v.flagDefault = false;
|
|
207
|
+
});
|
|
208
|
+
item.flagDefault = true;
|
|
209
|
+
self.modelPhotoselect.setFileList(list);
|
|
210
|
+
},
|
|
187
211
|
//不能共用的数据校验
|
|
188
212
|
selfValidExcute: function (eventName) {
|
|
189
213
|
if (this.modelPhotoselect.required) {
|
|
@@ -275,10 +299,14 @@ export default {
|
|
|
275
299
|
margin-right: 4px;
|
|
276
300
|
}
|
|
277
301
|
|
|
278
|
-
.ct-photoSelect .el-dropdown-link
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
302
|
+
.ct-photoSelect .el-dropdown-link{
|
|
303
|
+
cursor: pointer;
|
|
304
|
+
color: #fff;
|
|
305
|
+
position: relative;
|
|
306
|
+
width: 80px;
|
|
307
|
+
height: 26px;
|
|
308
|
+
display: inline-block;
|
|
309
|
+
}
|
|
282
310
|
|
|
283
311
|
.ct-photoSelect .el-icon-arrow-down {
|
|
284
312
|
font-size: 12px;
|
|
@@ -306,4 +334,21 @@ export default {
|
|
|
306
334
|
.card {
|
|
307
335
|
display: inline-block;
|
|
308
336
|
}
|
|
337
|
+
|
|
338
|
+
.ct-photoSelect .checked {
|
|
339
|
+
background: url(../../../assets/checked.png);
|
|
340
|
+
}
|
|
341
|
+
.ct-photoSelect .Unchecked {
|
|
342
|
+
background: url(../../../assets/Unchecked.png);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.ct-photoSelect .isradio {
|
|
346
|
+
background-size: 100% 100%;
|
|
347
|
+
height: 18px;
|
|
348
|
+
width: 18px;
|
|
349
|
+
display: block;
|
|
350
|
+
cursor: pointer;
|
|
351
|
+
margin-top: 5px;
|
|
352
|
+
float: right;
|
|
353
|
+
}
|
|
309
354
|
</style>
|
|
@@ -215,12 +215,16 @@
|
|
|
215
215
|
}
|
|
216
216
|
},
|
|
217
217
|
sideMenuClickHandler(v) {
|
|
218
|
+
let popoverCallTels=document.getElementsByClassName('el-popoverCallTel');
|
|
218
219
|
if(v=='open'){
|
|
219
220
|
this.sideBarStatus ='close';
|
|
220
221
|
this.sideBarRight=-this.sideBarWidth;
|
|
221
222
|
this.sideBarWidth=0;
|
|
222
223
|
this.searchWidth=0;
|
|
223
224
|
this.sideBarMenuRight=0;
|
|
225
|
+
for(var i=0;i<popoverCallTels.length;i++){
|
|
226
|
+
popoverCallTels[i].style.display='none';
|
|
227
|
+
}
|
|
224
228
|
}
|
|
225
229
|
else if(v=='close'){
|
|
226
230
|
this.sideBarStatus ='open';
|
|
@@ -228,7 +232,10 @@
|
|
|
228
232
|
this.sideBarWidth=this.$refs.table.model.sideBarWidth;
|
|
229
233
|
this.searchWidth=this.$refs.main.clientWidth-this.sideBarWidth;
|
|
230
234
|
this.sideBarMenuRight=this.sideBarWidth-2;
|
|
231
|
-
this.rowClickHandle();
|
|
235
|
+
this.rowClickHandle();
|
|
236
|
+
for(var i=0;i<popoverCallTels.length;i++){
|
|
237
|
+
popoverCallTels[i].style.display='block';
|
|
238
|
+
}
|
|
232
239
|
}
|
|
233
240
|
},
|
|
234
241
|
closeSideHandler() {
|
|
@@ -45,7 +45,6 @@ const formData = {
|
|
|
45
45
|
var rtn1 = this.fieldsDic[id];
|
|
46
46
|
if (rtn1) {
|
|
47
47
|
rtn1.source[attrKey] = attrValue;
|
|
48
|
-
console.log(this.form)
|
|
49
48
|
this.form.hatchHandle(id, attrKey, attrValue, rtn1);
|
|
50
49
|
//this.form.hiddenHandle(rtn1);//隐藏关联的
|
|
51
50
|
|
|
@@ -231,7 +230,7 @@ const formData = {
|
|
|
231
230
|
//获取后台数据,并返回脚本。
|
|
232
231
|
execServerScript(action, object, successCallback) {
|
|
233
232
|
let formData = this;//作用域保存
|
|
234
|
-
|
|
233
|
+
|
|
235
234
|
//是否是行内触发的
|
|
236
235
|
let data = this.getListField(this.form.scripts.$fd, null, null);
|
|
237
236
|
object.editMode = data ? 1 : 0;
|
|
@@ -306,6 +306,7 @@ const Detail = function (source,para ,callBack) {
|
|
|
306
306
|
rtn._operationList=response.content;
|
|
307
307
|
if(rtn._operationList && rtn._operationList.length>0){
|
|
308
308
|
rtn._operationList.forEach((v,i) => {
|
|
309
|
+
rtn._operationList[i].routers=[];
|
|
309
310
|
if (v.modelRouters) {
|
|
310
311
|
v.modelRouters.forEach((f,i2) => {
|
|
311
312
|
var router = Router(f);
|
|
@@ -314,7 +315,10 @@ const Detail = function (source,para ,callBack) {
|
|
|
314
315
|
if(router.rightField){
|
|
315
316
|
router.show=v[router.rightField];
|
|
316
317
|
}
|
|
317
|
-
if(router.show)
|
|
318
|
+
if(router.show){
|
|
319
|
+
// rtn._operationList[i].router=router;
|
|
320
|
+
rtn._operationList[i].routers.push(router);
|
|
321
|
+
}
|
|
318
322
|
rtn._operationRouters.push(router);
|
|
319
323
|
});
|
|
320
324
|
}
|
|
@@ -313,6 +313,15 @@ const Router = function (source) {
|
|
|
313
313
|
get locked() {
|
|
314
314
|
return source.locked;
|
|
315
315
|
},
|
|
316
|
+
get flagVerifyData() {
|
|
317
|
+
//提交表单时是否校验数据
|
|
318
|
+
if(source.flagVerifyData!=undefined){
|
|
319
|
+
return source.flagVerifyData;
|
|
320
|
+
}
|
|
321
|
+
else{
|
|
322
|
+
return true;
|
|
323
|
+
}
|
|
324
|
+
},
|
|
316
325
|
};
|
|
317
326
|
return rtn;
|
|
318
327
|
}
|
package/src/main.js
CHANGED
|
@@ -13,8 +13,7 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
15
|
baseUrl: "http://10.88.22.46:7070/v1/form/router",
|
|
16
|
-
// baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
17
|
-
// baseUrl: "http://10.88.22.46:7070/",
|
|
16
|
+
// baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
18
17
|
// flagRouterSelf: true,
|
|
19
18
|
zindex: 999,
|
|
20
19
|
showRequestErrorMessage: true,
|
|
@@ -36,7 +35,7 @@ Vue.use(centaline, {
|
|
|
36
35
|
// 获取请求头
|
|
37
36
|
getRequestHeaders: function () {
|
|
38
37
|
return {
|
|
39
|
-
oldToken: '
|
|
38
|
+
oldToken: '1c37d6b7-9259-4835-88f6-a389900244f7',
|
|
40
39
|
estateId: '20210729104021C49F04B55C50F6AF58',
|
|
41
40
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
42
41
|
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE0NmU5ZjEzLTVjMmYtNGVlMy1hM2U5LWIxM2QyZThjZTBhZSJ9.Gl8K5lbG7t5DyCqouu7Ux7Oh9xuAxqdOXr4JnoHCN-YwC3b2zPO-C2sHbYJUZHYQPa7kTNRmg1xJiwugpVo5Xw',
|