centaline-data-driven 1.2.19 → 1.2.20
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/centaline/css/common.css +1 -1
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +7 -6
- package/src/centaline/dynamicFile/src/dynamicFile.vue +42 -20
- package/src/centaline/dynamicPhotoSelect/src/dynamicPhotoSelect.vue +271 -199
- package/src/centaline/dynamicPhotoSelectList/src/dynamicPhotoSelectList.vue +1 -2
- package/src/centaline/dynamicTree/src/dynamicTree.vue +10 -0
- package/src/centaline/loader/src/ctl/Detail.js +14 -14
- package/src/centaline/loader/src/ctl/File.js +3 -0
- package/src/centaline/loader/src/ctl/PhotoSelect.js +10 -7
- package/src/centaline/loader/src/ctl/PhotoSelectList.js +2 -56
- package/src/centaline/validate/index.js +10 -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
|
@@ -34,23 +34,24 @@
|
|
|
34
34
|
<img src="../../../assets/B.png" alt="" style="width: 26px;height: 26px;vertical-align: bottom;margin-left:8px">
|
|
35
35
|
</div>
|
|
36
36
|
<div class="mt5">
|
|
37
|
-
|
|
37
|
+
<component class="max-report w93" v-if="model.actionRouters!==null && model.actionRouters[0]!==null"
|
|
38
38
|
:is="model.actionRouters[0].is" :vmodel="model.actionRouters[0]" :api="model.optionApi" @click="fieldClickHandler(model.actionRouters[0],$event)"></component>
|
|
39
39
|
<component class="max-report" v-if="model.actionRouters!==null && model.actionRouters[1]!==null"
|
|
40
40
|
:is="model.actionRouters[1].is" :vmodel="model.actionRouters[1]" :api="model.optionApi" @click="fieldClickHandler(model.actionRouters[1],$event)"></component>
|
|
41
41
|
</div>
|
|
42
42
|
<div class="mt5">
|
|
43
43
|
<button type="button" class="el-button el-button--info el-button--mini max-report rel w64"
|
|
44
|
-
v-if="model.actionRoutersMoreList !== null">
|
|
44
|
+
v-if="model.actionRoutersMoreList !== null && model.actionRoutersMoreList.length>0">
|
|
45
45
|
<img src="../../../assets/dian.png" alt="" class="report">
|
|
46
46
|
<ul class="report-cont">
|
|
47
47
|
<li v-for="(col, index) in model.actionRoutersMoreList" :key="index" v-if="col.show !== false">
|
|
48
48
|
<component class="max-report" :is="col.is" :vmodel="col" :api="model.optionApi" @click="fieldClickHandler(col,$event)"></component>
|
|
49
49
|
</li>
|
|
50
50
|
</ul>
|
|
51
|
-
</button>
|
|
52
|
-
|
|
53
|
-
:is="model.actionRouters[2].is" :vmodel="model.actionRouters[2]" :api="model.optionApi" @click="fieldClickHandler(model.actionRouters[2],$event)"
|
|
51
|
+
</button>
|
|
52
|
+
<component v-else-if="model.actionRouters!==null && model.actionRouters.legth===3" class="max-report"
|
|
53
|
+
:is="model.actionRouters[2].is" :vmodel="model.actionRouters[2]" :api="model.optionApi" @click="fieldClickHandler(model.actionRouters[2],$event)">
|
|
54
|
+
</component>
|
|
54
55
|
</div>
|
|
55
56
|
</div>
|
|
56
57
|
</div>
|
|
@@ -704,7 +705,7 @@
|
|
|
704
705
|
color: #000000;
|
|
705
706
|
}
|
|
706
707
|
.operation1{
|
|
707
|
-
color: #
|
|
708
|
+
color: #388cd3;
|
|
708
709
|
}
|
|
709
710
|
.operation2{
|
|
710
711
|
color: #388cd3;
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
:on-success="handleAvatarSuccess"
|
|
16
16
|
:on-progress="uploadProcess"
|
|
17
17
|
:limit="parseInt(model.max||999)"
|
|
18
|
-
:on-exceed="handleExceed"
|
|
19
|
-
>
|
|
18
|
+
:on-exceed="handleExceed">
|
|
20
19
|
<i slot="default" class="el-icon-plus"></i>
|
|
20
|
+
<!--<i slot="default" class="el-icon-plus" style="position: relative;"><div @click="testss($event)" class="max-ewmsc"></div></i>-->
|
|
21
|
+
|
|
21
22
|
<div slot="tip" class="el-upload__tip errorMessage" v-show="!valid">{{validMessage}}</div>
|
|
22
23
|
<div slot="file" slot-scope="{file}" :title="file.fileName">
|
|
23
24
|
<div class="cover-list-item">
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
</span>
|
|
47
48
|
<el-dropdown-menu slot="dropdown" class="el-upload-list__item-preview">
|
|
48
49
|
<el-dropdown-item v-for="(option, index) in model.optionModel.options" :key="index" :command="{option:option,file:file}">
|
|
49
|
-
|
|
50
|
+
{{option[model.optionModel.optionAttrs.label]}}
|
|
50
51
|
</el-dropdown-item>
|
|
51
52
|
</el-dropdown-menu>
|
|
52
53
|
</el-dropdown>
|
|
@@ -101,7 +102,7 @@
|
|
|
101
102
|
},
|
|
102
103
|
handleExceed()
|
|
103
104
|
{
|
|
104
|
-
this.validMessage = "附件数量最多" + this.model.max+ "
|
|
105
|
+
this.validMessage = "附件数量最多" + this.model.max+ "张";
|
|
105
106
|
this.valid = false;
|
|
106
107
|
},
|
|
107
108
|
//删除
|
|
@@ -112,7 +113,7 @@
|
|
|
112
113
|
//type: 'warning'
|
|
113
114
|
}).then(() => {
|
|
114
115
|
this.model.deleteFile(file, false);
|
|
115
|
-
this.selfValidExcute();
|
|
116
|
+
this.selfValidExcute('remove');
|
|
116
117
|
}).catch(() => {
|
|
117
118
|
});
|
|
118
119
|
},
|
|
@@ -207,7 +208,7 @@
|
|
|
207
208
|
}
|
|
208
209
|
|
|
209
210
|
if (this.model.max) {
|
|
210
|
-
|
|
211
|
+
//change
|
|
211
212
|
if(this.model.getfileListLength() >= this.model.max)
|
|
212
213
|
{
|
|
213
214
|
this.disableUpload=true;
|
|
@@ -216,25 +217,34 @@
|
|
|
216
217
|
this.disableUpload=false;
|
|
217
218
|
}
|
|
218
219
|
|
|
219
|
-
if (this.model.getfileListLength() > this.model.max) {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
}
|
|
220
|
+
// if (this.model.getfileListLength() > this.model.max) {
|
|
221
|
+
// this.validMessage = "附件数量";
|
|
222
|
+
// if(this.model.min)
|
|
223
|
+
// {
|
|
224
|
+
// this.validMessage += "最少" + this.model.min + "个"+",";
|
|
225
|
+
// }
|
|
226
|
+
// // this.validMessage += "最多" + this.model.max+ "个";
|
|
227
|
+
// this.valid = false;
|
|
228
|
+
// return false;
|
|
229
|
+
// }
|
|
229
230
|
}
|
|
230
231
|
if (this.model.min) {
|
|
231
232
|
if (this.model.getfileListLength() < this.model.min) {
|
|
232
|
-
|
|
233
|
-
|
|
233
|
+
//change时需要判断有没有上传图片如果没有图片则不提示
|
|
234
|
+
|
|
235
|
+
if(eventName=='change' && this.model.getfileListLength()>0)
|
|
236
|
+
{
|
|
237
|
+
this.validMessage = "附件数量还差" + (parseInt(this.model.min)-this.model.getfileListLength()) + "张";
|
|
238
|
+
this.valid = false;
|
|
239
|
+
}else if(eventName=='valid')
|
|
234
240
|
{
|
|
235
|
-
this.validMessage
|
|
241
|
+
this.validMessage = "附件数量还差" + (parseInt(this.model.min)-this.model.getfileListLength()) + "张";
|
|
242
|
+
this.valid = false;
|
|
243
|
+
}else if(eventName=='remove')
|
|
244
|
+
{
|
|
245
|
+
this.valid = true;
|
|
236
246
|
}
|
|
237
|
-
|
|
247
|
+
|
|
238
248
|
return false;
|
|
239
249
|
}
|
|
240
250
|
}
|
|
@@ -317,4 +327,16 @@
|
|
|
317
327
|
width: 100px;
|
|
318
328
|
height: 100px;
|
|
319
329
|
}
|
|
330
|
+
.el-upload .max-ewmsc {
|
|
331
|
+
background: url("../../../assets/ewm.png") no-repeat;
|
|
332
|
+
content: '';
|
|
333
|
+
display: block;
|
|
334
|
+
width: 30px;
|
|
335
|
+
height: 30px;
|
|
336
|
+
font-size: 30px;
|
|
337
|
+
background-size: 30px;
|
|
338
|
+
position: absolute;
|
|
339
|
+
top: -35px;
|
|
340
|
+
left: 35px;
|
|
341
|
+
}
|
|
320
342
|
</style>
|