From 1cd95a4dd587fddb0428b031a184920ea8c90137 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期二, 16 四月 2024 15:27:11 +0800
Subject: [PATCH] 生丝定级标准 增加表头的功能重写+增加表头的顺序跟在结束之后+添加过的表头也可以进行编辑的问题修改
---
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