Commit 046fee7c by 李伟康

```

feat(usedCarManagement): 车辆状态编辑操作前添加确认弹窗

在车辆管理详情页中,对车辆状态进行编辑操作前增加确认提示弹窗,
避免用户误操作。同时优化了参数处理逻辑,移除值为null的参数。
```
1 parent 5d2eb656
...@@ -144,7 +144,6 @@ fetch( ...@@ -144,7 +144,6 @@ fetch(
...response.gsc, ...response.gsc,
// baseURL:'http://192.168.3.145:9898/gsc-vcp-web-facade', // baseURL:'http://192.168.3.145:9898/gsc-vcp-web-facade',
// baseURL: 'http://192.168.1.103:5006', // baseURL: 'http://192.168.1.103:5006',
timeout: 30e3,
session: { session: {
requiresSession: true, requiresSession: true,
sessionId: _ => util.cookies.get("token") sessionId: _ => util.cookies.get("token")
......
...@@ -671,7 +671,6 @@ export default { ...@@ -671,7 +671,6 @@ export default {
if (e) throw false if (e) throw false
}) })
if (sellingTime) sellingTime = sellingTime + ' 00:00:00' if (sellingTime) sellingTime = sellingTime + ' 00:00:00'
this.loading = true
let params = { let params = {
id: this.id, id: this.id,
evalOrderNo, evalOrderNo,
...@@ -685,12 +684,24 @@ export default { ...@@ -685,12 +684,24 @@ export default {
params.sellingTime = sellingTime params.sellingTime = sellingTime
params.seller = seller params.seller = seller
} }
this.$confirm("请确认是否要执行当前操作?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(async () => {
this.loading = true
Object.keys(params).map(key => {
if (params[key] == null) delete params[key]
})
const data = await editCarStatus(params) const data = await editCarStatus(params)
if (data && typeof data == 'boolean') { if (data && typeof data == 'boolean') {
this.$message.success("操作成功") this.$message.success("操作成功")
this.$router.back() this.$router.back()
} }
this.loading = false this.loading = false
}).catch(() => {
this.loading = false
})
} catch (error) { } catch (error) {
this.loading = false this.loading = false
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!