centaline-data-driven 1.4.4 → 1.4.5
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 -16
- package/src/centaline/api/index.js +2 -0
- package/src/centaline/dynamicForm/src/dynamicForm.vue +23 -1
- package/src/centaline/loader/src/ctl/lib/Enum.js +1 -0
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
- 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="'/PropertyContact/getLayoutOfNew'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
|
|
5
5
|
<ct-dialog-list></ct-dialog-list>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
@@ -11,21 +11,8 @@
|
|
|
11
11
|
name: 'DataDrivenForm',
|
|
12
12
|
data() {
|
|
13
13
|
return {
|
|
14
|
-
apiParam:{
|
|
15
|
-
:
|
|
16
|
-
"3",
|
|
17
|
-
originalTraId
|
|
18
|
-
:
|
|
19
|
-
"1572420664851103746",
|
|
20
|
-
pageOnly
|
|
21
|
-
:
|
|
22
|
-
"true",
|
|
23
|
-
pageStyle
|
|
24
|
-
:
|
|
25
|
-
"2",
|
|
26
|
-
pageTitle
|
|
27
|
-
:
|
|
28
|
-
"修改成交单",
|
|
14
|
+
apiParam:{
|
|
15
|
+
chanceID: "1580430736434008064", actionType: 2
|
|
29
16
|
},
|
|
30
17
|
topHeight:10,
|
|
31
18
|
}
|
|
@@ -221,6 +221,8 @@ const api = {
|
|
|
221
221
|
self.$common.openDialog(dialogOption);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
+
else if(data.rtnCode === Enum.ReturnCode.ConfirmAlert){
|
|
225
|
+
}
|
|
224
226
|
else {
|
|
225
227
|
if (response.data.rtnMsg && common.getDataDrivenOpts().showRequestErrorMessage) {
|
|
226
228
|
if (data.MsgAlertStyle && data.MsgAlertStyle == Enum.MessageAlertStyle.Dialog) {
|
|
@@ -336,6 +336,25 @@
|
|
|
336
336
|
if (self.parentModel) {
|
|
337
337
|
self.parentModel.$vue.closeTabThen(data);
|
|
338
338
|
}
|
|
339
|
+
}
|
|
340
|
+
else if (data.rtnCode === 202) {
|
|
341
|
+
self.$common.confirm(data.rtnMsg, '提示', {
|
|
342
|
+
confirmButtonText: '确定',
|
|
343
|
+
cancelButtonText: '取消',
|
|
344
|
+
type: 'warning'
|
|
345
|
+
}).then(() => {
|
|
346
|
+
field.doAction(self.getFormObj({flagHaveAlert:'1'}), (res) => {
|
|
347
|
+
if (res.rtnCode === 200) {
|
|
348
|
+
if(res.notification===17){
|
|
349
|
+
self.clickHandler(self.model.getRtnRouter(res.content),null)
|
|
350
|
+
}
|
|
351
|
+
else{
|
|
352
|
+
self.$emit('submit', { formData: self.model, responseData: res });
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
});
|
|
356
|
+
}).catch(() => {
|
|
357
|
+
});
|
|
339
358
|
}
|
|
340
359
|
},self.model.scripts);
|
|
341
360
|
}
|
|
@@ -869,11 +888,14 @@
|
|
|
869
888
|
}
|
|
870
889
|
});
|
|
871
890
|
},
|
|
872
|
-
getFormObj(){
|
|
891
|
+
getFormObj(moreFormObj){
|
|
873
892
|
let formData=this.model.getFormObj();
|
|
874
893
|
if(this.$route && this.$route.query && this.$route.query.pageStyle){
|
|
875
894
|
return Object.assign(formData,{'pageStyle':this.$route.query.pageStyle});
|
|
876
895
|
}
|
|
896
|
+
if(moreFormObj){
|
|
897
|
+
return Object.assign(formData,moreFormObj);
|
|
898
|
+
}
|
|
877
899
|
return formData;
|
|
878
900
|
},
|
|
879
901
|
getFileData(field) {
|