@@ -345,7 +345,7 @@
width: 34px;
display: block;
height: 30px;
- background: url('../../../assets/images/sunVillage_info/signature_icon_01.png') no-repeat;
+ background: url('../../../assets/images/sunVillage_info/signature_icon_01z.png') no-repeat;
background-size: 100% 100%;
margin-right: 10px;
flex-shrink: 0;
diff --git a/src/views/user/supply/index.vue b/src/views/user/supply/index.vue
index b7fe6f69..1f63ca48 100644
--- a/src/views/user/supply/index.vue
+++ b/src/views/user/supply/index.vue
@@ -1,6 +1,6 @@
-
+
{
- this.upLoadList.push(r1.fileName);
- })
-
- // for ( var i = 0 ; i < this.fileList.length ; i++){
- // if(this.fileList[i].url == undefined&&this.fileList!='') {
- // this.fileList[i] = {url:this.fileList[i].content, id: '', isImage: true};
- // }
+ // let params1 = {
+ // file:file.content
// }
+ // base64Upload(params1).then((r1) => {
+ // this.upLoadList.push(r1.fileName);
+ // })
+
+ for ( var i = 0 ; i < this.fileList.length ; i++){
+ if(this.fileList[i].url == undefined&&this.fileList!='') {
+ this.fileList[i] = {url:this.fileList[i].content, id: '', isImage: true};
+ }
+ }
},
deleteFile(elIndex){
// deleteUserImg(elIndex.id).then(response => {});
- // if(elIndex.id != ''){
- // deleteUserImg(elIndex.id).then(response => {});
- // }
+ if(elIndex.id != ''){
+ deleteUserImg(elIndex.id).then(response => {});
+ }
+ //
return (file, name) => {
let fileIndex = name.index
this.fileList[elIndex].splice(fileIndex, 1)
@@ -153,40 +154,31 @@ export default {
},
submitInteraction(){
this.form.logintime = this.getNowFormatDate();
- this.form.fileUrl = this.upLoadList.join(',');
if(this.$route.query.type == 'update'){
this.file.tableId = this.$route.query.id ;
updateDemand(this.form).then(response => {
- // this.$toast.loading({
- // message: "上传中...",
- // forbidClick: true,
- // duration: 0,
- // });
- // for (var i = 0 ; i < this.fileList.length ; i++){
- // if(this.fileList[i].url.indexOf('http://') == -1&&this.fileList!=''){
- // this.file.files.push(this.fileList[i].url);
- // }
- // }
- Dialog.confirm({
- title: '系统提示',
- message: '修改成功',
- confirmButtonText: '确定',
- showCancelButton:false
- }).then(() => {
- self.location=document.referrer;
- })
- // base64Attach(this.file).then(response => {
- // if (response.code == 200){
- // Dialog.confirm({
- // title: '系统提示',
- // message: '修改成功',
- // confirmButtonText: '确定',
- // showCancelButton:false
- // }).then(() => {
- // self.location=document.referrer;
- // })
- // }
- // });
+ this.$toast.loading({
+ message: "上传中...",
+ forbidClick: true,
+ duration: 0,
+ });
+ for (var i = 0 ; i < this.fileList.length ; i++){
+ if(this.fileList[i].url.indexOf('/api') == -1&&this.fileList!=''){
+ this.file.files.push(this.fileList[i].url);
+ }
+ }
+ base64Attach(this.file).then(response => {
+ if (response.code == 200){
+ Dialog.confirm({
+ title: '系统提示',
+ message: '修改成功',
+ confirmButtonText: '确定',
+ showCancelButton:false
+ }).then(() => {
+ history.back(-1);
+ })
+ }
+ });
});
}else{
userDemand(this.form).then(response => {
@@ -196,29 +188,21 @@ export default {
forbidClick: true,
duration: 0,
});
- // for(var i = 0 ; i < this.fileList.length ; i++){
- // this.file.files.push(this.fileList[i].url);
- // }
- Dialog.confirm({
- title: '系统提示',
- message: '发布成功',
- confirmButtonText: '确定',
- showCancelButton:false
- }).then(() => {
- self.location=document.referrer;
- })
- // base64Attach(this.file).then(response => {
- // if (response.code == 200){
- // Dialog.confirm({
- // title: '系统提示',
- // message: '发布成功',
- // confirmButtonText: '确定',
- // showCancelButton:false
- // }).then(() => {
- // self.location=document.referrer;
- // })
- // }
- // });
+ for(var i = 0 ; i < this.fileList.length ; i++){
+ this.file.files.push(this.fileList[i].url);
+ }
+ base64Attach(this.file).then(response => {
+ if (response.code == 200){
+ Dialog.confirm({
+ title: '系统提示',
+ message: '发布成功',
+ confirmButtonText: '确定',
+ showCancelButton:false
+ }).then(() => {
+ history.back(-1);
+ })
+ }
+ });
});
}
},