|
@@ -40,6 +40,13 @@ export default {
|
|
apiSecurityPerson.getPersonDuty({
|
|
apiSecurityPerson.getPersonDuty({
|
|
type: type
|
|
type: type
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
|
|
+ if (res) {
|
|
|
|
+ res.forEach(item => {
|
|
|
|
+ if (item.photo.indexOf('/')===0) {
|
|
|
|
+ item.photo = '/ioc-api'+item.photo;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
this.dutyPerson = res;
|
|
this.dutyPerson = res;
|
|
this.oriDutyPerson = JSON.parse(JSON.stringify(this.dutyPerson));
|
|
this.oriDutyPerson = JSON.parse(JSON.stringify(this.dutyPerson));
|
|
this.loading = false;
|
|
this.loading = false;
|