人员线体绑定优化

yangwl
shaoyong 9 months ago
parent 43a7ad1a1f
commit 6adaac7446

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询市场反馈信息列表
export function listQcFeedback(query) {
return request({
url: '/quality/qcFeedback/list',
method: 'get',
params: query
});
}
// 查询市场反馈信息详细
export function getQcFeedback(recordId) {
return request({
url: '/quality/qcFeedback/' + recordId,
method: 'get'
});
}
// 新增市场反馈信息
export function addQcFeedback(data) {
return request({
url: '/quality/qcFeedback',
method: 'post',
data: data
});
}
// 修改市场反馈信息
export function updateQcFeedback(data) {
return request({
url: '/quality/qcFeedback',
method: 'put',
data: data
});
}
// 删除市场反馈信息
export function delQcFeedback(recordId) {
return request({
url: '/quality/qcFeedback/' + recordId,
method: 'delete'
});
}

@ -227,13 +227,25 @@ export default {
/** 绑定按钮操作 */ /** 绑定按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
let userCodes = row.userCode || this.ids; let userCodes = [];
let userNames = row.userName || this.names; let userNames = [];
this.handleCode = this.ids.toString(); if(row.userCode) {
this.form.userCodes = userCodes; userCodes[0] = row.userCode;
this.form.userNames = userNames; }else{
this.open = true; userCodes = this.ids;
this.title = "修改人员线体绑定"; }
if(row.userName) {
userNames[0] = row.userName
}else{
userNames = this.names;
}
this.handleCode = userCodes.toString().then(()=>{
this.form.userCodes = userCodes;
this.form.userNames = userNames;
this.open = true;
this.title = "修改人员线体绑定";
});
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {

Loading…
Cancel
Save