From 7d520e6190241adc647f36f7aea34c365216edb0 Mon Sep 17 00:00:00 2001
From: charles <981744753@qq.com>
Date: 星期二, 06 八月 2024 11:45:27 +0800
Subject: [PATCH] feat:更新代码
---
src/views/productManage/silkRegisterForm/index.vue | 27 +++++++++++++++------------
1 files changed, 15 insertions(+), 12 deletions(-)
diff --git a/src/views/productManage/silkRegisterForm/index.vue b/src/views/productManage/silkRegisterForm/index.vue
index a82b23d..1dd0658 100644
--- a/src/views/productManage/silkRegisterForm/index.vue
+++ b/src/views/productManage/silkRegisterForm/index.vue
@@ -28,9 +28,10 @@
@selTableCol="selTableCol"
>
<template slot="tableButton">
- <el-table-column label="鎿嶄綔" width="90" fixed="right">
+ <el-table-column label="鎿嶄綔" width="120" fixed="right">
<template slot-scope="scope">
- <el-button @click="handleClick(scope.row)" type="text" size="small">淇敼</el-button>
+ <el-button @click="handleClick(scope.row,1)" type="text" size="small">鏌ョ湅</el-button>
+ <el-button @click="handleClick(scope.row,2)" type="text" size="small">淇敼</el-button>
<el-button @click="delClick(scope.row.ID)" type="text" size="small">鍒犻櫎</el-button>
</template>
</el-table-column>
@@ -61,16 +62,16 @@
tableList: {},
loading: false,
searchOptions: [],
- search_map: {},
+ keyword: '',
tableColumn: [
{ label: "缂栧彿", prop: "number", min: 120, default: true }, // 涓婚
{ label: "钀戒笣鏃堕棿", prop: "finishDate", min: 190, }, // 瀹㈡埛鍚嶇О
{ label: "杞︾粍", prop: "workshopGroup", min: 100, }, // 鑱旂郴浜哄鍚�
{ label: "瑙勬牸", prop: "spec", min: 100 }, // 瀹㈡埛鐘舵��
- { label: "杞﹂棿", prop: "name", min: 100 }, // 鑱旂郴鏂瑰紡
+ { label: "杞﹂棿", prop: "workshopName", min: 100 }, // 鑱旂郴鏂瑰紡
{ label: "搴勫彛", prop: "market", min: 130 }, // 鑱旂郴浜烘棩鏈�
- { label: "寮�濮嬪洖鏁�", prop: "startCircle", min: 130 }, // 涓嬫鍥炶鏃ユ湡
- { label: "缁撴潫鍥炴暟", prop: "endCircle", min: 110 }, // 璐熻矗浜�
+ { label: "寮�濮嬪洖鏁�", prop: "circle", min: 130 }, // 涓嬫鍥炶鏃ユ湡
+ { label: "缁撴潫鍥炴暟", prop: "totalCircle", min: 110 }, // 璐熻矗浜�
],
showCol: [
"缂栧彿",
@@ -86,7 +87,7 @@
},
created() {
this.setTable()
- this.getData(this.search_map)
+ this.getData(this.keyword)
},
computed: {
},
@@ -123,7 +124,7 @@
async getData() {
this.loading = true
await getRegisterList({
- search_map: this.search_map,
+ keyword: this.keyword,
page: this.pagerOptions.currPage,
pageSize: this.pagerOptions.pageSize
})
@@ -143,7 +144,7 @@
// }
// })
this.tableList.tableInfomation = res.data || []
- this.pagerOptions.totalCount = res.count
+ this.pagerOptions.totalCount = res.total
} else {
this.tableList.tableInfomation = []
}
@@ -160,7 +161,7 @@
},
// 鎼滅储
onFilterSearch(searchText) {
- this.search_map.client_name = searchText ?? ""
+ this.keyword = searchText ?? ""
this.pagerOptions.currPage = 1
this.getData()
},
@@ -175,12 +176,14 @@
},
// 缂栬緫
- handleClick(row) {
+ handleClick(row,type) {
this.$router.push({
path:"/productManage/silkRegisterForm/addPage",
query:{
id:row.ID,
- activeName:'first'
+ activeName:'first',
+ inspectID:row.finenessCheckID,
+ title:type===1?'鏌ョ湅':'淇敼',
}
});
},
--
Gitblit v1.8.0