centaline-data-driven 1.4.75 → 1.4.77
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/Detail.vue +1 -1
- package/src/centaline/api/index.js +1 -1
- package/src/centaline/css/common.css +5 -0
- package/src/centaline/dynamicDetail/src/dynamicContactList.vue +7 -1
- package/src/centaline/dynamicForm/src/dynamicForm.vue +2 -2
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +3 -2
- package/src/centaline/dynamicSosTt/src/dynamicSosTt.vue +8 -0
- package/src/centaline/loader/src/ctl/FormList.js +51 -6
- package/src/centaline/loader/src/ctl/SosTt.js +3 -4
- package/src/main.js +1 -1
- 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
package/src/Detail.vue
CHANGED
|
@@ -6,7 +6,7 @@ import common from '../common';
|
|
|
6
6
|
//Axios.defaults.baseURL = 'https://localhost:44381/api'
|
|
7
7
|
Axios.defaults.headers.post['Content-Type'] = 'application/json';
|
|
8
8
|
Axios.defaults.maxContentLength = 400000;
|
|
9
|
-
Axios.defaults.withCredentials = true;//允许带上跨域cookies
|
|
9
|
+
// Axios.defaults.withCredentials = true;//允许带上跨域cookies
|
|
10
10
|
|
|
11
11
|
// Axios.defaults = {
|
|
12
12
|
// // `url` 是用于请求的服务器 URL
|
|
@@ -713,6 +713,11 @@ html {
|
|
|
713
713
|
background-color: #d6d6d6;
|
|
714
714
|
border-color: #d6d6d6;
|
|
715
715
|
}
|
|
716
|
+
.el-button--success.is-disabled, .el-button--success.is-disabled:active, .el-button--success.is-disabled:focus, .el-button--success.is-disabled:hover {
|
|
717
|
+
color: #FFF;
|
|
718
|
+
background-color: #d6d6d6;
|
|
719
|
+
border-color: #d6d6d6;
|
|
720
|
+
}
|
|
716
721
|
.ct-tableToolbar .is-disabled {
|
|
717
722
|
background: #b1b3bc !important;
|
|
718
723
|
}
|
|
@@ -416,7 +416,13 @@
|
|
|
416
416
|
if(field.isRefersh){
|
|
417
417
|
data.apiRouter=self.model.apiRouter;
|
|
418
418
|
data.rowMergedColumns=self.model.rowMergedColumns;
|
|
419
|
-
|
|
419
|
+
if(data.content.rows&&data.content.rows.length>0)
|
|
420
|
+
{
|
|
421
|
+
self.loaderObj.ContactList(data,null,self.load);
|
|
422
|
+
}
|
|
423
|
+
else{
|
|
424
|
+
self.lookOwner(self.apiRouter);
|
|
425
|
+
}
|
|
420
426
|
self.$forceUpdate();
|
|
421
427
|
}
|
|
422
428
|
else if (field.isCallTel) {
|
|
@@ -890,7 +890,7 @@
|
|
|
890
890
|
return;
|
|
891
891
|
}
|
|
892
892
|
submitData[v] = self.$common.getDataOfUpperLower(tempFormData, v);
|
|
893
|
-
if (
|
|
893
|
+
if (!submitData[v]) {
|
|
894
894
|
if (self.model.fieldsDic[v]) {
|
|
895
895
|
checkMsg = "请先录入" + self.model.fieldsDic[v].label;
|
|
896
896
|
}
|
|
@@ -936,7 +936,7 @@
|
|
|
936
936
|
},
|
|
937
937
|
on: {
|
|
938
938
|
submit(option) {
|
|
939
|
-
if (typeof callBack === "function" && !router.
|
|
939
|
+
if (typeof callBack === "function" && !router.changeCallBackFunName) {
|
|
940
940
|
callBack(option);
|
|
941
941
|
}
|
|
942
942
|
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
</div>
|
|
6
6
|
<div class="list-button">
|
|
7
7
|
<component v-if="model.selectRouter!==null" :is="model.selectRouter.is" :vmodel="model.selectRouter" @click="popupSearchListHandle" ></component>
|
|
8
|
-
<el-button v-if="model.create" type="success" class="
|
|
9
|
-
|
|
8
|
+
<el-button v-if="model.create" :disabled="model.disabled" type="success" class="max-btn-add" style="width: auto;" size="mini" icon="el-icon-circle-plus-outline" @click="addRow">
|
|
9
|
+
{{model.createText}}
|
|
10
10
|
</el-button>
|
|
11
11
|
</div>
|
|
12
12
|
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
</el-row>
|
|
67
67
|
</div>
|
|
68
68
|
|
|
69
|
+
<div v-if="model.description" v-html="model.description"></div>
|
|
69
70
|
</div>
|
|
70
71
|
</template>
|
|
71
72
|
<script>
|
|
@@ -263,6 +263,14 @@
|
|
|
263
263
|
this.valid = false;
|
|
264
264
|
return false;
|
|
265
265
|
}
|
|
266
|
+
if(this.model.value || this.model.value1){
|
|
267
|
+
if(this.model.value && this.model.value1){
|
|
268
|
+
return true;
|
|
269
|
+
}
|
|
270
|
+
this.validMessage = "必填";
|
|
271
|
+
this.valid = false;
|
|
272
|
+
return false;
|
|
273
|
+
}
|
|
266
274
|
return true;
|
|
267
275
|
},
|
|
268
276
|
clearClickHandle: function (event) {
|
|
@@ -25,9 +25,19 @@ const FormList = function (source, master) {
|
|
|
25
25
|
get master() {
|
|
26
26
|
return master;
|
|
27
27
|
},
|
|
28
|
+
get disabled(){
|
|
29
|
+
let flag=false;
|
|
30
|
+
if(master.maxValue1 && this.tableData && Number(master.maxValue1)<=this.tableData.length){
|
|
31
|
+
flag=true;
|
|
32
|
+
}
|
|
33
|
+
return flag;
|
|
34
|
+
},
|
|
28
35
|
get title() {
|
|
29
36
|
return master.controlLabel || '';
|
|
30
37
|
},
|
|
38
|
+
get description() {
|
|
39
|
+
return master.description || '';
|
|
40
|
+
},
|
|
31
41
|
get show() {
|
|
32
42
|
if (typeof master.show !== "undefined") {
|
|
33
43
|
return master.show;
|
|
@@ -40,6 +50,18 @@ const FormList = function (source, master) {
|
|
|
40
50
|
set create(v) {
|
|
41
51
|
return source.rightNew = v;
|
|
42
52
|
},
|
|
53
|
+
get createText() {
|
|
54
|
+
let t="新增";
|
|
55
|
+
if(rtn.disabled){
|
|
56
|
+
t=t+"(已达最大数量)";
|
|
57
|
+
}
|
|
58
|
+
else{
|
|
59
|
+
if(master.maxValue1){
|
|
60
|
+
t=t+"("+this.tableData.length+"/"+master.maxValue1+")";
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return t;
|
|
64
|
+
},
|
|
43
65
|
get required() {
|
|
44
66
|
return master.required;
|
|
45
67
|
},
|
|
@@ -286,7 +308,7 @@ const FormList = function (source, master) {
|
|
|
286
308
|
for (let j = 0; j < srow.length; j++) {//遍历数据源每一列
|
|
287
309
|
for (let a = 0; a < rtn.primaryKeys.length; a++) {//遍历组合唯一的字段
|
|
288
310
|
let currentRow = row[rtn.primaryKeys[a]];
|
|
289
|
-
if (srow[j].fieldName1 === rtn.primaryKeys[a] && srow[j].code1 === currentRow.value) {
|
|
311
|
+
if (srow[j].fieldName1 === rtn.primaryKeys[a] && srow[j].code1 && srow[j].code1 === currentRow.value) {
|
|
290
312
|
temp = ++temp;
|
|
291
313
|
tempLabel = tempLabel + currentRow.label + ',';
|
|
292
314
|
break;
|
|
@@ -326,7 +348,7 @@ const FormList = function (source, master) {
|
|
|
326
348
|
}
|
|
327
349
|
else {
|
|
328
350
|
rtn.rows[i].deleted = true;
|
|
329
|
-
}
|
|
351
|
+
}
|
|
330
352
|
}
|
|
331
353
|
});
|
|
332
354
|
callback();
|
|
@@ -369,7 +391,7 @@ const FormList = function (source, master) {
|
|
|
369
391
|
for (let findex = 0; findex < row.length; findex++) {//循环所在行的列
|
|
370
392
|
Vue.set(row[findex], 'code1', ev.formData.source.fields[findex].code1);
|
|
371
393
|
Vue.set(row[findex], 'name1', ev.formData.source.fields[findex].name1);
|
|
372
|
-
if(ev.formData.source.fields[findex].
|
|
394
|
+
if(ev.formData.source.fields[findex].controlType===6){
|
|
373
395
|
Vue.set(row[findex], 'code2', ev.formData.source.fields[findex].code2);
|
|
374
396
|
}
|
|
375
397
|
}
|
|
@@ -439,7 +461,7 @@ const FormList = function (source, master) {
|
|
|
439
461
|
let field = row.columns[findex];
|
|
440
462
|
field.code1 = ev.formData.source.fields[findex].code1;
|
|
441
463
|
field.name1 = ev.formData.source.fields[findex].name1;
|
|
442
|
-
if(ev.formData.source.fields[findex].
|
|
464
|
+
if(ev.formData.source.fields[findex].controlType===6){
|
|
443
465
|
field.code2=ev.formData.source.fields[findex].code2;
|
|
444
466
|
}
|
|
445
467
|
}
|
|
@@ -496,8 +518,7 @@ const FormList = function (source, master) {
|
|
|
496
518
|
rtn._tableData.splice(0,rtn._tableData.length);
|
|
497
519
|
source.rows.splice(1, source.rows.length-1);
|
|
498
520
|
rtn._rows.splice(1, rtn._rows.length-1);
|
|
499
|
-
if(newRows.length>0)
|
|
500
|
-
{
|
|
521
|
+
if(newRows.length>0){
|
|
501
522
|
source.rows.push(newRows);
|
|
502
523
|
rtn._rows.push(newRows);
|
|
503
524
|
}
|
|
@@ -546,6 +567,14 @@ const FormList = function (source, master) {
|
|
|
546
567
|
if(countKey===rtn.primaryKeys.length){
|
|
547
568
|
flagAdd=false;
|
|
548
569
|
if(iRow.deleted){
|
|
570
|
+
if(rtn.disabled){
|
|
571
|
+
Vue.prototype.$message({
|
|
572
|
+
message: '已超过最大数量,不能新增!',
|
|
573
|
+
type: 'error',
|
|
574
|
+
showClose:true,
|
|
575
|
+
});
|
|
576
|
+
return;
|
|
577
|
+
}
|
|
549
578
|
rtn.tableData.forEach((d,index) => {
|
|
550
579
|
if(d.$sourceIndex===r.$sourceIndex){
|
|
551
580
|
rtn.tableData.splice(index, 1);
|
|
@@ -584,12 +613,28 @@ const FormList = function (source, master) {
|
|
|
584
613
|
}
|
|
585
614
|
});
|
|
586
615
|
if(flagAdd){
|
|
616
|
+
if(rtn.disabled){
|
|
617
|
+
Vue.prototype.$message({
|
|
618
|
+
message: '已超过最大数量,不能新增!',
|
|
619
|
+
type: 'error',
|
|
620
|
+
showClose:true,
|
|
621
|
+
});
|
|
622
|
+
return;
|
|
623
|
+
}
|
|
587
624
|
let rows=[];
|
|
588
625
|
rows.push(row);
|
|
589
626
|
rtn.insertRow(rows)
|
|
590
627
|
}
|
|
591
628
|
}
|
|
592
629
|
else{
|
|
630
|
+
if(rtn.disabled){
|
|
631
|
+
Vue.prototype.$message({
|
|
632
|
+
message: '已超过最大数量,不能新增!',
|
|
633
|
+
type: 'error',
|
|
634
|
+
showClose:true,
|
|
635
|
+
});
|
|
636
|
+
return;
|
|
637
|
+
}
|
|
593
638
|
let rows=[];
|
|
594
639
|
rows.push(row);
|
|
595
640
|
rtn.insertRow(rows)
|
|
@@ -14,11 +14,10 @@ const SosTt = function (source, moreActionRouter) {
|
|
|
14
14
|
return source.name1;
|
|
15
15
|
},
|
|
16
16
|
set text(v) {
|
|
17
|
-
if(source.displayName1)
|
|
18
|
-
{
|
|
17
|
+
if(source.displayName1){
|
|
19
18
|
source.displayName1 = v;
|
|
20
|
-
}
|
|
21
|
-
{
|
|
19
|
+
}
|
|
20
|
+
else{
|
|
22
21
|
source.name1 = v;
|
|
23
22
|
}
|
|
24
23
|
},
|
package/src/main.js
CHANGED
|
@@ -48,7 +48,7 @@ Vue.use(centaline, {
|
|
|
48
48
|
getRequestHeaders: function () {
|
|
49
49
|
return {
|
|
50
50
|
oldToken: '3ba3f510-93fd-4103-9249-73c13f3f6fc2',
|
|
51
|
-
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
51
|
+
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEzjsOwjAQRdG9uM5I4_l5TOfEScMiUAJBggoRkECIvRPEImhPcd97heU-hU3IlMxFGLq-ZZBaErQWETrLRYsXslZ3NmglSgk4DQ5dRAaiUgG9poErZ0u4q5KL01paaS1R7MFbLkAqLjyo5KShCfPjEjbRHInEEZtwGm8_iOzyhfsyX7fz8x_nzrfTOjuKHYx0AjdGENQMeZoc9nhUjhzjqBjeHwAAAP__.IhtJ2XWmn0L1rSDetKc8BClKlOEBZl6GWM0s2TfbR1k',
|
|
52
52
|
|
|
53
53
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
54
54
|
EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',
|