人员线体绑定优化

yangwl
shaoyong 8 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) {
this.reset();
let userCodes = row.userCode || this.ids;
let userNames = row.userName || this.names;
this.handleCode = this.ids.toString();
this.form.userCodes = userCodes;
this.form.userNames = userNames;
this.open = true;
this.title = "修改人员线体绑定";
let userCodes = [];
let userNames = [];
if(row.userCode) {
userCodes[0] = row.userCode;
}else{
userCodes = this.ids;
}
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() {

Loading…
Cancel
Save