From 884ad944d947738efe407f7388dd5c32b02fd5a7 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 25 四月 2024 11:18:33 +0800
Subject: [PATCH] 2
---
src/views/systemSetting/silkPriceStandard/index.vue | 25 +++++++++++++++----------
1 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/src/views/systemSetting/silkPriceStandard/index.vue b/src/views/systemSetting/silkPriceStandard/index.vue
index d6957a9..c739e6e 100644
--- a/src/views/systemSetting/silkPriceStandard/index.vue
+++ b/src/views/systemSetting/silkPriceStandard/index.vue
@@ -54,7 +54,7 @@
tableList: {},
showCol: ["搴勫彛", "鐢熶笣绛夌骇", "钖叕鏍囧噯", "鍗曚綅", "澶囨敞"],
tableColumn: [
- { label: "搴勫彛", prop: "marketNumber",},
+ { label: "搴勫彛", prop: "marketName",},
{ label: "鐢熶笣绛夌骇", prop: "rawSilkGrade", },
{ label: "钖叕鏍囧噯", prop: "payStandard" },
{ label: "鍗曚綅", prop: "unit" },
@@ -86,9 +86,9 @@
},
// 鏂板
addBtnClick() {
+ this.editConfig.infomitton={}
this.editConfig.dialogTitle="鏂板"
this.editConfig.visible=true
- this.editConfig.infomitton={}
},
// 淇濆瓨
saveBtnClick(){
@@ -157,22 +157,25 @@
})
},
handleClick(row,type){
- if(type==="鏌ョ湅"){
- this.editConfig.infomitton=row
- this.editConfig.dialogTitle=type
- this.editConfig.visible=true
- }else if(type==="淇敼"){
- this.editConfig.infomitton=row
+ if(type!=="鍒犻櫎"){
+ this.editConfig.infomitton={
+ ...row,
+ market:{
+ ID:row.marketId,
+ name:row.marketName,
+ }
+ }
this.editConfig.dialogTitle=type
this.editConfig.visible=true
}else if(type==="鍒犻櫎"){
- this.$confirm(`纭鍒犻櫎${row.name}鍚�?`, '鎻愮ず', {
+ this.$confirm(`纭鍒犻櫎鍚�?`, '鎻愮ず', {
confirmButtonText: '纭畾',
cancelButtonText: '鍙栨秷',
type: 'warning'
}).then(() => {
deletePriceStandard({id:row.ID}).then((res)=>{
if(res&&res.code===200){
+ this.pagerOptions.currPage = 1;
this.getData()
this.$message({
type: 'success',
@@ -180,7 +183,9 @@
});
}
})
- })
+ }).catch(() => {
+ console.log("鍙栨秷鍒犻櫎")
+ });
}
}
}
--
Gitblit v1.8.0