From 21dbf53b402f7f57d14a3e255f6d37386d4d5bd7 Mon Sep 17 00:00:00 2001 From: lSun <15893999301@qq.com> Date: Mon, 16 Dec 2024 18:28:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E8=A1=8C=E4=BA=BA=E6=8A=8A=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E4=BA=BA=E8=87=AA=E5=8A=A8=E5=B8=A6=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/process/leaveReporting/index.vue | 144 +++++++++++++++++++++ 1 file changed, 144 insertions(+) diff --git a/src/views/process/leaveReporting/index.vue b/src/views/process/leaveReporting/index.vue index 6df8901..1acf662 100644 --- a/src/views/process/leaveReporting/index.vue +++ b/src/views/process/leaveReporting/index.vue @@ -92,6 +92,13 @@ @click="handleDelete(scope.row)" >删除 + + 详情 + @@ -260,6 +267,122 @@ 取 消 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{item.name}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -306,6 +429,7 @@ export default { title: "", // 是否显示弹出层 open: false, + openView: false, isEdit: false, timeStatusList: [{id: '1', name: "上午"}, {id: '2', name: "下午"}], // 日期范围 @@ -424,6 +548,7 @@ export default { // 取消按钮 cancel() { this.open = false; + this.openView = false; this.reset(); }, // 表单重置 @@ -551,6 +676,25 @@ export default { return selectedUserNames.join(', '); }, + /** 查看按钮操作 */ + handleDetails(row) { + this.reset(); + const Id = row.id + getLeaveReporting(Id).then(response => { + this.form = response.data; + // let num = this.form.hostUserId.split(','); + let num = []; + let numArr = this.form.hostUserId.split(",") + numArr.forEach(function (item){ + num.push(parseInt(item)); + }) + console.log("num",num) + this.$set(this.form,"hostUserId",num) + this.openView = true; + this.title = "详情"; + }); + }, + /** 删除按钮操作 */ handleDelete(row) { const Ids = row.id;