centaline-data-driven 1.1.43 → 1.1.47
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 +14 -2
- package/src/centaline/css/common.css +29 -7
- package/src/centaline/css/max.css +10 -1
- package/src/centaline/dialogList/src/dialog.vue +4 -2
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +1 -1
- package/src/centaline/dynamicCb/src/dynamicCb.vue +1 -1
- package/src/centaline/dynamicComboBoxWithTextBox/src/dynamicComboBoxWithTextBox.vue +1 -1
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +2 -5
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +44 -36
- package/src/centaline/dynamicForm/src/dynamicForm.vue +18 -7
- package/src/centaline/dynamicForm/src/dynamicFormList.vue +1 -1
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +0 -2
- package/src/centaline/dynamicInputNumber/src/dynamicInputNumber.vue +1 -1
- package/src/centaline/dynamicMo/src/dynamicMo.vue +12 -9
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchList.vue +17 -1
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchListTable.vue +4 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +4 -2
- package/src/centaline/dynamicSearchList/src/dynamicTableTip.vue +1 -1
- package/src/centaline/dynamicSeg/src/dynamicSeg.vue +2 -2
- package/src/centaline/dynamicSo/src/dynamicSo.vue +11 -11
- package/src/centaline/dynamicSos/src/dynamicSos - /345/244/215/345/210/266.vue" +2 -2
- package/src/centaline/dynamicSos/src/dynamicSos.vue +9 -9
- package/src/centaline/dynamicTags/src/dynamicTags - /345/244/215/345/210/266.vue" +3 -3
- package/src/centaline/dynamicTags/src/dynamicTags.vue +12 -9
- package/src/centaline/formData/index.js +19 -8
- package/src/centaline/loader/src/ctl/Detail.js +135 -10
- package/src/centaline/loader/src/ctl/Form.js +3 -1
- package/src/centaline/loader/src/ctl/lib/Enum.js +5 -0
- package/src/main.js +2 -1
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
border-radius: 4px;
|
|
82
82
|
/*border: 1px solid #dcdfe6;*/
|
|
83
83
|
line-height: 40px;
|
|
84
|
-
padding-left: 15px;
|
|
84
|
+
/* padding-left: 15px; */
|
|
85
85
|
}
|
|
86
86
|
.ct-Seg .ct-radios:hover {
|
|
87
87
|
border-color: #c0c4cc;
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
}*/
|
|
92
92
|
.ct-Seg .ct-radios .el-radio {
|
|
93
93
|
margin-left: 0px;
|
|
94
|
-
margin-right:
|
|
94
|
+
margin-right: 15px;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.ct-Seg .ct-radios .ct-Seg-label {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="field-top">
|
|
3
|
-
<div style="width:100%;display:flex">
|
|
4
|
-
<div style="flex:1" class="ct-so" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-so-'+model.attrs.size:''
|
|
3
|
+
<div style="width:100%;display:flex;">
|
|
4
|
+
<div style="flex:1;margin-right:5px" class="ct-so" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-so-'+model.attrs.size:''
|
|
5
5
|
]" @mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
|
|
6
6
|
<div :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
|
|
7
7
|
<div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
</span>
|
|
33
33
|
</transition>
|
|
34
34
|
<div v-if="!model.lock && model.popupSearchListType === 1">
|
|
35
|
-
<el-button v-if="!model.moreActionBtnName" size="mini" type="primary" icon="el-icon-search" @click="popupSearchListHandle"></el-button>
|
|
36
|
-
<el-button v-else size="mini" type="primary" @click="popupSearchListHandle">{{model.moreActionBtnName}}</el-button>
|
|
35
|
+
<el-button v-if="!model.moreActionBtnName" size="mini" type="primary" class="h26" icon="el-icon-search" @click="popupSearchListHandle"></el-button>
|
|
36
|
+
<el-button v-else size="mini" type="primary" class="h26" @click="popupSearchListHandle">{{model.moreActionBtnName}}</el-button>
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
39
39
|
</div>
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
return {
|
|
63
63
|
focus: false,
|
|
64
64
|
showDrop: false,
|
|
65
|
-
inputHeight:
|
|
65
|
+
inputHeight: 26,
|
|
66
66
|
showClear:false
|
|
67
67
|
}
|
|
68
68
|
},
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
get: function () {
|
|
100
100
|
switch (this.model.attrs.size) {
|
|
101
101
|
case 'mini':
|
|
102
|
-
return
|
|
102
|
+
return 26;
|
|
103
103
|
case 'small':
|
|
104
104
|
return 32;
|
|
105
105
|
case 'medium':
|
|
@@ -186,10 +186,7 @@
|
|
|
186
186
|
self.$emit('popupSearchList', true, self.model, self.model.moreActionRouter, (option) => {
|
|
187
187
|
self.model.value = option[self.model.optionAttrs.value];
|
|
188
188
|
self.model.text = option[self.model.optionAttrs.label];
|
|
189
|
-
self.model.options.push(
|
|
190
|
-
code: self.model.value,
|
|
191
|
-
name: self.model.text
|
|
192
|
-
});
|
|
189
|
+
self.model.options.push(option);
|
|
193
190
|
|
|
194
191
|
self.soChange();
|
|
195
192
|
});
|
|
@@ -254,7 +251,7 @@
|
|
|
254
251
|
color: #606266;
|
|
255
252
|
display: inline-block;
|
|
256
253
|
font-size: inherit;
|
|
257
|
-
line-height:
|
|
254
|
+
line-height: 26px;
|
|
258
255
|
outline: 0;
|
|
259
256
|
padding: 0 15px;
|
|
260
257
|
padding-right: 30px;
|
|
@@ -327,4 +324,7 @@
|
|
|
327
324
|
.ct-so .ct-close > .el-select__caret.is-show-close:hover {
|
|
328
325
|
color: #909399;
|
|
329
326
|
}
|
|
327
|
+
.h26{
|
|
328
|
+
height: 26px;
|
|
329
|
+
}
|
|
330
330
|
</style>
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
return {
|
|
55
55
|
focus: false,
|
|
56
56
|
showDrop: false,
|
|
57
|
-
inputHeight:
|
|
57
|
+
inputHeight: 26,
|
|
58
58
|
showClear: false,
|
|
59
59
|
searchText: ""
|
|
60
60
|
}
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
get: function () {
|
|
93
93
|
switch (this.model.attrs.size) {
|
|
94
94
|
case 'mini':
|
|
95
|
-
return
|
|
95
|
+
return 26;
|
|
96
96
|
case 'small':
|
|
97
97
|
return 32;
|
|
98
98
|
case 'medium':
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="field-top">
|
|
3
3
|
<div style="width:100%;display:flex">
|
|
4
|
-
<div style="flex:1" class="ct-so" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-so-'+model.attrs.size:''
|
|
4
|
+
<div style="flex:1;margin-right:5px" class="ct-so" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-so-'+model.attrs.size:''
|
|
5
5
|
]" @mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
|
|
6
6
|
<div :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
|
|
7
7
|
<div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
</span>
|
|
36
36
|
</transition>
|
|
37
37
|
<div v-if="!model.lock && model.popupSearchListType === 1">
|
|
38
|
-
<el-button v-if="!model.moreActionBtnName" size="mini" type="primary" icon="el-icon-search" @click="popupSearchListHandle"></el-button>
|
|
39
|
-
<el-button v-else size="mini" type="primary" @click="popupSearchListHandle">{{model.moreActionBtnName}}</el-button>
|
|
38
|
+
<el-button v-if="!model.moreActionBtnName" size="mini" class="h26" type="primary" icon="el-icon-search" @click="popupSearchListHandle"></el-button>
|
|
39
|
+
<el-button v-else size="mini" type="primary" class="h26" @click="popupSearchListHandle">{{model.moreActionBtnName}}</el-button>
|
|
40
40
|
</div>
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
return {
|
|
66
66
|
focus: false,
|
|
67
67
|
showDrop: false,
|
|
68
|
-
inputHeight:
|
|
68
|
+
inputHeight: 26,
|
|
69
69
|
showClear: false,
|
|
70
70
|
searchText: ""
|
|
71
71
|
}
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
get: function () {
|
|
104
104
|
switch (this.model.attrs.size) {
|
|
105
105
|
case 'mini':
|
|
106
|
-
return
|
|
106
|
+
return 26;
|
|
107
107
|
case 'small':
|
|
108
108
|
return 32;
|
|
109
109
|
case 'medium':
|
|
@@ -196,10 +196,7 @@
|
|
|
196
196
|
if (option) {
|
|
197
197
|
self.model.value = option[self.model.optionAttrs.value];
|
|
198
198
|
self.model.text = option[self.model.optionAttrs.label];
|
|
199
|
-
self.model.options.push(
|
|
200
|
-
Code: self.model.value,
|
|
201
|
-
Name: self.model.text
|
|
202
|
-
});
|
|
199
|
+
self.model.options.push(option);
|
|
203
200
|
|
|
204
201
|
self.soChange();
|
|
205
202
|
}
|
|
@@ -262,4 +259,7 @@
|
|
|
262
259
|
}
|
|
263
260
|
</script>
|
|
264
261
|
<style>
|
|
262
|
+
.h26{
|
|
263
|
+
height: 26px;
|
|
264
|
+
}
|
|
265
265
|
</style>
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
return {
|
|
65
65
|
focus: false,
|
|
66
66
|
showDrop: false,
|
|
67
|
-
inputHeight:
|
|
67
|
+
inputHeight: 26,
|
|
68
68
|
tagsWidth: 175,
|
|
69
69
|
showClear: false,
|
|
70
70
|
searchText: "",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
get: function () {
|
|
105
105
|
switch (this.model.attrs.size) {
|
|
106
106
|
case 'mini':
|
|
107
|
-
return
|
|
107
|
+
return 26;
|
|
108
108
|
case 'small':
|
|
109
109
|
return 32;
|
|
110
110
|
case 'medium':
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
color: transparent;
|
|
304
304
|
display: inline-block;
|
|
305
305
|
font-size: inherit;
|
|
306
|
-
line-height:
|
|
306
|
+
line-height: 26px;
|
|
307
307
|
outline: 0;
|
|
308
308
|
padding: 0 15px;
|
|
309
309
|
padding-right: 30px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="field-top">
|
|
3
3
|
<div class="ct-tags" style="width:100%;display:flex">
|
|
4
|
-
<div style="flex:1;display:flex" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-tags-'+model.attrs.size:''
|
|
4
|
+
<div style="flex:1;display:flex;margin-right: 5px;" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-tags-'+model.attrs.size:''
|
|
5
5
|
]" @mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
|
|
6
6
|
<div style="flex:1;position: relative;" :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
|
|
7
7
|
<div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</span>
|
|
18
18
|
</span>
|
|
19
19
|
</div>
|
|
20
|
-
<el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel1?'showLabel':'']" :trigger="(model.popupSearchListType
|
|
20
|
+
<el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel1?'showLabel':'']" :trigger="(model.popupSearchListType > 0 || model.lock) ? 'manual' : 'click'">
|
|
21
21
|
<div>
|
|
22
22
|
<div>
|
|
23
23
|
<el-input ref="searchInput" :size="model.attrs.size" suffix-icon="el-icon-search" v-model="searchText" @input="searchInputHandle"></el-input>
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
</div>
|
|
47
47
|
|
|
48
48
|
<div v-if="model.popupSearchListType === 1 && !model.lock">
|
|
49
|
-
<el-button v-if="!model.moreActionBtnName" size="mini" type="primary" icon="el-icon-search" @click="popupSearchListHandle"></el-button>
|
|
50
|
-
<el-button v-else size="mini" type="primary" @click="popupSearchListHandle">{{model.moreActionBtnName}}</el-button>
|
|
49
|
+
<el-button v-if="!model.moreActionBtnName" class="h26" size="mini" type="primary" icon="el-icon-search" @click="popupSearchListHandle"></el-button>
|
|
50
|
+
<el-button v-else size="mini" type="primary" class="h26" @click="popupSearchListHandle">{{model.moreActionBtnName}}</el-button>
|
|
51
51
|
</div>
|
|
52
52
|
</div>
|
|
53
53
|
</div>
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
return {
|
|
77
77
|
focus: false,
|
|
78
78
|
showDrop: false,
|
|
79
|
-
inputHeight:
|
|
79
|
+
inputHeight: 26,
|
|
80
80
|
tagsWidth: 175,
|
|
81
81
|
showClear: false,
|
|
82
82
|
searchText: "",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
get: function () {
|
|
117
117
|
switch (this.model.attrs.size) {
|
|
118
118
|
case 'mini':
|
|
119
|
-
return
|
|
119
|
+
return 26;
|
|
120
120
|
case 'small':
|
|
121
121
|
return 32;
|
|
122
122
|
case 'medium':
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
},
|
|
206
206
|
popupSearchListHandle: function () {
|
|
207
207
|
var self = this;
|
|
208
|
-
|
|
208
|
+
self.showDrop=false;
|
|
209
209
|
self.$emit('popupSearchList', false, self.model, self.model.moreActionRouter, (optionArr) => {
|
|
210
210
|
self.selectOptionArr(optionArr);
|
|
211
211
|
});
|
|
@@ -280,9 +280,9 @@
|
|
|
280
280
|
selectOptionArr(optionArr) {
|
|
281
281
|
var self = this;
|
|
282
282
|
optionArr.forEach((s) => {
|
|
283
|
-
if (!self.model.value.find((v) => { return v === s.
|
|
283
|
+
if (!self.model.value.find((v) => { return v === s[self.model.optionAttrs.value] })) {
|
|
284
284
|
self.model.options.push(s);
|
|
285
|
-
self.model.value.push(s.
|
|
285
|
+
self.model.value.push(s[self.model.optionAttrs.value]);
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
288
|
|
|
@@ -418,4 +418,7 @@
|
|
|
418
418
|
.ct-tags-value-label {
|
|
419
419
|
padding-left: 15px;
|
|
420
420
|
}
|
|
421
|
+
.h26{
|
|
422
|
+
height: 26px;
|
|
423
|
+
}
|
|
421
424
|
</style>
|
|
@@ -11,6 +11,7 @@ const formData = {
|
|
|
11
11
|
common: common,
|
|
12
12
|
Axios: Axios,
|
|
13
13
|
form: null,
|
|
14
|
+
formTable:null,
|
|
14
15
|
excuteData: null,//fields
|
|
15
16
|
fieldsDic: null,//fieldsDic
|
|
16
17
|
_excuteListData: undefined,
|
|
@@ -43,6 +44,7 @@ const formData = {
|
|
|
43
44
|
var rtn1 = this.fieldsDic[id];
|
|
44
45
|
if (rtn1) {
|
|
45
46
|
rtn1.source[attrKey] = attrValue;
|
|
47
|
+
console.log(this.form)
|
|
46
48
|
this.form.hatchHandle(id, attrKey, attrValue, rtn1);
|
|
47
49
|
//this.form.hiddenHandle(rtn1);//隐藏关联的
|
|
48
50
|
|
|
@@ -74,21 +76,30 @@ const formData = {
|
|
|
74
76
|
//获取列表数据
|
|
75
77
|
get excuteListData() {
|
|
76
78
|
if (this._excuteListData) {
|
|
77
|
-
|
|
79
|
+
return this._excuteListData;
|
|
78
80
|
}
|
|
79
81
|
else {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
if (this.excuteData !== null) {
|
|
83
|
+
this._excuteListData = this.excuteData.filter((v) => {
|
|
84
|
+
return typeof v.is !== undefined && v.is === 'ct-form-list-table';
|
|
85
|
+
});
|
|
86
|
+
}
|
|
85
87
|
}
|
|
86
88
|
return this._excuteListData;
|
|
87
89
|
},
|
|
90
|
+
setExcuteListData(fields) {
|
|
91
|
+
this._excuteListData=null;
|
|
92
|
+
if (fields !== null) {
|
|
93
|
+
this.excuteData=fields;
|
|
94
|
+
this._excuteListData = fields.filter((v) => {
|
|
95
|
+
return typeof v.is !== undefined && v.is === 'ct-form-list-table';
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
},
|
|
88
99
|
//获取列表的Field
|
|
89
100
|
getListField(tableName, rowNum, fiedlId) {
|
|
90
101
|
let listData = this.excuteListData.find((v) => {
|
|
91
|
-
|
|
102
|
+
return v.id === tableName;
|
|
92
103
|
});
|
|
93
104
|
if (listData) {
|
|
94
105
|
let field = null;
|
|
@@ -164,7 +175,7 @@ const formData = {
|
|
|
164
175
|
},
|
|
165
176
|
//设置表格某行某列的值
|
|
166
177
|
setListFieldValue(value, tableName, rowNum, fiedlId, attrName) {
|
|
167
|
-
value = value.toString();
|
|
178
|
+
value = value==undefined?"":value.toString();
|
|
168
179
|
tableName = tableName ? tableName : this.form.scripts.$fd;
|
|
169
180
|
let data = this.getListField(tableName, rowNum, fiedlId);
|
|
170
181
|
|
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
import base from '../../index';
|
|
2
2
|
import Base from './Base';
|
|
3
|
-
import valid from '../../../validate/index';
|
|
4
3
|
import Enum from './lib/Enum';
|
|
5
4
|
import common from '../../../common';
|
|
5
|
+
import Router from './Router';
|
|
6
6
|
import Vue from 'vue';
|
|
7
7
|
const Detail = function (source,para ,callBack) {
|
|
8
8
|
var init = function (data) {
|
|
9
9
|
var rtn = {
|
|
10
|
-
_fields1Dic: null
|
|
10
|
+
_fields1Dic: null,//字典,方便取值,属性集合(用户固定部分)
|
|
11
|
+
_fields2Dic: null,//字典,方便取值,属性集合(用户动态部分)
|
|
12
|
+
_actionRouterLabel: null,//标签
|
|
13
|
+
_otherTradeActionRouter: null,//对应另外种交易的 router 如:本盘出售 则可能对应的出租的交易,没有则为空
|
|
14
|
+
_actionRouters:null,//页面上的动作行为
|
|
15
|
+
_actionRoutersMoreList:null,//页面上的更多动作行为
|
|
16
|
+
get fields1() {
|
|
17
|
+
return data.fields1;
|
|
18
|
+
},
|
|
19
|
+
get fields2() {
|
|
20
|
+
return data.fields2;
|
|
21
|
+
},
|
|
22
|
+
get labels() {
|
|
23
|
+
return data.labels;
|
|
24
|
+
},
|
|
11
25
|
get fields1Dic() {
|
|
12
26
|
if (rtn._fields1Dic !== null) {
|
|
13
27
|
return rtn._fields1Dic;
|
|
@@ -15,20 +29,131 @@ const Detail = function (source,para ,callBack) {
|
|
|
15
29
|
rtn._fields1Dic = {};
|
|
16
30
|
if (rtn.fields1) {
|
|
17
31
|
rtn.fields1.forEach((f) => {
|
|
18
|
-
|
|
32
|
+
let col = {
|
|
33
|
+
get label() {
|
|
34
|
+
return f.controlLabel + this.labelDelimiter || '';
|
|
35
|
+
},
|
|
36
|
+
get labelDelimiter() {
|
|
37
|
+
return f.labelDelimiter || '';
|
|
38
|
+
},
|
|
39
|
+
get value() {
|
|
40
|
+
return f.code1;
|
|
41
|
+
},
|
|
42
|
+
get unitName() {
|
|
43
|
+
if(this.value===undefined || this.value===''){
|
|
44
|
+
return '';
|
|
45
|
+
}
|
|
46
|
+
return f.unitName1;
|
|
47
|
+
},
|
|
48
|
+
}
|
|
49
|
+
rtn._fields1Dic[f.fieldName1] = base.copy(Base(f), col);
|
|
19
50
|
});
|
|
20
51
|
}
|
|
21
52
|
return rtn._fields1Dic;
|
|
53
|
+
},
|
|
54
|
+
get fields2Dic() {
|
|
55
|
+
if (rtn._fields2Dic !== null) {
|
|
56
|
+
return rtn._fields2Dic;
|
|
57
|
+
}
|
|
58
|
+
if (rtn.fields2) {
|
|
59
|
+
rtn._fields2Dic = {};
|
|
60
|
+
rtn.fields2.forEach((f) => {
|
|
61
|
+
let col = {
|
|
62
|
+
get label() {
|
|
63
|
+
return f.controlLabel + this.labelDelimiter || '';
|
|
64
|
+
},
|
|
65
|
+
get labelDelimiter() {
|
|
66
|
+
return f.labelDelimiter || '';
|
|
67
|
+
},
|
|
68
|
+
get value() {
|
|
69
|
+
return f.code1;
|
|
70
|
+
},
|
|
71
|
+
get unitName() {
|
|
72
|
+
if(this.value===undefined || this.value===''){
|
|
73
|
+
return '';
|
|
74
|
+
}
|
|
75
|
+
return f.unitName1;
|
|
76
|
+
},
|
|
77
|
+
}
|
|
78
|
+
rtn._fields2Dic[f.fieldName1] = base.copy(Base(f), col);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
return rtn._fields2Dic;
|
|
82
|
+
},
|
|
83
|
+
get actionRouterLabel() {
|
|
84
|
+
if (rtn._actionRouterLabel !== null) {
|
|
85
|
+
return rtn._actionRouterLabel;
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
rtn._actionRouterLabel = [];
|
|
89
|
+
if (this.labels) {
|
|
90
|
+
this.labels.forEach((v) => {
|
|
91
|
+
var router = Router(v);
|
|
92
|
+
//router.is = "ct-btn";
|
|
93
|
+
//router.attrs = { size: "mini" }
|
|
94
|
+
rtn._actionRouterLabel.push(router);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
return rtn._actionRouterLabel;
|
|
98
|
+
}
|
|
22
99
|
},
|
|
23
|
-
get
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
100
|
+
get otherTradeActionRouter() {
|
|
101
|
+
if (rtn._otherTradeActionRouter !== null) {
|
|
102
|
+
return rtn._otherTradeActionRouter;
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
if (data.otherTradeActionRouter) {
|
|
106
|
+
var router = Router(data.otherTradeActionRouter);
|
|
107
|
+
router.is = "ct-btn";
|
|
108
|
+
router.attrs = { size: "mini" }
|
|
109
|
+
rtn._otherTradeActionRouter=router;
|
|
110
|
+
}
|
|
111
|
+
return rtn._otherTradeActionRouter;
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
get actionRouters() {
|
|
115
|
+
if (rtn._actionRouters !== null) {
|
|
116
|
+
return rtn._actionRouters;
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
if (data.actionRouters) {
|
|
120
|
+
rtn._actionRouters = [];
|
|
121
|
+
let indexMore=1;
|
|
122
|
+
if(data.actionRouters.length===3){
|
|
123
|
+
indexMore=2;
|
|
124
|
+
}
|
|
125
|
+
data.actionRouters.forEach((v,i) => {
|
|
126
|
+
if(i<=indexMore){
|
|
127
|
+
var router = Router(v);
|
|
128
|
+
router.is = "ct-btn";
|
|
129
|
+
router.attrs = { size: "mini" }
|
|
130
|
+
rtn._actionRouters.push(router);
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
return rtn._actionRouters;
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
get actionRoutersMoreList() {
|
|
138
|
+
if (rtn._actionRoutersMoreList !== null) {
|
|
139
|
+
return rtn._actionRoutersMoreList;
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
if (data.actionRouters && data.actionRouters.length>3) {
|
|
143
|
+
rtn._actionRoutersMoreList = [];
|
|
144
|
+
data.actionRouters.forEach((v,i) => {
|
|
145
|
+
if(i>=2){
|
|
146
|
+
var router = Router(v);
|
|
147
|
+
router.is = "ct-btn";
|
|
148
|
+
router.attrs = { size: "mini" }
|
|
149
|
+
rtn._actionRoutersMoreList.push(router);
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
return rtn._actionRoutersMoreList;
|
|
154
|
+
}
|
|
28
155
|
},
|
|
29
156
|
};
|
|
30
|
-
// rtn = base.copy(Base(data), rtn);
|
|
31
|
-
// rtn = base.copy(rtn, valid.Init(rtn));
|
|
32
157
|
return rtn;
|
|
33
158
|
}
|
|
34
159
|
if (typeof source === 'string') {
|
package/src/main.js
CHANGED
|
@@ -13,6 +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/v1/form/router",
|
|
16
17
|
zindex: 999,
|
|
17
18
|
showRequestErrorMessage: true,
|
|
18
19
|
handler: {
|
|
@@ -33,7 +34,7 @@ Vue.use(centaline, {
|
|
|
33
34
|
// 获取请求头
|
|
34
35
|
getRequestHeaders: function () {
|
|
35
36
|
return {
|
|
36
|
-
oldToken: '
|
|
37
|
+
oldToken: '3007e478-86db-4d5a-8ce0-7253afb746b2',
|
|
37
38
|
estateId: '20210729104021C49F04B55C50F6AF58',
|
|
38
39
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
39
40
|
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE0NmU5ZjEzLTVjMmYtNGVlMy1hM2U5LWIxM2QyZThjZTBhZSJ9.Gl8K5lbG7t5DyCqouu7Ux7Oh9xuAxqdOXr4JnoHCN-YwC3b2zPO-C2sHbYJUZHYQPa7kTNRmg1xJiwugpVo5Xw',
|