| @@ -86,6 +86,7 @@ | |||
| <img src="../../assets/images/sunVillage_info/WORD.png" width="30" v-if="item.type == 'word'"/> | |||
| <img src="../../assets/images/sunVillage_info/ECEL.png" width="30" v-if="item.type == 'excel'" /> | |||
| <p style="margin-left: 10px;">{{item.name}}</p> | |||
| <img src="../../assets/images/sunVillage_info/delete.png" width="16" style="margin-left: auto;" @click="deleteWord(index)" /> | |||
| </div> | |||
| </div> | |||
| <van-uploader accept="*" :after-read="afterReadOpenFile" style="margin-top: 10PX"> | |||
| @@ -169,10 +170,14 @@ | |||
| this.openNy = data; | |||
| this.showBuildTime = false; | |||
| }, | |||
| deleteFile1(file){ | |||
| console.log(file) | |||
| deleteFile1(detail){ | |||
| this.openPic2.splice(detail.index,1) | |||
| // this.form.openPic.splice(index,1); | |||
| }, | |||
| deleteWord(index){ | |||
| this.openFileList.splice(index,1); | |||
| this.openFile2.splice(index,1); | |||
| }, | |||
| afterRead(file) { | |||
| // 此时可以自行将文件上传至服务器 | |||
| this.openPic.push(file.file); | |||
| @@ -86,6 +86,7 @@ | |||
| <img src="../../assets/images/sunVillage_info/WORD.png" width="30" v-if="item.type == 'word'"/> | |||
| <img src="../../assets/images/sunVillage_info/ECEL.png" width="30" v-if="item.type == 'excel'" /> | |||
| <p style="margin-left: 10px;">{{item.name}}</p> | |||
| <img src="../../assets/images/sunVillage_info/delete.png" width="16" style="margin-left: auto;" @click="deleteWord(index)" /> | |||
| </div> | |||
| </div> | |||
| <van-uploader accept="*" :after-read="afterReadOpenFile" style="margin-top: 10PX"> | |||
| @@ -154,7 +155,6 @@ | |||
| getDetail(id){ | |||
| otherPublicDetail(this.queryParams).then((res) => { | |||
| var that = this ; | |||
| res.data.otherTypeText = this.selectDictLabel(this.otherGkTypeOptions, res.data.otherType); | |||
| if (res.data.openFile!='' && res.data.openFile != null && res.data.openFile != undefined){ | |||
| this.openFile = res.data.openFile.split(',') | |||
| @@ -177,7 +177,8 @@ | |||
| this.openPic[i] = {url:'/api'+rrr} | |||
| }) | |||
| } | |||
| that.form = res.data; | |||
| res.data.otherTypeText = this.selectDictLabel(this.otherGkTypeOptions, res.data.otherType); | |||
| this.form = res.data; | |||
| }) | |||
| }, | |||
| onSubmit(){ | |||
| @@ -203,6 +204,10 @@ | |||
| console.log(detail) | |||
| this.openPic2.splice(detail.index,1) | |||
| }, | |||
| deleteWord(index){ | |||
| this.openFile.splice(index,1); | |||
| this.openFile2.splice(index,1); | |||
| }, | |||
| afterRead(file) { | |||
| // 此时可以自行将文件上传至服务器 | |||
| // this.openPic.push(file.file); | |||
| @@ -225,8 +230,8 @@ | |||
| }else if(name.indexOf('.xls') > -1){ | |||
| type = 'excel'; | |||
| } | |||
| this.openFileList.push({name:file.file.name,type:type}) | |||
| this.openFile.push(file.file); | |||
| this.openFile.push({name:file.file.name,type:type}) | |||
| this.openFileList.push(file.file); | |||
| }, | |||
| onConfirmPictureType(data){ | |||
| this.form.otherTypeText = data.dictLabel; | |||
| @@ -65,6 +65,7 @@ | |||
| <img src="../../assets/images/sunVillage_info/WORD.png" width="30" v-if="item.type == 'word'"/> | |||
| <img src="../../assets/images/sunVillage_info/ECEL.png" width="30" v-if="item.type == 'excel'" /> | |||
| <p style="margin-left: 10px;">{{item.name}}</p> | |||
| <img src="../../assets/images/sunVillage_info/delete.png" width="16" style="margin-left: auto;" @click="deleteWord(index)" /> | |||
| </div> | |||
| </div> | |||
| <van-uploader accept="*" :after-read="afterReadOpenFile" style="margin-top: 10PX"> | |||
| @@ -131,7 +132,7 @@ | |||
| this.type = this.$route.query.type; | |||
| this.queryParams.bookId = Cookies.get('bookId'); | |||
| this.queryParams.deptId = Cookies.get('deptId'); | |||
| this.form.openName = this.format(new Date(),'yyyy')+ '年' + (this.format(new Date(),'MM')-1) + '月财务公开'; | |||
| this.form.openName = this.format(new Date(),'yyyy')+ '年' + (this.format(new Date(),'MM')) + '月财务公开'; | |||
| }, | |||
| methods: { | |||
| onSubmit(){ | |||
| @@ -154,10 +155,14 @@ | |||
| this.openNy = data; | |||
| this.showBuildTime = false; | |||
| }, | |||
| deleteFile1(file){ | |||
| console.log(file) | |||
| deleteFile1(detail){ | |||
| this.openPic2.splice(detail.index,1) | |||
| // this.form.openPic.splice(index,1); | |||
| }, | |||
| deleteWord(index){ | |||
| this.openFileList.splice(index,1); | |||
| this.openFile2.splice(index,1); | |||
| }, | |||
| afterRead(file) { | |||
| // 此时可以自行将文件上传至服务器 | |||
| this.openPic.push(file.file); | |||
| @@ -65,6 +65,7 @@ | |||
| <img src="../../assets/images/sunVillage_info/WORD.png" width="30" v-if="item.type == 'word'"/> | |||
| <img src="../../assets/images/sunVillage_info/ECEL.png" width="30" v-if="item.type == 'excel'" /> | |||
| <p style="margin-left: 10px;">{{item.name}}</p> | |||
| <img src="../../assets/images/sunVillage_info/delete.png" width="16" style="margin-left: auto;" @click="deleteWord(index)" /> | |||
| </div> | |||
| </div> | |||
| <van-uploader accept="*" :after-read="afterReadOpenFile" style="margin-top: 10PX"> | |||
| @@ -150,7 +151,7 @@ | |||
| }else if(name.indexOf('.xls') > -1){ | |||
| type = 'excel'; | |||
| } | |||
| this.openFile[i] = {name:name,type:type} | |||
| this.openFile[i] = {name:name,type:type,url:rr} | |||
| }) | |||
| } | |||
| if (res.data.openPic!='' && res.data.openPic != null && res.data.openPic != undefined){ | |||
| @@ -185,6 +186,10 @@ | |||
| console.log(detail) | |||
| this.openPic2.splice(detail.index,1) | |||
| }, | |||
| deleteWord(index){ | |||
| this.openFile.splice(index,1); | |||
| this.openFile2.splice(index,1); | |||
| }, | |||
| afterRead(file) { | |||
| // 此时可以自行将文件上传至服务器 | |||
| this.openPicList.push(file.file); | |||
| @@ -65,6 +65,7 @@ | |||
| <img src="../../assets/images/sunVillage_info/WORD.png" width="30" v-if="item.type == 'word'"/> | |||
| <img src="../../assets/images/sunVillage_info/ECEL.png" width="30" v-if="item.type == 'excel'" /> | |||
| <p style="margin-left: 10px;">{{item.name}}</p> | |||
| <img src="../../assets/images/sunVillage_info/delete.png" width="16" style="margin-left: auto;" @click="deleteWord(index)" /> | |||
| </div> | |||
| </div> | |||
| <van-uploader accept="*" :after-read="afterReadOpenFile" style="margin-top: 10PX"> | |||
| @@ -159,10 +160,14 @@ | |||
| this.openNy = data; | |||
| this.showBuildTime = false; | |||
| }, | |||
| deleteFile1(file){ | |||
| console.log(file) | |||
| deleteFile1(detail){ | |||
| this.openPic2.splice(detail.index,1) | |||
| // this.form.openPic.splice(index,1); | |||
| }, | |||
| deleteWord(index){ | |||
| this.openFileList.splice(index,1); | |||
| this.openFile2.splice(index,1); | |||
| }, | |||
| afterRead(file) { | |||
| // 此时可以自行将文件上传至服务器 | |||
| this.openPic.push(file.file); | |||
| @@ -65,6 +65,7 @@ | |||
| <img src="../../assets/images/sunVillage_info/WORD.png" width="30" v-if="item.type == 'word'"/> | |||
| <img src="../../assets/images/sunVillage_info/ECEL.png" width="30" v-if="item.type == 'excel'" /> | |||
| <p style="margin-left: 10px;">{{item.name}}</p> | |||
| <img src="../../assets/images/sunVillage_info/delete.png" width="16" style="margin-left: auto;" @click="deleteWord(index)" /> | |||
| </div> | |||
| </div> | |||
| <van-uploader accept="*" :after-read="afterReadOpenFile" style="margin-top: 10PX"> | |||
| @@ -193,6 +194,10 @@ | |||
| console.log(detail) | |||
| this.openPic2.splice(detail.index,1) | |||
| }, | |||
| deleteWord(index){ | |||
| this.openFile.splice(index,1); | |||
| this.openFile2.splice(index,1); | |||
| }, | |||
| afterRead(file) { | |||
| // 此时可以自行将文件上传至服务器 | |||
| this.openPicList.push(file.file); | |||
| @@ -86,6 +86,7 @@ | |||
| <img src="../../assets/images/sunVillage_info/WORD.png" width="30" v-if="item.type == 'word'"/> | |||
| <img src="../../assets/images/sunVillage_info/ECEL.png" width="30" v-if="item.type == 'excel'" /> | |||
| <p style="margin-left: 10px;">{{item.name}}</p> | |||
| <img src="../../assets/images/sunVillage_info/delete.png" width="16" style="margin-left: auto;" @click="deleteWord(index)" /> | |||
| </div> | |||
| </div> | |||
| <van-uploader accept="*" :after-read="afterReadOpenFile" style="margin-top: 10PX"> | |||
| @@ -178,10 +179,14 @@ | |||
| this.openNy = data; | |||
| this.showBuildTime = false; | |||
| }, | |||
| deleteFile1(file){ | |||
| console.log(file) | |||
| deleteFile1(detail){ | |||
| this.openPic2.splice(detail.index,1) | |||
| // this.form.openPic.splice(index,1); | |||
| }, | |||
| deleteWord(index){ | |||
| this.openFileList.splice(index,1); | |||
| this.openFile2.splice(index,1); | |||
| }, | |||
| afterRead(file) { | |||
| // 此时可以自行将文件上传至服务器 | |||
| this.openPic.push(file.file); | |||
| @@ -134,15 +134,6 @@ | |||
| }; | |||
| }, | |||
| created() { | |||
| this.houseGetDicts("asset_status").then((response) => { | |||
| this.assetStatusOptions = response.data; | |||
| }); | |||
| this.houseGetDicts("asset_type").then((response) => { | |||
| this.assetTypeOptions = response.data; | |||
| }); | |||
| this.houseGetDicts("use_type").then((response) => { | |||
| this.useTypeOptions = response.data; | |||
| }); | |||
| this.houseGetDicts("picture_type").then((response) => { | |||
| this.pictureTypeOptions = response.data; | |||
| }); | |||
| @@ -86,6 +86,7 @@ | |||
| <img src="../../assets/images/sunVillage_info/WORD.png" width="30" v-if="item.type == 'word'"/> | |||
| <img src="../../assets/images/sunVillage_info/ECEL.png" width="30" v-if="item.type == 'excel'" /> | |||
| <p style="margin-left: 10px;">{{item.name}}</p> | |||
| <img src="../../assets/images/sunVillage_info/delete.png" width="16" style="margin-left: auto;" @click="deleteWord(index)" /> | |||
| </div> | |||
| </div> | |||
| <van-uploader accept="*" :after-read="afterReadOpenFile" style="margin-top: 10PX"> | |||
| @@ -141,15 +142,6 @@ | |||
| }; | |||
| }, | |||
| created() { | |||
| this.houseGetDicts("asset_status").then((response) => { | |||
| this.assetStatusOptions = response.data; | |||
| }); | |||
| this.houseGetDicts("asset_type").then((response) => { | |||
| this.assetTypeOptions = response.data; | |||
| }); | |||
| this.houseGetDicts("use_type").then((response) => { | |||
| this.useTypeOptions = response.data; | |||
| }); | |||
| this.houseGetDicts("picture_type").then((response) => { | |||
| this.pictureTypeOptions = response.data; | |||
| }); | |||
| @@ -164,7 +156,6 @@ | |||
| pictureGet(this.queryParams).then((res) => { | |||
| var that = this ; | |||
| res.data.pictureTypeText = this.selectDictLabel(this.pictureTypeOptions, res.data.pictureType); | |||
| if (res.data.openFile!='' && res.data.openFile != null && res.data.openFile != undefined){ | |||
| this.openFile = res.data.openFile.split(',') | |||
| this.openFile2 = res.data.openFile.split(',') | |||
| @@ -212,6 +203,10 @@ | |||
| console.log(detail) | |||
| this.openPic2.splice(detail.index,1) | |||
| }, | |||
| deleteWord(index){ | |||
| this.openFile.splice(index,1); | |||
| this.openFile2.splice(index,1); | |||
| }, | |||
| afterRead(file) { | |||
| // 此时可以自行将文件上传至服务器 | |||
| // this.openPic.push(file.file); | |||
| @@ -234,8 +229,8 @@ | |||
| }else if(name.indexOf('.xls') > -1){ | |||
| type = 'excel'; | |||
| } | |||
| this.openFileList.push({name:file.file.name,type:type}) | |||
| this.openFile.push(file.file); | |||
| this.openFile.push({name:file.file.name,type:type}) | |||
| this.openFileList.push(file.file); | |||
| }, | |||
| onConfirmPictureType(data){ | |||
| this.form.pictureTypeText = data.dictLabel; | |||
| @@ -65,6 +65,7 @@ | |||
| <img src="../../assets/images/sunVillage_info/WORD.png" width="30" v-if="item.type == 'word'"/> | |||
| <img src="../../assets/images/sunVillage_info/ECEL.png" width="30" v-if="item.type == 'excel'" /> | |||
| <p style="margin-left: 10px;">{{item.name}}</p> | |||
| <img src="../../assets/images/sunVillage_info/delete.png" width="16" style="margin-left: auto;" @click="deleteWord(index)" /> | |||
| </div> | |||
| </div> | |||
| <van-uploader accept="*" :after-read="afterReadOpenFile" style="margin-top: 10PX"> | |||
| @@ -152,10 +153,14 @@ | |||
| this.openNy = data; | |||
| this.showBuildTime = false; | |||
| }, | |||
| deleteFile1(file){ | |||
| console.log(file) | |||
| deleteFile1(detail){ | |||
| this.openPic2.splice(detail.index,1) | |||
| // this.form.openPic.splice(index,1); | |||
| }, | |||
| deleteWord(index){ | |||
| this.openFileList.splice(index,1); | |||
| this.openFile2.splice(index,1); | |||
| }, | |||
| afterRead(file) { | |||
| // 此时可以自行将文件上传至服务器 | |||
| this.openPic.push(file.file); | |||
| @@ -65,6 +65,7 @@ | |||
| <img src="../../assets/images/sunVillage_info/WORD.png" width="30" v-if="item.type == 'word'"/> | |||
| <img src="../../assets/images/sunVillage_info/ECEL.png" width="30" v-if="item.type == 'excel'" /> | |||
| <p style="margin-left: 10px;">{{item.name}}</p> | |||
| <img src="../../assets/images/sunVillage_info/delete.png" width="16" style="margin-left: auto;" @click="deleteWord(index)" /> | |||
| </div> | |||
| </div> | |||
| <van-uploader accept="*" :after-read="afterReadOpenFile" style="margin-top: 10PX"> | |||
| @@ -150,7 +151,7 @@ | |||
| }else if(name.indexOf('.xls') > -1){ | |||
| type = 'excel'; | |||
| } | |||
| this.openFile[i] = {name:name,type:type} | |||
| this.openFile[i] = {name:name,type:type,url:rr} | |||
| }) | |||
| } | |||
| if (res.data.openPic!='' && res.data.openPic != null && res.data.openPic != undefined){ | |||
| @@ -185,6 +186,10 @@ | |||
| console.log(detail) | |||
| this.openPic2.splice(detail.index,1) | |||
| }, | |||
| deleteWord(index){ | |||
| this.openFile.splice(index,1); | |||
| this.openFile2.splice(index,1); | |||
| }, | |||
| afterRead(file) { | |||
| // 此时可以自行将文件上传至服务器 | |||
| this.openPicList.push(file.file); | |||