From e20f3d2945acedf83676a0720821e9ec5c8f228e Mon Sep 17 00:00:00 2001 From: Tcsm <1377977403@qq.com> Date: 星期六, 05 八月 2023 17:17:06 +0800 Subject: [PATCH] 个人自传完善新增按钮 --- ruoyi-ui/src/views/honor/honorInfo.vue | 99 +++++++++++++++---------------------------------- 1 files changed, 30 insertions(+), 69 deletions(-) diff --git a/ruoyi-ui/src/views/honor/honorInfo.vue b/ruoyi-ui/src/views/honor/honorInfo.vue index 429a7a9..94b0816 100644 --- a/ruoyi-ui/src/views/honor/honorInfo.vue +++ b/ruoyi-ui/src/views/honor/honorInfo.vue @@ -17,12 +17,12 @@ <div> <el-container> <el-row> - <el-cow :span="8"> - <el-form-item label="鏃堕棿" prop="createTime" label-width="50px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> - <el-input v-model="formData.createTime" placeholder="璇疯緭鍏ユ椂闂�" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-cow> +<!-- <el-cow :span="8">--> +<!-- <el-form-item label="鏃堕棿" prop="createTime" label-width="50px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">--> +<!-- <el-input v-model="formData.createTime" placeholder="璇疯緭鍏ユ椂闂�" clearable :style="{width: '100%'}" :disabled="dsb">--> +<!-- </el-input>--> +<!-- </el-form-item>--> +<!-- </el-cow>--> <el-cow :span="8"> <el-form-item label="绫诲埆" prop="type" label-width="50px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> <el-input v-model="formData.type" placeholder="璇疯緭鍏ョ被鍒�" clearable :style="{width: '100%'}" :disabled="dsb"> @@ -60,13 +60,13 @@ <el-row> <el-cow :span="8"> <el-form-item label="鏈夋晥鏃堕棿" prop="validityDate" label-width="68px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> - <el-input v-model="formData.validityDate" placeholder="璇疯緭鍏ユ湁鏁堟椂闂�" clearable :style="{width: '100%'}" :disabled="dsb"> + <el-input v-model="formData.validityDate" type="date" placeholder="璇疯緭鍏ユ湁鏁堟椂闂�" clearable :style="{width: '100%'}" :disabled="dsb"> </el-input> </el-form-item> </el-cow> <el-cow :span="8"> <el-form-item label="鑾峰緱鏃堕棿" prop="getDate" label-width="68px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> - <el-input v-model="formData.getDate" placeholder="璇疯緭鍏ヨ幏寰楁椂闂�" clearable :style="{width: '100%'}" :disabled="dsb"> + <el-input v-model="formData.getDate" type="date" placeholder="璇疯緭鍏ヨ幏寰楁椂闂�" clearable :style="{width: '100%'}" :disabled="dsb"> </el-input> </el-form-item> </el-cow> @@ -307,72 +307,33 @@ let _this = this if (id) { this.loading = true; - // getHonor(id).then((response) => { - // this.formData = response.data; - // let paths = response.data.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) - // - // if (_this.fot.includes(pth) === true) - // _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i]}) - // else { - // // alert(paths[i]) - // let nms = paths[i].split("\/") - // let nm = nms[nms.length - 1] - // _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i]}) - // } - // } - // } - // this.loading = false; - // }); + getHonor({id}).then((response) => { + this.formData = response.data; + let paths = response.data.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) + + if (_this.fot.includes(pth) === true) + _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i]}) + else { + // alert(paths[i]) + let nms = paths[i].split("\/") + let nm = nms[nms.length - 1] + _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i]}) + } + } + } + this.loading = false; + }); this.fetchData() this.getCateInfor() } - //浠ヤ笅涓簍est - // if (id){ - // this.loading =true; - // getHonor(id).then((response)=> { - // this.formData =response.data; - // let paths=response.data.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); - // if (_this.fot.includes(pth)) { - // _this.fileList.push({ - // name: paths[i], - // url: process.env.VUE_APP_BASE_TRUE_API + paths[i], - // }); - // } else { - // // alert(paths[i]) - // let nms = paths[i].split("\/") - // let nm = nms[nms.length - 1] - // _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i]}) - // } - // } - // } - // this.loading = false; - // }); - // - // // getHonor(id).then(response => { - // // // alert(123) - // // // alert(123) - // // // console.log(response.data) - // // // alert(90) - // // this.formData = response.data; - // // this.isShow_1=true - // // // alert(this.rootList[0].url) - // // // this.total = response.data.total; - // // this.loading = false; - // // } - // // ); - // this.getCateInfor() - // - // } + }, mounted() {}, methods: { -- Gitblit v1.9.1