From 8f2a8595313aaa7a1b5320a8add4eef4dfe942c4 Mon Sep 17 00:00:00 2001
From: linwenling <3256558519@qq.com>
Date: 星期六, 05 八月 2023 23:34:59 +0800
Subject: [PATCH] 财产修改
---
ruoyi-ui/src/views/honor/honorInfo.vue | 108 +++++++++++++++++-------------------------------------
1 files changed, 34 insertions(+), 74 deletions(-)
diff --git a/ruoyi-ui/src/views/honor/honorInfo.vue b/ruoyi-ui/src/views/honor/honorInfo.vue
index 7738e57..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>
@@ -134,7 +134,7 @@
multiple
list-type="picture-card"
:on-preview="handleFileCardPreview"
- :on-remove="handleRemove"
+ :on-remove="handleRemoveFile"
:http-request="requestUpload"
:show-file-list="true"
>
@@ -158,12 +158,11 @@
</span>
<span
v-if="isShow"
- @click="handleRemove(file)"
class="el-upload-list__item-delete"
-
+ @click="handleDownload(file.url)"
>
- <i class="el-icon-download"></i>
- </span>
+ <i class="el-icon-download"></i>
+ </span>
<span
v-if="isShow"
class="el-upload-list__item-delete"
@@ -308,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