From 3da23d10375357f05171d48d9684b90654149f94 Mon Sep 17 00:00:00 2001 From: laozt <2721205210@qq.com> Date: Fri, 15 Dec 2023 14:13:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8D=89=E7=A8=BF=E7=BC=96=E8=BE=91=E6=9C=88?= =?UTF-8?q?=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/AddDialog/tab3.vue | 55 +++++++++++++++---------- 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/src/views/components/AddDialog/tab3.vue b/src/views/components/AddDialog/tab3.vue index 3d84db8..d4cd1ed 100644 --- a/src/views/components/AddDialog/tab3.vue +++ b/src/views/components/AddDialog/tab3.vue @@ -1,16 +1,13 @@ - + @@ -148,6 +145,27 @@ export default { this.getList(); }, methods: { + // 编辑月份 + editMonth(row) { + this.$prompt("请输入月份", "编辑", { + confirmButtonText: "确定", + cancelButtonText: "取消", + inputValue: row.plannedMonth, + inputPlaceholder: "请输入1到12的数字", + inputPattern: /^(1[0-2]|[1-9])$/, + inputErrorMessage: "格式不正确", + closeOnClickModal: false, + }) + .then(({ value }) => { + // 调用接口 + }) + .catch(() => { + this.$message({ + type: "info", + message: "取消输入", + }); + }); + }, /** 查询计划企业列表 */ getList() { this.loading = true; @@ -355,6 +373,14 @@ export default { ::v-deep .el-table::before { height: 0; } + + .el-edit { + color: #2378ec; + cursor: pointer; + &:hover { + color: #6aa4f6; + } + } } .pagination { margin-top: 10px; @@ -436,21 +462,6 @@ export default { } .centered { align-items: center; - // position: relative; - // .data_icon { - // width: 10px; - // height: 7px; - // position: absolute; - // top: 50%; - // left: 280px; - // z-index: 9; - // color: #c0c4cc; - // font-size: 14px; - // transform: translateY(-50%); - // } - // ::v-deep .el-input__prefix { - // display: none; - // } } } .next {