From 0edf2cc107cd03e8e007f97f38387d66f480cd3d Mon Sep 17 00:00:00 2001 From: linwenling <3256558519@qq.com> Date: 星期二, 26 九月 2023 16:54:53 +0800 Subject: [PATCH] 修改家大事记 的图片文件上传 直调接口 --- ruoyi-ui/src/views/travel/index.vue | 32 +++++++++++++++++++++++--------- 1 files changed, 23 insertions(+), 9 deletions(-) diff --git a/ruoyi-ui/src/views/travel/index.vue b/ruoyi-ui/src/views/travel/index.vue index 4b51021..c0e5aad 100644 --- a/ruoyi-ui/src/views/travel/index.vue +++ b/ruoyi-ui/src/views/travel/index.vue @@ -5,7 +5,10 @@ <el-form-item label="鏃堕棿" prop="startTime" > <el-date-picker v-model="dateRange" - style="width: 240px;" + style="width: 200px; + height: 35px; + border-radius: 16px 16px 16px 16px; + opacity: 0.5;" value-format="yyyy-MM-dd HH-MM" type="daterange" range-separator="-" @@ -16,9 +19,12 @@ <el-form-item label="鎬诲ぉ鏁�" prop="usePeople" > <el-input v-model="queryParams.usePeople" - placeholder="璇疯緭鍏ヤ娇鐢ㄤ汉" + placeholder="璇疯緭鍏ユ�诲ぉ鏁�" clearable - style="width: 240px" + style="width: 200px; + height: 35px; + border-radius: 16px 16px 16px 16px; + opacity: 0.5;" @keyup.enter.native="handleQuery" /> </el-form-item> @@ -909,6 +915,7 @@ console.error("璇锋眰閿欒:", error); } } + this.formDat2.detailList = await getData(); // 璋冪敤async鍑芥暟鏉ヨ幏鍙栨暟鎹苟璧嬪�肩粰detailList console.log(" this.formDat2.detailList"); @@ -940,8 +947,8 @@ this.formDat.totalPrice=totalPrice; console.log(this.formDat2) - console.log(this.formDat); - + console.log("?"); + debugger this.$refs["elForm"].validate(valid => { if (valid) { @@ -949,6 +956,13 @@ this.$modal.msgSuccess("鏂板鎴愬姛"); this.centerDialogVisible = false; this.getList(); + }); + updateTravelPrice(this.formDat2).then(response => { + this.$modal.msgSuccess("璐圭敤鏂板鎴愬姛"); + this.centerDialogVisible = false; + }); + Object.keys(this.formDat2).forEach(key => { + this.formDat2[key] = ''; }); Object.keys(this.formDat).forEach(key => { this.formDat[key] = ''; @@ -958,11 +972,11 @@ } }); this.$refs["elForm1"].validate(valid => { + console.log(valid) + debugger if (valid) { - - updateTravelPrice(this.formDat2).then(response => { - // this.$modal.msgSuccess("璐圭敤鏂板鎴愬姛"); + this.$modal.msgSuccess("璐圭敤鏂板鎴愬姛"); this.centerDialogVisible = false; }); Object.keys(this.formDat2).forEach(key => { @@ -1120,7 +1134,7 @@ return delTravelBase(id); }).then(() => { updateTravelPrice(this.formDat7).then(response => { - this.$modal.msgSuccess("璐圭敤淇敼鎴愬姛"); + this.$modal.msgSuccess("璐圭敤鍒犻櫎鎴愬姛"); }); this.getList(); -- Gitblit v1.9.1