| | |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fileListOther1:[], |
| | | 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, |
| | |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | getData(){ |
| | | const id = this.$route.params && this.$route.params.id; |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | | getFamilyeventInfo(id).then((response) => { |
| | | // console.log(response,'666666666') |
| | | this.formData = response.data; |
| | | 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) |
| | | { |
| | | console.log() |
| | | } |
| | | else { |
| | | let nms = paths[i].split("\/") |
| | | let nm = nms[nms.length - 1] |
| | | if(paths[i][0]=="/") |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | |
| | | } |
| | | } |
| | | |
| | | } |
| | | _this.fileListOther = _this.fileListOther1 |
| | | this.loading = false; |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | submitForm() { |
| | | // let ul = this.fileList.map(function (elem){ |
| | |
| | | this.fileList.push({name:file.name,url:file.url,res:true}) |
| | | }, |
| | | //自定义上传方法 |
| | | handleChange1(file, fileListOther1) { |
| | | handleChange1(file, fileListOther12) { |
| | | //定义一个全局数组uploadFileList来做存储 |
| | | |
| | | // this.uploadFileList.push(file.raw); |
| | |
| | | updateFamilyevent(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | this.getData() |
| | | this.fileListOther1=[] |
| | | }); |
| | | }) |
| | | |
| | |
| | | uploadFileList1:[], |
| | | fileListOther:[ |
| | | ], |
| | | fileListOther1:[], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | getData(){ |
| | | const id = this.$route.params && this.$route.params.id; |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | | getCLeanInfo(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) |
| | | // alert(pth) |
| | | if (_this.fot.includes(pth) === true) |
| | | { |
| | | console.log() |
| | | } |
| | | else { |
| | | let nms = paths[i].split("\/") |
| | | let nm = nms[nms.length - 1] |
| | | if(paths[i][0]=="/") |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | |
| | | } |
| | | } |
| | | } |
| | | _this.fileListOther = _this.fileListOther1 |
| | | this.loading = false; |
| | | }); |
| | | this.getCateInfor() |
| | | |
| | | } |
| | | }, |
| | | getSrc1(type) { |
| | | if (type === 0) { |
| | | return '基金' |
| | |
| | | this.fileList.push({name:file.name,url:file.url,res:true}) |
| | | }, |
| | | //自定义上传方法 |
| | | handleChange1(file, fileListOther1) { |
| | | handleChange1(file, fileListOther12) { |
| | | //定义一个全局数组uploadFileList来做存储 |
| | | |
| | | // this.uploadFileList.push(file.raw); |
| | |
| | | updateClean(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | this.getData() |
| | | this.fileListOther1=[] |
| | | }); |
| | | }) |
| | | |
| | |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fileListOther1:[], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | getData(){ |
| | | const id = this.$route.params && this.$route.params.id; |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | | getCollection(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) |
| | | // alert(pth) |
| | | if (_this.fot.includes(pth) === true) |
| | | { |
| | | console.log() |
| | | } |
| | | else { |
| | | let nms = paths[i].split("\/") |
| | | let nm = nms[nms.length - 1] |
| | | if(paths[i][0]=="/") |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | |
| | | } |
| | | } |
| | | } |
| | | _this.fileListOther = _this.fileListOther1 |
| | | this.loading = false; |
| | | }); |
| | | listType(this.queryParams).then(response => { |
| | | this.typeList = response.data; |
| | | this.total = response.data.total; |
| | | // console.log( this.typeList ) |
| | | // 在回调函数中调用 getTypeOptions() |
| | | this.getTypeOptions(); |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | } |
| | | }, |
| | | //类别 |
| | | addNewOption() { |
| | | const newOption = this.newOption.trim(); |
| | |
| | | this.fileList.push({name:file.name,url:file.url,res:true}) |
| | | }, |
| | | //自定义上传方法 |
| | | handleChange1(file, fileListOther1) { |
| | | handleChange1(file, fileListOther12) { |
| | | //定义一个全局数组uploadFileList来做存储 |
| | | |
| | | // this.uploadFileList.push(file.raw); |
| | |
| | | updateCollection(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | this.getData() |
| | | this.fileListOther1=[] |
| | | }); |
| | | }) |
| | | |
| | |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fileListOther1:[], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | getData(){ |
| | | const id = this.$route.params && this.$route.params.id; |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | | getContactIdList(id).then((response) => { |
| | | this.formData = response.data; |
| | | if(this.formData.isAlways==0) |
| | | this.formData.isAlways='否' |
| | | else |
| | | this.formData.isAlways = '是' |
| | | 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) |
| | | // alert(pth) |
| | | if (_this.fot.includes(pth) === true) |
| | | { |
| | | console.log() |
| | | } |
| | | else { |
| | | // alert(paths[i]) |
| | | // alert() |
| | | let nms = paths[i].split("\/") |
| | | let nm = nms[nms.length - 1] |
| | | if(paths[i][0]=="/") |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | |
| | | } |
| | | } |
| | | } |
| | | _this.fileListOther = _this.fileListOther1 |
| | | this.loading = false; |
| | | }); |
| | | this.getCateInfor() |
| | | |
| | | } |
| | | }, |
| | | |
| | | submitForm() { |
| | | |
| | | |
| | |
| | | this.fileList.push({name:file.name,url:file.url,res:true}) |
| | | }, |
| | | //自定义上传方法 |
| | | handleChange1(file, fileListOther1) { |
| | | handleChange1(file, fileListOther12) { |
| | | //定义一个全局数组uploadFileList来做存储 |
| | | |
| | | // this.uploadFileList.push(file.raw); |
| | |
| | | updateContact(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | this.getData() |
| | | this.fileListOther1=[] |
| | | }); |
| | | }) |
| | | |
| | |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fileListOther1:[], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | getData(){ |
| | | const id = this.$route.params && this.$route.params.id; |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | | getEquipmentInfo(id).then((response) => { |
| | | |
| | | this.formData = response.data; |
| | | if(this.formData.status==1) |
| | | this.formData.status = '是' |
| | | else |
| | | this.formData.status = '否' |
| | | 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) |
| | | // alert(pth) |
| | | if (_this.fot.includes(pth) === true) |
| | | { |
| | | console.log() |
| | | } |
| | | else { |
| | | let nms = paths[i].split("\/") |
| | | let nm = nms[nms.length - 1] |
| | | if(paths[i][0]=="/") |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | |
| | | } |
| | | } |
| | | } |
| | | _this.fileListOther = _this.fileListOther1 |
| | | this.loading = false; |
| | | }); |
| | | } |
| | | }, |
| | | /** 查询类别信息 */ |
| | | // getCateInfor() |
| | | // { |
| | |
| | | this.fileList.push({name:file.name,url:file.url,res:true}) |
| | | }, |
| | | //自定义上传方法 |
| | | handleChange1(file, fileListOther1) { |
| | | handleChange1(file, fileListOther12) { |
| | | //定义一个全局数组uploadFileList来做存储 |
| | | |
| | | // this.uploadFileList.push(file.raw); |
| | |
| | | updateEquipment(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | this.getData() |
| | | this.fileListOther1=[] |
| | | }); |
| | | }) |
| | | |
| | |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fileListOther1:[], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | getData(){ |
| | | const id = this.$route.params && this.$route.params.id; |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | | getDoctor(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) |
| | | // alert(pth) |
| | | if (_this.fot.includes(pth) === true) |
| | | { |
| | | console.log() |
| | | } |
| | | else { |
| | | let nms = paths[i].split("\/") |
| | | let nm = nms[nms.length - 1] |
| | | if(paths[i][0]=="/") |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | |
| | | } |
| | | } |
| | | } |
| | | _this.fileListOther = _this.fileListOther1 |
| | | this.loading = false; |
| | | }); |
| | | listType(this.queryParams).then(response => { |
| | | this.typeList = response.data; |
| | | this.total = response.data.total; |
| | | // console.log( this.typeList ) |
| | | // 在回调函数中调用 getTypeOptions() |
| | | this.getTypeOptions(); |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | } |
| | | }, |
| | | //类别 |
| | | addNewOption() { |
| | | const newOption = this.newOption.trim(); |
| | |
| | | this.fileList.push({name:file.name,url:file.url,res:true}) |
| | | }, |
| | | //自定义上传方法 |
| | | handleChange1(file, fileListOther1) { |
| | | handleChange1(file, fileListOther12) { |
| | | //定义一个全局数组uploadFileList来做存储 |
| | | |
| | | // this.uploadFileList.push(file.raw); |
| | |
| | | updateDoctor(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | this.getData() |
| | | this.fileListOther1=[] |
| | | }); |
| | | }) |
| | | |
| | |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fileListOther1:[], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | getData(){ |
| | | const id = this.$route.params && this.$route.params.id; |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | | getEconomyInfo(id).then((response) => { |
| | | this.formData = response.data; |
| | | // console.log(this.formData) |
| | | //alert(this.formData.ownData) |
| | | 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) |
| | | // alert(pth) |
| | | if (_this.fot.includes(pth) === true) |
| | | { |
| | | console.log() |
| | | } |
| | | else { |
| | | let nms = paths[i].split("\/") |
| | | let nm = nms[nms.length - 1] |
| | | if(paths[i][0]=="/") |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | |
| | | } |
| | | } |
| | | } |
| | | _this.fileListOther = _this.fileListOther1 |
| | | this.loading = false; |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | getSrc1(price) { |
| | | if (price === 收入) { |
| | | return '收入' |
| | |
| | | this.fileList.push({name:file.name,url:file.url,res:true}) |
| | | }, |
| | | //自定义上传方法 |
| | | handleChange1(file, fileListOther1) { |
| | | handleChange1(file, fileListOther12) { |
| | | //定义一个全局数组uploadFileList来做存储 |
| | | |
| | | // this.uploadFileList.push(file.raw); |
| | |
| | | updateEconomy(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | this.getData() |
| | | this.fileListOther1=[] |
| | | }); |
| | | }) |
| | | |
| | |
| | | fileList1:[], |
| | | uploadFileList:[], |
| | | uploadFileList1:[], |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fileListOther:[], |
| | | fileListOther1:[], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | getData(){ |
| | | const id = this.$route.params && this.$route.params.id; |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | | |
| | | getHealthInfo({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) |
| | | // alert(pth) |
| | | if (_this.fot.includes(pth) === true) |
| | | { |
| | | console.log() |
| | | } |
| | | else { |
| | | // alert(paths[i]) |
| | | // alert() |
| | | let nms = paths[i].split("\/") |
| | | let nm = nms[nms.length - 1] |
| | | if(paths[i][0]=="/") |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | |
| | | } |
| | | } |
| | | } |
| | | _this.fileListOther = _this.fileListOther1 |
| | | this.loading = false; |
| | | }); |
| | | |
| | | } |
| | | }, |
| | | |
| | | getSrc1(type) { |
| | | if (type === 0) { |
| | | return '基金' |
| | |
| | | updateHealth(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | this.getData() |
| | | this.fileListOther1=[] |
| | | }); |
| | | }) |
| | | |
| | |
| | | fileList1:[], |
| | | uploadFileList:[], |
| | | uploadFileList1:[], |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fileListOther:[], |
| | | fileListOther1:[], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | getData(){ |
| | | const id = this.$route.params && this.$route.params.id; |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | | getHonor({id}).then((response) => { |
| | | this.formData = response.data; |
| | | // alert(this.formData.type) |
| | | 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) |
| | | // alert(pth) |
| | | if (_this.fot.includes(pth) === true) |
| | | { |
| | | console.log() |
| | | } |
| | | else { |
| | | // alert(paths[i]) |
| | | // alert() |
| | | let nms = paths[i].split("\/") |
| | | let nm = nms[nms.length - 1] |
| | | if(paths[i][0]=="/") |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | |
| | | } |
| | | } |
| | | } |
| | | _this.fileListOther = _this.fileListOther1 |
| | | this.loading = false; |
| | | }); |
| | | listType(this.queryParams).then(response => { |
| | | this.typeList = response.data; |
| | | this.total = response.data.total; |
| | | // console.log( this.typeList ) |
| | | // 在回调函数中调用 getTypeOptions() |
| | | this.getTypeOptions(); |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | this.fetchData() |
| | | // this.getCateInfor() |
| | | |
| | | } |
| | | }, |
| | | // 获取数据方法 |
| | | fetchData(id) { |
| | | const url = 'https://47.93.189.255:8080/zHonor/id=${id}'; // 接口 URL'/zHonor/id='+query |
| | |
| | | updateHonor(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | this.getData() |
| | | this.fileListOther1=[] |
| | | }); |
| | | }) |
| | | |
| | |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fileListOther1:[], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | getData(){ |
| | | const id = this.$route.params && this.$route.params.id; |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | | getPropertyInfo(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) |
| | | { |
| | | console.log() |
| | | } |
| | | else { |
| | | let nms = paths[i].split("\/") |
| | | let nm = nms[nms.length - 1] |
| | | if(paths[i][0]=="/") |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | |
| | | } |
| | | } |
| | | } |
| | | _this.fileListOther = _this.fileListOther1 |
| | | this.loading = false; |
| | | }); |
| | | this.getCateInfor() |
| | | |
| | | } |
| | | }, |
| | | /** 查询类别信息 */ |
| | | getCateInfor() |
| | | { |
| | |
| | | this.fileList.push({name:file.name,url:file.url,res:true}) |
| | | }, |
| | | //自定义上传方法 |
| | | handleChange1(file, fileListOther1) { |
| | | handleChange1(file, fileListOther12) { |
| | | //定义一个全局数组uploadFileList来做存储 |
| | | |
| | | // this.uploadFileList.push(file.raw); |
| | |
| | | updateProperty(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | this.getData() |
| | | this.fileListOther1=[] |
| | | }); |
| | | }) |
| | | |
| | |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fileListOther1:[], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | getData(){ |
| | | const id = this.$route.params && this.$route.params.id; |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | | getPetnoteList(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) |
| | | // alert(pth) |
| | | if (_this.fot.includes(pth) === true) |
| | | { |
| | | console.log() |
| | | } |
| | | else { |
| | | // alert(paths[i]) |
| | | // alert() |
| | | let nms = paths[i].split("\/") |
| | | let nm = nms[nms.length - 1] |
| | | if(paths[i][0]=="/") |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | |
| | | } |
| | | } |
| | | } |
| | | _this.fileListOther = _this.fileListOther1 |
| | | this.loading = false; |
| | | }); |
| | | |
| | | } |
| | | }, |
| | | submitForm() { |
| | | let ul = this.fileList.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | |
| | | this.fileList.push({name:file.name,url:file.url,res:true}) |
| | | }, |
| | | //自定义上传方法 |
| | | handleChange1(file, fileListOther1) { |
| | | handleChange1(file, fileListOther12) { |
| | | //定义一个全局数组uploadFileList来做存储 |
| | | |
| | | // this.uploadFileList.push(file.raw); |
| | |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | this.uploading = false; |
| | | this.getData() |
| | | this.fileListOther1=[] |
| | | }); |
| | | }) |
| | | |
| | |
| | | fileList1:[], |
| | | uploadFileList:[], |
| | | uploadFileList1:[], |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fileListOther:[], |
| | | fileListOther1:[], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | getData(){ |
| | | const id = this.$route.params && this.$route.params.id; |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | | getSecretInfo({id}).then((response) => { |
| | | _this.formData = response.data; |
| | | if(_this.formData.isFinger==1) |
| | | _this.formData.isFinger = '是' |
| | | else |
| | | _this.formData.isFinger = '否' |
| | | if(_this.formData.isFace==1) |
| | | _this.formData.isFace = '是' |
| | | else |
| | | _this.formData.isFace = '否' |
| | | if(_this.formData.isPrivate==0) |
| | | _this.formData.isPrivate = '公有' |
| | | else |
| | | _this.formData.isPrivate = '私有' |
| | | 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) |
| | | // alert(pth) |
| | | if (_this.fot.includes(pth) === true) |
| | | { |
| | | console.log() |
| | | } |
| | | else { |
| | | |
| | | // alert() |
| | | let nms = paths[i].split("\/") |
| | | let nm = nms[nms.length - 1] |
| | | if(paths[i][0]=="/") |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | |
| | | } |
| | | } |
| | | } |
| | | _this.fileListOther = _this.fileListOther1 |
| | | this.loading = false; |
| | | }); |
| | | this.getCateInfo() |
| | | |
| | | } |
| | | }, |
| | | |
| | | getCateInfo() |
| | | { |
| | | let _this = this |
| | |
| | | updateSecret(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | this.getData() |
| | | this.fileListOther1=[] |
| | | }); |
| | | }) |
| | | |
| | |
| | | uploadFileList:[], |
| | | uploadFileList1:[], |
| | | fileListOther:[], |
| | | fileListOther1:[], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | |
| | | // this.getCateInfor() |
| | | |
| | | } |
| | | console.log(_this.fileList,'666') |
| | | console.log(_this.fileListOther,'888') |
| | | |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | getData(){ |
| | | const id = this.$route.params && this.$route.params.id; |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | | getSelfEconomyInfo({id}).then((response) => { |
| | | this.formData = response.data; |
| | | if(this.formData.status==1) |
| | | this.formData.status = '是' |
| | | else |
| | | this.formData.status = '否' |
| | | 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) |
| | | // alert(pth) |
| | | if (_this.fot.includes(pth) === true) |
| | | { |
| | | console.log() |
| | | } |
| | | else { |
| | | // alert(paths[i]) |
| | | // alert() |
| | | let nms = paths[i].split("\/") |
| | | let nm = nms[nms.length - 1] |
| | | if(paths[i][0]=="/") |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | |
| | | } |
| | | } |
| | | } |
| | | _this.fileListOther = _this.fileListOther1 |
| | | this.loading = false; |
| | | }); |
| | | // this.getCateInfor() |
| | | |
| | | } |
| | | }, |
| | | /** 查询类别信息 */ |
| | | // getCateInfor() |
| | | // { |
| | |
| | | this.fileList.push({name:file.name,url:file.url,res:true}) |
| | | }, |
| | | //自定义上传方法 |
| | | handleChange1(file, fileListOther1) { |
| | | handleChange1(file, fileListOther12) { |
| | | //定义一个全局数组uploadFileList来做存储 |
| | | |
| | | // this.uploadFileList.push(file.raw); |
| | |
| | | updateSelfEconomy(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | this.getData() |
| | | this.fileListOther1=[] |
| | | if(this.formData.status== 1) |
| | | this.formData.status = '是' |
| | | else |
| | |
| | | fileList1:[], |
| | | uploadFileList:[], |
| | | uploadFileList1:[], |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fileListOther:[], |
| | | fileListOther1:[], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | getData(){ |
| | | const id = this.$route.params && this.$route.params.id; |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | | getTravelBaseInfo(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) |
| | | // alert(pth) |
| | | if (_this.fot.includes(pth) === true) |
| | | { |
| | | if(paths[i].includes("https")) |
| | | _this.fileList.push({name:paths[i],url: paths[i],res:false}) |
| | | else |
| | | { |
| | | console.log() |
| | | } |
| | | } |
| | | else { |
| | | // alert(paths[i]) |
| | | // alert() |
| | | if(paths[i].includes("https")) |
| | | _this.fileListOther.push({name:paths[i],url: paths[i],res:false}) |
| | | else{ |
| | | let nms = paths[i].split("\/") |
| | | let nm = nms[nms.length - 1] |
| | | if(paths[i][0]=="/") |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | _this.fileListOther = _this.fileListOther1 |
| | | this.loading = false; |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | |
| | | submitForm() { |
| | | let ul = this.fileList.map(function (elem){ |
| | |
| | | this.fileList.push({name:file.name,url:file.url,res:true}) |
| | | }, |
| | | //自定义上传方法 |
| | | handleChange1(file, fileListOther1) { |
| | | handleChange1(file, fileListOther12) { |
| | | //定义一个全局数组uploadFileList来做存储 |
| | | |
| | | // this.uploadFileList.push(file.raw); |
| | |
| | | updateTravelBase(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | this.getData() |
| | | this.fileListOther1=[] |
| | | }); |
| | | }) |
| | | |
| | |
| | | fileList1:[], |
| | | uploadFileList:[], |
| | | uploadFileList1:[], |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fileListOther:[], |
| | | fileListOther1:[], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | getData(){ |
| | | const id = this.$route.params && this.$route.params.id; |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | | getWish({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) |
| | | // alert(pth) |
| | | if (_this.fot.includes(pth) === true) |
| | | { |
| | | console.log() |
| | | } |
| | | else { |
| | | // alert(paths[i]) |
| | | // alert() |
| | | let nms = paths[i].split("\/") |
| | | let nm = nms[nms.length - 1] |
| | | if(paths[i][0]=="/") |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | |
| | | } |
| | | } |
| | | } |
| | | _this.fileListOther = _this.fileListOther1 |
| | | this.loading = false; |
| | | }); |
| | | // this.getCateInfor() |
| | | |
| | | } |
| | | }, |
| | | submitForm() { |
| | | let ul = this.fileList.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | |
| | | this.fileList.push({name:file.name,url:file.url,res:true}) |
| | | }, |
| | | //自定义上传方法 |
| | | handleChange1(file, fileListOther1) { |
| | | handleChange1(file, fileListOther12) { |
| | | //定义一个全局数组uploadFileList来做存储 |
| | | |
| | | // this.uploadFileList.push(file.raw); |
| | |
| | | updateWish(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | this.getData() |
| | | this.fileListOther1=[] |
| | | }); |
| | | }) |
| | | |