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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
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="'/externalincomemanage/externalincomeimport/readDetail'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
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:{actionType
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) {
@@ -256,6 +256,7 @@ const Enum = {
256
256
  Successful: 200, //成功
257
257
  Error: 201, //失败
258
258
  Unauthorized: 401, //没有登录 或 登录超时
259
+ ConfirmAlert: 202, //确认提示
259
260
  },
260
261
 
261
262
  InsertPos: {