|
@@ -1420,11 +1420,18 @@ export default {
|
1420
|
1420
|
getIncidentcategory() {
|
1421
|
1421
|
this.loadShow = true;
|
1422
|
1422
|
var that = this;
|
|
1423
|
+ let postData = {
|
|
1424
|
+ idx: 0,
|
|
1425
|
+ sum: 9999,
|
|
1426
|
+ };
|
|
1427
|
+ // 当前所属院区或责任科室
|
|
1428
|
+ if(this.loginUser.duty){
|
|
1429
|
+ postData.incidentcategory = { duty: this.loginUser.duty.id };
|
|
1430
|
+ }else if(this.loginUser.branch){
|
|
1431
|
+ postData.incidentcategory = { branch: this.loginUser.branch.id }
|
|
1432
|
+ }
|
1423
|
1433
|
this.$http
|
1424
|
|
- .post("service/bpm/data/fetchDataList/incidentcategory", {
|
1425
|
|
- idx: 0,
|
1426
|
|
- sum: 9999
|
1427
|
|
- })
|
|
1434
|
+ .post("service/bpm/data/fetchDataList/incidentcategory", postData)
|
1428
|
1435
|
.then(function(res) {
|
1429
|
1436
|
that.initSjList = JSON.parse(JSON.stringify(res.data.list));
|
1430
|
1437
|
var list = res.data.list;
|