|
@@ -123,22 +123,29 @@ export default {
|
|
|
methods: {
|
|
|
submitUpload() {
|
|
|
let fileUrl=[]
|
|
|
- if(this.fileList!=null&&this.fileList.length>0){
|
|
|
- for (let i = 0; i < this.fileList.length; i++) {
|
|
|
- let file={attachPath:this.fileList[i].url,fileName:this.fileList[i].webName,busIndx: "bus_indx_forest",busSource: "PC"}
|
|
|
- fileUrl.push(file)
|
|
|
+ if (this.fileList!=null&&this.fileList.length>0)
|
|
|
+ {
|
|
|
+ if(this.fileList!=null&&this.fileList.length>0){
|
|
|
+ for (let i = 0; i < this.fileList.length; i++) {
|
|
|
+ let file={attachPath:this.fileList[i].url,fileName:this.fileList[i].webName,busIndx: "bus_indx_forest",busSource: "PC"}
|
|
|
+ fileUrl.push(file)
|
|
|
+ }
|
|
|
}
|
|
|
+ let param={ eventCode:this.eventCode,operation:"bus_oper_type_2",operationType:"log_oper_type_1",fileList: fileUrl }
|
|
|
+ //日志文件上传
|
|
|
+ eventLogUpload(param).then(res => {
|
|
|
+ if(res.code==200){
|
|
|
+ this.$message.success(`上传成功!`);
|
|
|
+ this.showEventLogUpload = false
|
|
|
+ this.cancelEventLogUploadShow();
|
|
|
+ this.$parent.refreshEventDialog(this.eventCode)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ this.$message.warning(`请先上传文件!`);
|
|
|
}
|
|
|
- let param={ eventCode:this.eventCode,operation:"bus_oper_type_2",operationType:"log_oper_type_1",fileList: fileUrl }
|
|
|
- //日志文件上传
|
|
|
- eventLogUpload(param).then(res => {
|
|
|
- if(res.code==200){
|
|
|
- this.$message.success(`上传成功!`);
|
|
|
- this.showEventLogUpload = false
|
|
|
- this.cancelEventLogUploadShow();
|
|
|
- this.$parent.refreshEventDialog(this.eventCode)
|
|
|
- }
|
|
|
- })
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
eventLogUpload(eventCode) {
|
|
|
this.eventCode=eventCode
|