| | |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="发生时间" prop="happenTime"> |
| | | <el-input v-model="formData.happenTime" placeholder="请输入发生时间" type="date" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | <el-date-picker v-model="formData.happenTime" type="date" placeholder="请选择日期" |
| | | :editable="false" :clearable="false" :style="{width: '100%'}" :disabled="dsb" value-format="yyyy-MM-dd" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="备注" prop="remark"> |
| | |
| | | :file-list="fileList" |
| | | :disabled="!btn" |
| | | :class="{ hide: !btn }" |
| | | |
| | | |
| | | > |
| | | <div v-if="uploading1" class="upload-status">正在上传...</div> |
| | | <i v-if="!uploading1" slot="default" class="el-icon-plus"></i> |
| | |
| | | return { |
| | | cdi:"家庭大事记信息", |
| | | udi:"家庭大事记修改", |
| | | fot:[".jpg",".jif","png"], |
| | | |
| | | fileList:[ |
| | | ], |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', |
| | | '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | |
| | | url: undefined, |
| | | }, |
| | | dialogImageUrl: '', |
| | | url1:undefined, |
| | | dialogVisible: false, |
| | | disabled: false, |
| | | rules: { |
| | |
| | | if (id) { |
| | | this.loading = true; |
| | | getFamilyeventInfo(id).then((response) => { |
| | | console.log("上面"); |
| | | console.log(this.btn); |
| | | this.formData = response.data; |
| | | let paths = response.data.url.split(","); |
| | | for(let i = 0; i < paths.length; i++) |
| | | { |
| | | if(paths[i]!="") { |
| | | const url = this.formData.url; |
| | | // const url1 = url.replace(/^http:/, 'https:'); |
| | | const url1 = url.replace(/http:\/\/47\.93\.189\.255:8080\//g, ''); |
| | | this.formData.url = url1; // 更新 formData 对象中的 url 字段 |
| | | console.log(url); |
| | | console.log(url1); // 输出修改后的 https URL |
| | | 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); |
| | | |
| | | let pth = paths[i].substr(paths[i].length - 4, paths[i].length) |
| | | if (this.fot.includes(pth)) { |
| | | |
| | | 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]}) |
| | | let nms = paths[i].split("/"); |
| | | let nm = nms[nms.length - 1]; |
| | | |
| | | this.fileList.push({ name: nm, url: "http://www.bendudu.com/" + paths[i] }); |
| | | console.log(this.fileList) |
| | | } 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.getCateInfor() |
| | | |
| | | this.loading = false; |
| | | } |
| | | }, |
| | | mounted() {}, |