|
@@ -145,7 +145,7 @@
|
|
<div class="operations">
|
|
<div class="operations">
|
|
<!-- <el-button type="primary" > -->
|
|
<!-- <el-button type="primary" > -->
|
|
<el-button type="primary" size="mini" @click="updateTeacher(scope.row.Id)" style="font-size: 14px;">修改</el-button>
|
|
<el-button type="primary" size="mini" @click="updateTeacher(scope.row.Id)" style="font-size: 14px;">修改</el-button>
|
|
- <el-button type="danger" size="mini" style="font-size: 14px;" @click="DeleteS(scope.row.Id)">删除</el-button>
|
|
|
|
|
|
+ <el-button type="primary" size="mini" style="font-size: 14px;" @click="DeleteS(scope.row.Id)">删除</el-button>
|
|
<!-- </el-button> -->
|
|
<!-- </el-button> -->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -209,10 +209,11 @@
|
|
<!-- 多行文本框部分结束 -->
|
|
<!-- 多行文本框部分结束 -->
|
|
|
|
|
|
<div class="baseBtn">
|
|
<div class="baseBtn">
|
|
- <div class="blockWidth">
|
|
|
|
- <el-button type="primary" class="makerActvity1backBtn" @click="submit" size:small>保存</el-button>
|
|
|
|
- <el-button type="primary" class="makerActvity1backBtn" @click="getData" size:small>重置</el-button>
|
|
|
|
- <el-button type="primary" class="makerActvity1backBtn" @click="check" size:small>立即审核</el-button>
|
|
|
|
|
|
+ <div class="BtnStyle">
|
|
|
|
+ <el-button type="primary" @click="submit" size='small'>保存</el-button>
|
|
|
|
+ <el-button type="primary" @click="getData" size='small'>重置</el-button>
|
|
|
|
+ <el-button v-if="tableData.state==0" type="primary" @click="processDialog = true" size='small'>立即审核</el-button>
|
|
|
|
+ <el-button v-if="tableData.state==1" type="info" style="background-color: gray;" disabled size='small'>立即审核</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -258,7 +259,7 @@
|
|
width="600px"
|
|
width="600px"
|
|
class="MAputIn AddMember">
|
|
class="MAputIn AddMember">
|
|
<div class="addDialogLogo">LOGO</div>
|
|
<div class="addDialogLogo">LOGO</div>
|
|
- <div class="deleteContent">是否修改“{{ tableData.reportFile!=''&&tableData.reportFile!=null?tableData.title:''}}”项目活动?</div>
|
|
|
|
|
|
+ <div class="deleteContent">是否修改“{{ tableData.title}}”项目活动?</div>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button type="primary" @click="save" class="btn5" size="small">确认提交</el-button>
|
|
<el-button type="primary" @click="save" class="btn5" size="small">确认提交</el-button>
|
|
<el-button @click="dialogVisible1=false;" class="btn5" style="background:#cccccc" size="small">取消</el-button>
|
|
<el-button @click="dialogVisible1=false;" class="btn5" style="background:#cccccc" size="small">取消</el-button>
|
|
@@ -271,13 +272,26 @@
|
|
width="600px"
|
|
width="600px"
|
|
class="MAputIn AddMember">
|
|
class="MAputIn AddMember">
|
|
<div class="addDialogLogo">LOGO</div>
|
|
<div class="addDialogLogo">LOGO</div>
|
|
- <!-- <div class="deleteContent" v-if="tableData.reportFile==''&&tableData.reportFile!=null">是否删除“{{JSON.parse(tableData.reportFile).fileName}}”文件?</div> -->
|
|
|
|
|
|
+ <div class="deleteContent" v-if="tableData.reportFile!=''&&tableData.reportFile!=null">是否删除“{{JSON.parse(tableData.reportFile).fileName}}”文件?</div>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button type="danger" @click="DelFileYes" class="btn5" size="small">确认删除</el-button>
|
|
<el-button type="danger" @click="DelFileYes" class="btn5" size="small">确认删除</el-button>
|
|
<el-button @click="DelFileDialog=false;" class="btn5" style="background:#cccccc" size="small">取消</el-button>
|
|
<el-button @click="DelFileDialog=false;" class="btn5" style="background:#cccccc" size="small">取消</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<!-- 删除文件对话框结束 -->
|
|
<!-- 删除文件对话框结束 -->
|
|
|
|
+ <!-- 提交对话框开始 -->
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="提示"
|
|
|
|
+ :visible.sync="processDialog"
|
|
|
|
+ width="600px"
|
|
|
|
+ class="MAputIn AddMember">
|
|
|
|
+ <div class="addDialogLogo">LOGO</div>
|
|
|
|
+ <div class="deleteContent">是否审核“{{ tableData.title}}”项目活动?</div>
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button type="primary" @click="process" class="btn5" size="small">确认审核</el-button>
|
|
|
|
+ <el-button @click="processDialog=false;" class="btn5" style="background:#cccccc" size="small">取消</el-button>
|
|
|
|
+ </span>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -297,6 +311,7 @@ export default {
|
|
DelFileDialog:false,
|
|
DelFileDialog:false,
|
|
dialogVisible1:false,
|
|
dialogVisible1:false,
|
|
addMemberDialog:false,
|
|
addMemberDialog:false,
|
|
|
|
+ processDialog:false,
|
|
customToolbar: [
|
|
customToolbar: [
|
|
["bold", "italic", "underline"], [{ list: "ordered" }, { list: "bullet" }],
|
|
["bold", "italic", "underline"], [{ list: "ordered" }, { list: "bullet" }],
|
|
[{ align: "" }, { align: "center" }, { align: "right"}, { align: "justify"}],
|
|
[{ align: "" }, { align: "center" }, { align: "right"}, { align: "justify"}],
|
|
@@ -539,6 +554,24 @@ export default {
|
|
this.$message.error(err.message)
|
|
this.$message.error(err.message)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ //立项审核
|
|
|
|
+ process(){
|
|
|
|
+ this.ajax.post(this.$store.state.api+"/UpdateActivityState",{
|
|
|
|
+ uid:this.$store.state.userInfo.userid,
|
|
|
|
+ aid:this.$route.query["Id"],
|
|
|
|
+ st:1,
|
|
|
|
+ }).then(res=>{
|
|
|
|
+ if(res.data==1){
|
|
|
|
+ this.$message.success("审核成功");
|
|
|
|
+ this.processDialog = false;
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.error("审核失败")
|
|
|
|
+ }
|
|
|
|
+ this.getData();
|
|
|
|
+ }).catch(err=>{
|
|
|
|
+ this.$message.error(err.message)
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
this.getAllClass();
|
|
this.getAllClass();
|
|
@@ -606,4 +639,18 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+.BtnStyle{
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content:space-between;
|
|
|
|
+ [type='button']{
|
|
|
|
+ color: #fff !important;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ width: 120px;
|
|
|
|
+ margin-left: 20px;
|
|
|
|
+ height: 40px;
|
|
|
|
+ align-items: center;
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|