centaline-data-driven 1.4.9 → 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.
- package/centaline-data-driven-1.4.9.tgz +0 -0
- package/package.json +1 -1
- package/src/Detail.vue +1 -1
- package/src/Form.vue +16 -2
- package/src/centaline/dynamicCheckbox/src/dynamicCheckbox.vue +10 -0
- package/src/centaline/dynamicFile/src/dynamicFile.vue +3 -3
- package/src/centaline/dynamicForm/src/dynamicForm.vue +1 -1
- package/src/centaline/dynamicPhotoSelect/src/dynamicPhotoSelect.vue +1 -1
- package/src/centaline/dynamicSeg/src/dynamicSeg.vue +12 -0
- package/src/main.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
Binary file
|
package/package.json
CHANGED
package/src/Detail.vue
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/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
|
|
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) {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
</component>
|
|
83
83
|
</div>
|
|
84
84
|
<div style="min-height:200px" v-if="loading"></div>
|
|
85
|
-
<iframe :src="downloadUrl" style="height:0px;width:0px"> </iframe>
|
|
85
|
+
<iframe :src="downloadUrl" style="height:0px;width:0px;border-width: 0px;"> </iframe>
|
|
86
86
|
</div>
|
|
87
87
|
</template>
|
|
88
88
|
<script>
|
|
@@ -67,6 +67,18 @@
|
|
|
67
67
|
},
|
|
68
68
|
methods: {
|
|
69
69
|
load(data) {
|
|
70
|
+
if(data.segmentValue && data.value){
|
|
71
|
+
let flagExists=false;
|
|
72
|
+
data.segmentValue.forEach((n) => {
|
|
73
|
+
if(n.code===data.value){
|
|
74
|
+
flagExists=true;
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
if(!flagExists){
|
|
79
|
+
data.value='';
|
|
80
|
+
}
|
|
81
|
+
}
|
|
70
82
|
this.model = data;
|
|
71
83
|
this.model.self = this;
|
|
72
84
|
},
|
package/src/main.js
CHANGED
|
@@ -42,8 +42,8 @@ Vue.use(centaline, {
|
|
|
42
42
|
// 获取请求头
|
|
43
43
|
getRequestHeaders: function () {
|
|
44
44
|
return {
|
|
45
|
-
oldToken: '
|
|
46
|
-
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
45
|
+
oldToken: '20ad6f77-b0fc-4a65-9334-eda7a89c5bcf',
|
|
46
|
+
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrEOgjAURf_lzbykr33ta9mk4OJHkFY64GQEEo3x39UIG7tnOMNZ7n3CtGSoQVZwRxt9WMEdbfREHIRch4cgEdmxQU_RY2QX-dh2JjYtVFDuV6jJOa-1khAqGNP8C2TYfMMyldupPP5x7jKPn1nDyXOygsPgM_JZGcyWFVrJJFmTI0nwegMAAP__.LBBnoVAIPdLFhGmg3hkcqPmaqN4LrF3HE6pvgDdFJRI',
|
|
47
47
|
|
|
48
48
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
49
49
|
EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',
|