From 75e90888d0dc60d229b8f179d6b58de708595080 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期一, 13 十一月 2023 17:24:06 +0800
Subject: [PATCH] 新增位置-上级位置改为非必填
---
src/views/overview/OverviewListView.vue | 29 ++++++++++++++++++++++-------
1 files changed, 22 insertions(+), 7 deletions(-)
diff --git a/src/views/overview/OverviewListView.vue b/src/views/overview/OverviewListView.vue
index 9519c51..fc3a8d8 100644
--- a/src/views/overview/OverviewListView.vue
+++ b/src/views/overview/OverviewListView.vue
@@ -8,8 +8,10 @@
:add-title="'鏂板缓'"
:placeholder="'璇疯緭鍏ュ崟鍙�/鏉ユ簮鍗曟嵁'"
:amount-view="false"
+ :search-task-map="searchTaskMap"
@addCommonClick="addBtnClick"
@searchClick="getList"
+ @delSelectClick="delSelectClick"
/>
</div>
<div class="list-view">
@@ -40,7 +42,7 @@
v-if="editConfig.visible"
:work-type="workType"
:edit-common-config="editConfig"
- :add-name="this.$route.params.name"
+ :add-name="addName"
:display-edit="displayEdit"
/>
</div>
@@ -78,7 +80,9 @@
params: {},
displayEdit: false,
formLabel: "",
- toLabel: ""
+ toLabel: "",
+ addName: "",
+ searchTaskMap: []
}
},
created() {
@@ -94,6 +98,8 @@
sessionStorage.setItem("paramsData", JSON.stringify(params))
}
this.params = params
+ this.searchTaskMap =
+ this.params.status > 0 ? [{ id: this.params.id, title: this.getStatus(this.params.status) }] : []
this.getData()
// console.log(this.$route.params.workType)
},
@@ -230,7 +236,8 @@
number: this.keyword,
operationTypeId: this.params.id,
page: this.pagerOptions.currPage,
- pageSize: this.pagerOptions.pageSize
+ pageSize: this.pagerOptions.pageSize,
+ status: this.params.status
}).then((res) => {
console.log(res.data)
if (res.code === 200) {
@@ -258,19 +265,27 @@
console.log(row)
this.editConfig.visible = true
this.editConfig.title = val
- this.editConfig.operationTypeId = this.$route.params.id
+ this.editConfig.operationTypeId = this.params.id
this.editConfig.infomation = { ...row }
},
// 鏂板缓
addBtnClick() {
- this.editConfig.visible = true
this.editConfig.title = "鏂板缓"
- this.editConfig.operationTypeId = this.$route.params.id
+ this.addName = this.params.name
+ console.log(this.params, "ss鍒锋柊")
+ this.editConfig.operationTypeId = this.params.id
+ this.editConfig.code = this.params.code
this.editConfig.infomation = {}
+ this.editConfig.visible = true
},
// 鐘舵��
getStatus(val) {
- return val === 1 ? "鑽夌" : val === 3 ? "灏辩华" : "瀹屾垚"
+ return val === 1 ? "鑽夌" : val === 3 ? "灏辩华" : val === 4 ? "瀹屾垚" : ""
+ },
+ // 鍒犻櫎鎼滅储鐘舵��
+ delSelectClick() {
+ this.params.status = 0
+ this.getData()
}
}
}
--
Gitblit v1.8.0