| | |
| | | <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"> |
| | |
| | | multiple |
| | | list-type="picture-card" |
| | | :on-preview="handleFileCardPreview" |
| | | :on-remove="handleRemove" |
| | | :on-remove="handleRemoveFile" |
| | | :http-request="requestUpload" |
| | | :show-file-list="true" |
| | | > |
| | |
| | | </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" |
| | |
| | | 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() |
| | | |
| | | } |
| | | //以下为test |
| | | // 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: { |