centaline-data-driven 1.3.96 → 1.3.97
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 +16 -11
- package/src/centaline/dynamicForm/src/dynamicForm.vue +9 -9
- package/src/centaline/dynamicT/src/dynamicT.vue +1 -5
- package/src/centaline/loader/src/ctl/FormList.js +0 -1
- package/src/main.js +4 -4
- 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/Form.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
3
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
4
|
-
<ct-form :api="'/
|
|
4
|
+
<ct-form :api="'/api/third-dept-tran/transaction/edit'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
|
|
5
5
|
<ct-dialog-list></ct-dialog-list>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
@@ -11,16 +11,21 @@
|
|
|
11
11
|
name: 'DataDrivenForm',
|
|
12
12
|
data() {
|
|
13
13
|
return {
|
|
14
|
-
apiParam:{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
apiParam:{actionType
|
|
15
|
+
:
|
|
16
|
+
"3",
|
|
17
|
+
originalTraId
|
|
18
|
+
:
|
|
19
|
+
"1572420664851103746",
|
|
20
|
+
pageOnly
|
|
21
|
+
:
|
|
22
|
+
"true",
|
|
23
|
+
pageStyle
|
|
24
|
+
:
|
|
25
|
+
"2",
|
|
26
|
+
pageTitle
|
|
27
|
+
:
|
|
28
|
+
"修改成交单",
|
|
24
29
|
},
|
|
25
30
|
topHeight:10,
|
|
26
31
|
}
|
|
@@ -599,6 +599,15 @@
|
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
601
|
},
|
|
602
|
+
inputHandler(field) {
|
|
603
|
+
if (typeof field.input !== 'undefined') {
|
|
604
|
+
if (typeof this.model.scripts !== 'undefined') {
|
|
605
|
+
this.model.scripts.formData.setExcuteListData(this.model.fields);
|
|
606
|
+
}
|
|
607
|
+
this.model.scripts.$fd = field.id;
|
|
608
|
+
this.$common.excute.call(this.model.scripts, field.input);
|
|
609
|
+
}
|
|
610
|
+
},
|
|
602
611
|
changeHandler(field) {
|
|
603
612
|
var self = this;
|
|
604
613
|
if (typeof field.change !== 'undefined') {
|
|
@@ -665,15 +674,6 @@
|
|
|
665
674
|
}
|
|
666
675
|
self.$forceUpdate();
|
|
667
676
|
},
|
|
668
|
-
inputHandler(field) {
|
|
669
|
-
if (typeof field.input !== 'undefined') {
|
|
670
|
-
if (typeof this.model.scripts !== 'undefined') {
|
|
671
|
-
this.model.scripts.formData.setExcuteListData(this.model.fields);
|
|
672
|
-
}
|
|
673
|
-
this.model.scripts.$fd = field.id;
|
|
674
|
-
this.$common.excute.call(this.model.scripts, field.input);
|
|
675
|
-
}
|
|
676
|
-
},
|
|
677
677
|
popupSearchListHandler(singleSelectio, field, router, callBack) {
|
|
678
678
|
var self = this;
|
|
679
679
|
var submitData = {};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<div ref="highlights" v-if="model.firbiddenWords" class="backdrop" :style="{width:firbiddenWordsWidth+'px',height:firbiddenWordsHeight+'px',left:firbiddenWordsLeft+'px',top:firbiddenWordsTop+'px'}">
|
|
11
11
|
<div class="highlights" v-html="firbiddenWordsValue"></div>
|
|
12
12
|
</div>
|
|
13
|
-
<el-input ref="input" :title="model.lock?model.value:''" :type="model.inputType" v-model="model.value" v-bind="model.attrs" @input="inputHandler($event);isShowClear()" @change="changeHandler($event)"
|
|
13
|
+
<el-input ref="input" :title="model.lock?model.value:''" :type="model.inputType" v-model="model.value" v-bind="model.attrs" @input="inputHandler($event);isShowClear();applyHighlights()" @change="changeHandler($event)"
|
|
14
14
|
class="ct-flex-div-input max-input" :class="[model.showLabel?'showLabel':'',!valid?'inputError':'',model.firbiddenWords?'inputHighlights':'']"
|
|
15
15
|
:disabled="model.lock" :rows="model.rows"
|
|
16
16
|
:readonly="model.readonly" :show-password="model.isPassword" autocomplete="on" :maxlength="model.max" :show-word-limit="model.showWordLimit"
|
|
@@ -153,10 +153,6 @@
|
|
|
153
153
|
});
|
|
154
154
|
});
|
|
155
155
|
},
|
|
156
|
-
inputHandler(e) {
|
|
157
|
-
this.applyHighlights();
|
|
158
|
-
this.$emit('inputHandler',e);
|
|
159
|
-
},
|
|
160
156
|
scrollHandler() {
|
|
161
157
|
var scrollTop = this.$refs.input.$el.children[0].scrollTop;
|
|
162
158
|
var scrollHeight = this.$refs.input.$el.children[0].scrollHeight;
|
package/src/main.js
CHANGED
|
@@ -12,12 +12,12 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
12
12
|
// 关闭生产模式下给出的提示
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
|
-
baseUrl: "http://10.88.22.46:7070/v1/form/router",
|
|
15
|
+
// baseUrl: "http://10.88.22.46:7070/v1/form/router",
|
|
16
16
|
// baseUrl: "http://10.25.10.67:9999/v1/form/router",
|
|
17
17
|
// baseUrl: "http://10.88.22.42:9999/v1/form/router",
|
|
18
18
|
// baseUrl: "http://10.88.22.39:8080/api/",
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
20
|
+
flagRouterSelf: true,
|
|
21
21
|
zindex: 999,
|
|
22
22
|
showRequestSuccessMessage: true,
|
|
23
23
|
showRequestErrorMessage: true,
|
|
@@ -42,7 +42,7 @@ Vue.use(centaline, {
|
|
|
42
42
|
// 获取请求头
|
|
43
43
|
getRequestHeaders: function () {
|
|
44
44
|
return {
|
|
45
|
-
oldToken: '
|
|
45
|
+
oldToken: '854e91e2-3a5e-42af-a522-c51a0f5c09bc',
|
|
46
46
|
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVbC9rL2pgMnNBwicpxFChXKRwIh7g6IpEvPFFNM894TxrmFEvwCbmilkQXc0EpjDIk3XONBfERichhMDBiJI52q2sVjBQXo_QalYfaWhfe-gD5Nv2CCs98wjzqc9fGPc9ep_8zmJGJDzthaViQVxbQjwtSpdqSOLjbB6w0AAP__.nf7jF3ewbimJ8eNFZ72RKXS7qN0SgN5OnkZ0ZEk82Rc',
|
|
47
47
|
|
|
48
48
|
originalRequestURL: 'http://10.88.22.67:8080',
|