|
@@ -128,18 +128,28 @@
|
|
|
<div class="addDialogLogo">LOGO</div>
|
|
|
<div class="deleteContent">"{{ tit }}"项目,是否确定完结?</div>
|
|
|
<div class="deleteContent1">活动完结报告</div>
|
|
|
- <div class="download" v-if="endTable.file!=''">
|
|
|
+ <!-- <div class="download" v-if="endTable.file!=''">
|
|
|
<div>{{ endTable.file!=''&&endTable.file!=null?endTable.file.fileName:"" }}</div>
|
|
|
- </div>
|
|
|
- <div class="addMoneyBtn" style="margin-left: 0;" v-if="endTable.file==''||endTable.file==null">
|
|
|
+ </div> -->
|
|
|
+ <!-- <div class="addMoneyBtn" style="margin-left: 0;" v-if="endTable.file==''||endTable.file==null"> -->
|
|
|
+
|
|
|
+ <div class="download" v-for="item in file" :key="item.fid">
|
|
|
+ <span>{{ item.fileName }}</span>
|
|
|
+ <div class="downloadBtn">
|
|
|
+ <el-button type="primary" size="mini" @click="download(item)">下载文件</el-button>
|
|
|
+ <el-button type="primary" @click="checkDelFile(item.fid)" size="mini">删除文件</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="addMoneyBtn" style="margin-left: 0;">
|
|
|
<div class="jia">+</div>添加
|
|
|
<div id="upFile">
|
|
|
<beUpload @getFile="getFile" :navName="'上传文件'" :accept="accept"> </beUpload>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="DelBtn" style="margin-left: 0;" v-if="endTable.file!=''&&endTable.file!=null">
|
|
|
+ <!-- <div class="DelBtn" style="margin-left: 0;" v-if="endTable.file!=''&&endTable.file!=null">
|
|
|
<el-button type="primary" @click="endTable.file=''">删除文件</el-button>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="ending" class="diaBtn">确认提交</el-button>
|
|
|
<el-button @click="init" class="diaBtn">取消</el-button>
|
|
@@ -172,7 +182,7 @@ import beUpload from '../../components/tool/beUpload'
|
|
|
accept:".doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
|
iid:'',
|
|
|
selectText:'', //文字搜素框数据
|
|
|
- endDialog:false,
|
|
|
+ endDialog:true,
|
|
|
tit:'', //完结框项目名称
|
|
|
items:[], //项目列表数据
|
|
|
table:{ // 分页数据
|
|
@@ -211,23 +221,24 @@ import beUpload from '../../components/tool/beUpload'
|
|
|
state:99,
|
|
|
leader:'',
|
|
|
},
|
|
|
- endTable:{
|
|
|
+
|
|
|
// Id:"",
|
|
|
// title:"",
|
|
|
- file:"",
|
|
|
- }
|
|
|
+ file:[],
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
getFile(val) {//上传文件
|
|
|
- this.endTable.file = val;
|
|
|
+ this.file.push(val);
|
|
|
+ console.log(this.file);
|
|
|
},
|
|
|
ending(){ //完结提交
|
|
|
- if(this.endTable.file=="")return this.$message.error("请上传完结报告");
|
|
|
+ if(this.file=="")return this.$message.error("请上传完结报告");
|
|
|
this.ajax.post(this.$store.state.api+"/UploadProjectManageFile",{
|
|
|
uid:this.$store.state.userInfo.userid,
|
|
|
cid:this.iid,
|
|
|
- file:JSON.stringify([this.endTable.file]),
|
|
|
+ file:JSON.stringify(this.file),
|
|
|
num:1
|
|
|
}).then(res=>{
|
|
|
console.log(res);
|
|
@@ -240,7 +251,7 @@ import beUpload from '../../components/tool/beUpload'
|
|
|
}
|
|
|
this.getData();
|
|
|
})
|
|
|
- // this.endDialog=false;
|
|
|
+ this.endDialog=false;
|
|
|
},
|
|
|
scheduleDetail(val){ //进度详情
|
|
|
// console.log(val);
|
|
@@ -444,12 +455,15 @@ import beUpload from '../../components/tool/beUpload'
|
|
|
margin-top: 30px;
|
|
|
}
|
|
|
.download{
|
|
|
- margin: 50px 0 20px;
|
|
|
+ margin: 10px 0 20px;
|
|
|
width: 100%;
|
|
|
text-align: left;
|
|
|
font-size: 16px;
|
|
|
font-weight: bold;
|
|
|
color: #5391fd;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ // background: #ccc;
|
|
|
}
|
|
|
|
|
|
.addDialogLogo{
|