cloud-web-corejs 1.0.82 → 1.0.84
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.
@@ -56,7 +56,7 @@
|
|
56
56
|
<i class="el-icon-refresh"></i>
|
57
57
|
</el-button>
|
58
58
|
</el-tooltip>
|
59
|
-
<el-button type="text" @click="
|
59
|
+
<el-button type="text" @click="toWfManageList" class="more">
|
60
60
|
<i class="el-icon-news"></i>
|
61
61
|
<span>{{ $t1('查看更多+') }}</span>
|
62
62
|
</el-button>
|
@@ -183,6 +183,9 @@ import corejsConfig from "@/corejsConfig";
|
|
183
183
|
|
184
184
|
export default {
|
185
185
|
name: 'home',
|
186
|
+
props: {
|
187
|
+
wf_manage_url: String
|
188
|
+
},
|
186
189
|
components: {
|
187
190
|
systemNoticeInfoDialog,
|
188
191
|
commMenuDialog,
|
@@ -217,7 +220,7 @@ export default {
|
|
217
220
|
unreadMessageNum: 0,
|
218
221
|
activating: true,
|
219
222
|
wfTimer: null,
|
220
|
-
homeConfig:corejsConfig.homeConfig || {}
|
223
|
+
homeConfig: corejsConfig.homeConfig || {}
|
221
224
|
};
|
222
225
|
},
|
223
226
|
activated() {
|
@@ -467,10 +470,11 @@ export default {
|
|
467
470
|
this.$router.push({path: path, query: {url: route.url}});
|
468
471
|
} else {
|
469
472
|
let path = this.getPath(route)
|
473
|
+
if (!path) return
|
470
474
|
this.$router.push(path);
|
471
475
|
}
|
472
476
|
},
|
473
|
-
getPath(route3){
|
477
|
+
getPath(route3) {
|
474
478
|
let item = null;
|
475
479
|
let path = null
|
476
480
|
if (route3.type == 0) {
|
@@ -491,6 +495,9 @@ export default {
|
|
491
495
|
let url = route3.route || route3.url;
|
492
496
|
path = url;
|
493
497
|
}
|
498
|
+
if (path && path.startsWith("@")) {
|
499
|
+
path = null
|
500
|
+
}
|
494
501
|
return path;
|
495
502
|
},
|
496
503
|
jumpOutLink(route) {
|
@@ -565,6 +572,10 @@ export default {
|
|
565
572
|
this.showWfDialog = false;
|
566
573
|
this.wfClose();
|
567
574
|
}
|
575
|
+
},
|
576
|
+
toWfManageList() {
|
577
|
+
let url = this.wf_manage_url || '/basic/wf/wf_manage/list'
|
578
|
+
this.$router.push(url)
|
568
579
|
}
|
569
580
|
}
|
570
581
|
};
|
@@ -757,7 +768,7 @@ body #app .index-home {
|
|
757
768
|
}
|
758
769
|
|
759
770
|
.fast-box {
|
760
|
-
|
771
|
+
margin: 6px 4px 4px;
|
761
772
|
overflow: hidden;
|
762
773
|
|
763
774
|
.item {
|
@@ -765,6 +776,7 @@ body #app .index-home {
|
|
765
776
|
text-align: center;
|
766
777
|
float: left;
|
767
778
|
margin-right: 14px;
|
779
|
+
|
768
780
|
p {
|
769
781
|
color: #2a6494;
|
770
782
|
border: solid 1px #e2e2e2;
|
@@ -797,7 +809,7 @@ body #app .index-home {
|
|
797
809
|
position: absolute;
|
798
810
|
left: -1px;
|
799
811
|
top: 50%;
|
800
|
-
margin-top
|
812
|
+
margin-top: -12px;
|
801
813
|
}
|
802
814
|
|
803
815
|
&:hover {
|
@@ -1002,6 +1014,9 @@ body #app .index-home {
|
|
1002
1014
|
}
|
1003
1015
|
}
|
1004
1016
|
}
|
1005
|
-
|
1017
|
+
|
1018
|
+
::v-deep .el-card.is-always-shadow {
|
1019
|
+
box-shadow: 0 2px 2px 0 rgb(0 0 0 / 6%);
|
1020
|
+
}
|
1006
1021
|
}
|
1007
1022
|
</style>
|
@@ -136,14 +136,14 @@
|
|
136
136
|
<el-input size="small" v-model="user.email" maxlength="200" clearable/>
|
137
137
|
</el-form-item>
|
138
138
|
</td>
|
139
|
-
<!-- <th v-if="flag!=='2'">
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
139
|
+
<!-- <th v-if="flag!=='2'">
|
140
|
+
GUID
|
141
|
+
</th>
|
142
|
+
<td v-if="flag!=='2'">
|
143
|
+
<el-form-item prop="guid" :rules="[{ required: false, trigger: 'blur' }]">
|
144
|
+
<el-input size="small" v-model="user.guid" maxlength="200" clearable/>
|
145
|
+
</el-form-item>
|
146
|
+
</td>-->
|
147
147
|
<th>{{ $t1('地址') }}</th>
|
148
148
|
<td colspan="3">
|
149
149
|
<el-input size="small" v-model="user.address" class="b" maxlength="255" clearable/>
|
@@ -221,6 +221,13 @@
|
|
221
221
|
<el-input size="small" v-model="item.guid" maxlength="200" clearable/>
|
222
222
|
</el-form-item>
|
223
223
|
</span>
|
224
|
+
<span>
|
225
|
+
<el-form-item label="是否默认组织" :prop="'userCompanyInfoDTOs.'+index1+'.defaults'"
|
226
|
+
:rules="[{ required: false, trigger: 'blur' }]">
|
227
|
+
<el-checkbox v-model="item.defaults"
|
228
|
+
@change="changeCompanyDefault(item)"></el-checkbox>
|
229
|
+
</el-form-item>
|
230
|
+
</span>
|
224
231
|
</div>
|
225
232
|
<div class="m-2">
|
226
233
|
<div class="d-item" style="width: 65%;">
|
@@ -754,7 +761,7 @@ export default {
|
|
754
761
|
});
|
755
762
|
var items = [];
|
756
763
|
rows.forEach(row => {
|
757
|
-
const item = {companyCode: row.companyCode, companyName: row.companyName, guid: null};
|
764
|
+
const item = {companyCode: row.companyCode, companyName: row.companyName, guid: null, defaults: false};
|
758
765
|
if (!map[item.companyCode]) {
|
759
766
|
items.push(item);
|
760
767
|
}
|
@@ -763,6 +770,9 @@ export default {
|
|
763
770
|
});
|
764
771
|
// $grid.insertAt(items, -1);
|
765
772
|
this.user.userCompanyInfoDTOs.splice(0, 0, ...items);
|
773
|
+
if (this.user.userCompanyInfoDTOs.length == 1) {
|
774
|
+
this.user.userCompanyInfoDTOs[0].defaults = true
|
775
|
+
}
|
766
776
|
// this.user.userCompanyInfoDTOs = this.user.userCompanyInfoDTOs.concat(items);
|
767
777
|
}
|
768
778
|
callback && callback();
|
@@ -1015,6 +1025,15 @@ export default {
|
|
1015
1025
|
this.user.countryName = row.countryName;
|
1016
1026
|
this.user.countryCode = row.countryCode;
|
1017
1027
|
}
|
1028
|
+
},
|
1029
|
+
changeCompanyDefault(item) {
|
1030
|
+
let companyCode = item.companyCode
|
1031
|
+
if (item.defaults) {
|
1032
|
+
this.user.userCompanyInfoDTOs.forEach(row => {
|
1033
|
+
row.defaults = row.companyCode == companyCode;
|
1034
|
+
})
|
1035
|
+
}
|
1036
|
+
|
1018
1037
|
}
|
1019
1038
|
}
|
1020
1039
|
};
|