From 6378fa4ea01c8c6a92bd3bf710686f5deedf99dd Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期六, 06 四月 2024 17:45:29 +0800 Subject: [PATCH] 完善家庭会议模块 --- ruoyi-ui/src/views/bignote/familyeventInfo.vue | 50 +++++++------------------------------------------- 1 files changed, 7 insertions(+), 43 deletions(-) diff --git a/ruoyi-ui/src/views/bignote/familyeventInfo.vue b/ruoyi-ui/src/views/bignote/familyeventInfo.vue index e2252e4..9263d10 100644 --- a/ruoyi-ui/src/views/bignote/familyeventInfo.vue +++ b/ruoyi-ui/src/views/bignote/familyeventInfo.vue @@ -336,13 +336,13 @@ methods: { submitForm() { - let ul = this.fileList.map(function (elem){ - return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") - }).join(",") - let uls = this.fileListOther.map(function (elem){ - return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") - }).join(",") - this.formData.url = ul+","+uls + // let ul = this.fileList.map(function (elem){ + // return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") + // }).join(",") + // let uls = this.fileListOther.map(function (elem){ + // return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") + // }).join(",") + // this.formData.url = ul+","+uls this.$refs['elForm'].validate(valid => { if (valid) { @@ -583,43 +583,7 @@ // alert(87) updateFamilyevent(_this.formData).then(response => { _this.$modal.msgSuccess("鍥剧墖涓婁紶鎴愬姛"); - let id = _this.ID - if (id) { - _this.loading = true; - getFamilyeventInfo(id).then((response) => { - _this.formData = response.data; - alert(123) - let paths = _this.formData.url.split(","); - for(let i = 0; i < paths.length; i++) - { - if(paths[i]!="") { - let pth = paths[i].substr(paths[i].length - 4, paths[i].length) - // alert(pth) - if (_this.fot.includes(pth) === true) - { - if(paths[i][0]=="/") - _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) - else - _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) - } - else { - // alert(paths[i]) - // alert() - let nms = paths[i].split("\/") - let nm = nms[nms.length - 1] - if(paths[i][0]=="/") - _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) - else - _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) - - } - } - // _this.fileList1 = _this.fileList - } - _this.loading = false; - }); - } // this.open = false; }); -- Gitblit v1.9.1