|
@@ -273,11 +273,17 @@ export default {
|
|
|
if (form.shop_transport_type) transport.shop_transport_type = form.shop_transport_type;
|
|
|
form.transport = transport;
|
|
|
form.status = val;
|
|
|
- if (form.id) res = await this.update(form);
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$message({ type: `success`, message: `维护信息成功` });
|
|
|
- this.search();
|
|
|
- }
|
|
|
+ this.$confirm('是否确认保存', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ }).then(async () => {
|
|
|
+ if (form.id) res = await this.update(form);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$message({ type: `success`, message: `维护信息成功` });
|
|
|
+ this.search();
|
|
|
+ }
|
|
|
+ });
|
|
|
} else {
|
|
|
console.log('error submit!!');
|
|
|
return false;
|