centaline-data-driven 1.4.8 → 1.4.10

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.
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.4.8",
3
+ "version": "1.4.10",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Detail.vue CHANGED
@@ -10,7 +10,7 @@
10
10
  name: 'DataDrivendetail',
11
11
  data() {
12
12
  return {
13
- apiParam: {actionType: 1,chanceID: "1583031531402825728"} ,
13
+ apiParam: {actionType: 1,chanceID: "1590537844491948032"} ,
14
14
  }
15
15
  },
16
16
  mounted() {
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="'/commissionmanage/apply'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
4
+ <ct-form :api="'/api/third-dept-tran/transaction/detail'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
5
5
  <ct-dialog-list></ct-dialog-list>
6
6
  </div>
7
7
  </template>
@@ -12,7 +12,21 @@
12
12
  data() {
13
13
  return {
14
14
  apiParam:{
15
-
15
+ actionType
16
+ :
17
+ "1",
18
+ originalTraId
19
+ :
20
+ "1590164845049495554",
21
+ pageOnly
22
+ :
23
+ "true",
24
+ pageStyle
25
+ :
26
+ "2",
27
+ pageTitle
28
+ :
29
+ "成交报告",
16
30
  },
17
31
  topHeight:10,
18
32
  }
@@ -53,6 +53,16 @@
53
53
  },
54
54
  methods: {
55
55
  load(data) {
56
+ if(data.options && data.code1){
57
+ var checked = data.code1 === '' ? [] : [].concat(JSON.parse(data.code1));
58
+ checked.forEach((n) => {
59
+ let ic=data.options.findIndex((op) => { return op.code === n.code });
60
+ if(ic===-1){
61
+ n.flagDeleted=true;
62
+ }
63
+ });
64
+ data.code1 = JSON.stringify(checked);
65
+ }
56
66
  this.model = data;
57
67
  },
58
68
  clearClickHandle: function (event) {
@@ -62,7 +62,7 @@
62
62
  </el-dropdown>
63
63
  </span>
64
64
  </div>
65
- <el-progress type="circle" v-if="file.progressFlag" :percentage="file.loadProgress" :width="96" :height="96" class="file-cirle"></el-progress>
65
+ <el-progress type="circle" v-if="file.progressFlag" :percentage="file.loadProgress.toFixed(2)" :width="96" :height="96" class="file-cirle"></el-progress>
66
66
  </div>
67
67
  </el-upload>
68
68
  </template>
@@ -128,7 +128,7 @@
128
128
  </el-dropdown>
129
129
  </span>
130
130
  </div>
131
- <el-progress type="circle" v-if="file.progressFlag" :percentage="file.loadProgress" :width="96" :height="96" class="file-cirle"></el-progress>
131
+ <el-progress type="circle" v-if="file.progressFlag" :percentage="file.loadProgress.toFixed(2)" :width="96" :height="96" class="file-cirle"></el-progress>
132
132
  </div>
133
133
  </el-upload>
134
134
  </template>
@@ -329,7 +329,7 @@
329
329
  return false;
330
330
  }
331
331
  }
332
- if (this.model.min && this.model.required) {
332
+ if (this.model.min) {
333
333
  if (this.model.getfileListLength() < this.model.min) {
334
334
  //change时需要判断有没有上传图片如果没有图片则不提示
335
335
  if (eventName == "change" && this.model.getfileListLength() > 0) {
@@ -425,28 +425,9 @@
425
425
  let url = this.model.action; //上传文件接口
426
426
  let uid = this.uploadguid();
427
427
  try {
428
- let awaitfile = {
429
- "url": "",
430
- "source": "",
431
- "mediaUrl": "",
432
- "fileName": "",
433
- "flagDefault": "",
434
- "mediaTypeID": "",
435
- "flagDeleted": "",
436
- "actionType": "",
437
- "rightDel": "",
438
- "rightEdit": "",
439
- "rightDownload": "",
440
- "mediaLabelID": "",
441
- "mediaLabelName": "",
442
- "fileExtension": "",
443
- "progressFlag": true,
444
- "loadProgress": 0,
445
- "uid": uid,
446
- }
447
- this.model.fileList.push(awaitfile);
448
-
449
428
  file.uid = uid;
429
+
430
+ this.model.addfileItem(file);
450
431
  const res = await uploadByPieces(this.model.action, { file }, this.uploadpro, options);
451
432
  return res;
452
433
 
@@ -461,19 +442,24 @@
461
442
  return (this.S4() + this.S4() + '-' + this.S4() + '-' + this.S4() + '-' + this.S4() + '-' + this.S4() + this.S4() + this.S4());
462
443
  },
463
444
  uploadpro(uploadOptions, res, xhr) {
464
-
445
+ const { file, onProgress, onSuccess, onError } = uploadOptions;
465
446
  if (xhr.status >= 400) {
466
447
  this.$message.error(res);
448
+ file.source = { "actionType": 2 };
449
+ this.model.deleteFile(file, false);
450
+ this.selfValidExcute("remove");
467
451
  }
468
452
  else if (xhr.status == 0) {
469
453
  this.$message.error(res);
454
+ file.source= { "actionType": 2 } ;
455
+ this.model.deleteFile(file, false);
456
+ this.selfValidExcute("remove");
470
457
  }
471
458
  else if (xhr.status == 200) {
472
459
  if (res.rtnCode != 200 && res.rtnMsg != "") {
473
460
  this.$message.error(res.rtnMsg);
474
461
  return;
475
462
  }
476
- const { file, onProgress, onSuccess, onError } = uploadOptions;
477
463
  const Progress = Math.min(100, Math.floor(1E4 * parseInt(res.content.nextOffSet) / parseInt(file.size)) / 100);
478
464
  this.model.setByPieces(res, Progress, file);
479
465