|
@@ -205,7 +205,7 @@
|
|
|
|
|
|
<span class="delUploadBtnSty" @click="delUploadBtn(index)">×</span>
|
|
|
<img style="position: absolute;left: -1px;top:-1px;width: 149px;height: 101%;border-radius: 5px;" :src="dialogImageUrl" alt="">
|
|
|
- <div style="position: absolute;left: -20%;bottom: -30px;width: 200px;height: 30px;color: #000;line-height: 30px;display: flex;justify-content: center;">新建 DOCX 文档 (2).docx</div>
|
|
|
+ <div style="position: absolute;left: -20%;bottom: -30px;width: 200px;height: 30px;color: #000;line-height: 30px;display: flex;justify-content: center;">{{ item.fileName }}</div>
|
|
|
<!-- <img v-if="imageUrl" :src="imageUrl" class="avatar"> -->
|
|
|
</el-upload>
|
|
|
|
|
@@ -218,7 +218,9 @@
|
|
|
<div class="blockWidth">
|
|
|
<el-button type="primary">生成表单</el-button>
|
|
|
<el-button type="primary" @click="uploadData">保存</el-button>
|
|
|
- <el-button type="primary">审核</el-button>
|
|
|
+ <el-button v-show="status==0" style="width: 120px;" @click="endDialogShow()" type="primary">审核</el-button>
|
|
|
+ <el-button v-show="status==1" style="width: 120px;background-color: #c8c9cc !important;border-color: #c8c9cc;cursor: no-drop;" type="primary">审核</el-button>
|
|
|
+ <el-button v-show="status==2" style="width: 120px;background-color: #c8c9cc !important;border-color: #c8c9cc;cursor: no-drop;" type="primary">审核</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -237,6 +239,23 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<!-- 提交对话框结束 -->
|
|
|
+
|
|
|
+ <!-- 审核对话框框开始 -->
|
|
|
+ <el-dialog
|
|
|
+ title="提示"
|
|
|
+ :visible.sync="auditDialog"
|
|
|
+ width="600px"
|
|
|
+ class="projectApplicationfundAddDialog"
|
|
|
+ :before-close="init">
|
|
|
+ <div class="addDialogLogo">LOGO</div>
|
|
|
+ <div class="deleteContent">确定完成审核?</div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitAudit" class="btn5">确认审核</el-button>
|
|
|
+ <el-button @click="auditDialog=false" class="btn5" style="background:#cccccc" size="small">取消</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ <!-- 审核对话框结束 -->
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -250,7 +269,10 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
accept:"*",
|
|
|
+ status:'', //审核状态
|
|
|
+ fid:'',
|
|
|
submitHint:false, //提交按钮
|
|
|
+ auditDialog:false, //审核按钮
|
|
|
dialogImageUrl:require('../../assets/img/jj.jpg'),
|
|
|
disabled: false,
|
|
|
file:[],
|
|
@@ -401,6 +423,29 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods:{
|
|
|
+ endDialogShow(){ //审核对话框显示
|
|
|
+ this.auditDialog=true
|
|
|
+ },
|
|
|
+ submitAudit(){ //确定审核
|
|
|
+ let param={
|
|
|
+ uid:this.$store.state.userInfo.userid,
|
|
|
+ fid:this.fid,
|
|
|
+ status:1
|
|
|
+ }
|
|
|
+ this.ajax
|
|
|
+ .post(this.$store.state.api+"/UpdateMakerFundState",param)
|
|
|
+ .then(res=>{
|
|
|
+ this.auditDialog=false;
|
|
|
+ if (res.data) {
|
|
|
+ this.$message.success('审核成功')
|
|
|
+ this.getData()
|
|
|
+ }else{
|
|
|
+ this.$message.error('审核失败')
|
|
|
+ }
|
|
|
+ },err=>{
|
|
|
+ console.log(err);
|
|
|
+ })
|
|
|
+ },
|
|
|
delInDerData(index){ //删除间接经费
|
|
|
this.indirectFundBlock.splice(index,1)
|
|
|
},
|
|
@@ -487,6 +532,8 @@ export default {
|
|
|
this.file=JSON.parse(data[0][0].fundFile);
|
|
|
this.selects.projectName=data[0][0].courseId;
|
|
|
this.selects.projectType=data[0][0].type;
|
|
|
+ this.status=data[0][0].state;
|
|
|
+ this.fid=data[0][0].fid;
|
|
|
this.projectFilter=data[1];
|
|
|
},err=>{
|
|
|
console.log(err);
|
|
@@ -513,8 +560,7 @@ export default {
|
|
|
},
|
|
|
mounted(){
|
|
|
this.getData()
|
|
|
- console.log(this.$route.query['Id']);
|
|
|
-
|
|
|
+ // console.log(this.$route.query['Id']);
|
|
|
}
|
|
|
}
|
|
|
</script>
|