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;