mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化类型修复
Signed-off-by: java110 <928255095@qq.com>
This commit is contained in:
parent
b110ea6773
commit
b44bb07a03
@ -12,7 +12,7 @@
|
|||||||
},
|
},
|
||||||
_initMethod: function () {
|
_initMethod: function () {
|
||||||
$that.editComplaintTypeInfo.typeCd = vc.getParam('typeCd');
|
$that.editComplaintTypeInfo.typeCd = vc.getParam('typeCd');
|
||||||
vc.emit('selectStaffs', 'setStaffs', $that.editComplaintTypeInfo.staffs);
|
// vc.emit('selectStaffs', 'setStaffs', $that.editComplaintTypeInfo.staffs);
|
||||||
|
|
||||||
$that._loadComplaintType();
|
$that._loadComplaintType();
|
||||||
|
|
||||||
@ -37,25 +37,23 @@
|
|||||||
param,
|
param,
|
||||||
function (json, res) {
|
function (json, res) {
|
||||||
let _json = JSON.parse(json);
|
let _json = JSON.parse(json);
|
||||||
|
let staffs = _json.data[0].staffs;
|
||||||
|
_json.data[0].staffs = [];;
|
||||||
vc.copyObject(_json.data[0], $that.editComplaintTypeInfo);
|
vc.copyObject(_json.data[0], $that.editComplaintTypeInfo);
|
||||||
|
staffs.forEach(_t=>{
|
||||||
|
_t.userId = _t.staffId;
|
||||||
|
_t.name = _t.staffName;
|
||||||
|
_t.userName = _t.staffName
|
||||||
|
|
||||||
vc.emit('selectStaffs', 'setStaffs', $that.editComplaintTypeInfo.staffs);
|
})
|
||||||
|
vc.emit('selectStaffs', 'setStaffs', staffs);
|
||||||
|
|
||||||
|
|
||||||
let _staffs = _json.data[0].staffs;
|
|
||||||
|
|
||||||
if (!_staffs || _staffs.length < 1) {
|
if (!staffs || staffs.length < 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$that.editComplaintTypeInfo.staffs = staffs;
|
||||||
_staffs.forEach(_staff => {
|
|
||||||
$that.editComplaintTypeInfo.staffs.push({
|
|
||||||
userId:_staff.staffId,
|
|
||||||
name:_staff.staffName,
|
|
||||||
userName:_staff.staffName,
|
|
||||||
})
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
}, function (errInfo, error) {
|
}, function (errInfo, error) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user