centaline-data-driven 1.2.88 → 1.2.89
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 +1 -1
- package/src/centaline/templateControls/src/dynamicTableCurrency.vue +2 -4
- 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
|
}
|
|
@@ -28,10 +28,8 @@
|
|
|
28
28
|
label: function () {
|
|
29
29
|
return (typeof this.colValue === "undefined" || this.colValue === '') ? this.router.label : this.colValue
|
|
30
30
|
},
|
|
31
|
-
isShowLabel:function()
|
|
32
|
-
|
|
33
|
-
if(this.label||this.router.imgUrl)
|
|
34
|
-
{
|
|
31
|
+
isShowLabel:function(){
|
|
32
|
+
if(this.label||this.router.imgUrl){
|
|
35
33
|
return true
|
|
36
34
|
}
|
|
37
35
|
return false;
|
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
|
// 请求完成事件,可判断是否登录过期执行响应操作
|