fix:过程检验导出功能报错问题解决
This commit is contained in:
parent
45c2dada3d
commit
a9d255e5fa
@ -610,19 +610,23 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
|
console.log('测试新增')
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
console.log('------111----')
|
||||||
if (this.form.ipqcId != null) {
|
if (this.form.ipqcId != null) {
|
||||||
|
console.log('----22222-----')
|
||||||
updateIpqc(this.form).then(response => {
|
updateIpqc(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
//this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
console.log('-----3333-----')
|
||||||
addIpqc(this.form).then(response => {
|
addIpqc(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.form.ipqcId = response.data; //将返回的ID保存
|
this.form.ipqcId = response.data; //将返回的ID保存
|
||||||
//this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -660,7 +664,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.download('qc/ipqc/export', {
|
this.download('mes/qc/ipqc/export', {
|
||||||
...this.queryParams
|
...this.queryParams
|
||||||
}, `ipqc_${new Date().getTime()}.xlsx`)
|
}, `ipqc_${new Date().getTime()}.xlsx`)
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user