|
@@ -696,7 +696,11 @@ $(function () {
|
|
|
const html = ['<div class="mr-2">上报人<b class="text-danger">*</b></div>'];
|
|
|
if (this.rptInfo.uid) {
|
|
|
const userInfo = _.find(accountList, { id: this.rptInfo.uid });
|
|
|
- html.push(`<div class="mr-2">${userInfo.name}</div>`, `<div>${this.getSelectHtml('替换')}</div>`);
|
|
|
+ if (userInfo) {
|
|
|
+ html.push(`<div class="mr-2">${userInfo.name}</div>`, `<div>${this.getSelectHtml('替换')}</div>`);
|
|
|
+ } else {
|
|
|
+ html.push(`<div class="mr-2">上报人已失效</div>`, `<div>${this.getSelectHtml('替换')}</div>`);
|
|
|
+ }
|
|
|
} else {
|
|
|
html.push(`<div>${this.getSelectHtml('选择上报人')}</div>`);
|
|
|
}
|