Commit 1ed1c5f6 authored by 黄奎's avatar 黄奎

页面修改

parent e3d40e0b
......@@ -843,7 +843,6 @@
getList() {
GetEducationContractInfo(this.gmsg).then(res => {
if (res.Code == 1) {
console.log(res,'数据');
this.dataList = res.Data;
}
})
......
......@@ -71,10 +71,16 @@
<template v-slot:body-cell-optioned="props">
<q-td :props="props">
<div>
<q-btn flat size="xs" icon="edit" color="accent" v-if="props.row.Status==1" style="font-weight:400" @click="operationContract(props.row,2)" label="审核通过" />
<q-btn flat size="xs" icon="edit" color="accent" v-if="props.row.Status==1" style="font-weight:400" @click="operationContract(props.row,3)" label="驳回" />
<q-btn flat size="xs" icon="edit" color="accent" v-if="props.row.IsCompanySeal==0&&props.row.Status==2" style="font-weight:400" @click="operationContract(props.row,5)" label="盖章" />
<q-btn flat size="xs" icon="iconfont icon-View" color="accent" @click="goContract(props.row)" style="font-weight:400" label="查看" />
<q-btn flat size="xs" icon="edit" color="accent" v-if="props.row.Status==1" style="font-weight:400"
@click="operationContract(props.row,2)" label="审核通过" />
<q-btn flat size="xs" icon="edit" color="accent" v-if="props.row.Status==1" style="font-weight:400"
@click="operationContract(props.row,3)" label="驳回" />
<q-btn flat size="xs" icon="edit" color="accent"
v-if="props.row.IsStuSign==1&& props.row.IsCompanySeal==0&&props.row.Status==2"
style="font-weight:400" @click="operationContract(props.row,5)" label="盖章" />
<q-btn flat size="xs" icon="iconfont icon-View" color="accent" @click="goContract(props.row)"
style="font-weight:400" label="查看" />
</div>
</q-td>
</template>
......@@ -93,7 +99,7 @@
title: "合同审核"
},
components: {
},
data() {
return {
......@@ -121,7 +127,7 @@
align: 'left',
field: 'CourseName'
},
{
name: 'CreateByName',
label: '创建人',
......@@ -162,15 +168,15 @@
Status: -1, //0草稿 1提交审核 2审核通过 3驳回 4取消
ContractNo: '', //合同编号
StudentName: '', //学生姓名
IsAduit:1
IsAduit: 1
},
pageCount: 0,
dataList: [],
//类型下拉
CTypeList: [{
Id:0,
Name:'不限'
},{
Id: 0,
Name: '不限'
}, {
Id: 1,
Name: '培训'
}, {
......@@ -181,10 +187,10 @@
StatusOpts: [{
Id: -1,
Name: '全部'
},{
}, {
Id: 1,
Name: '待审'
},{
}, {
Id: 2,
Name: '审核通过'
}, {
......@@ -193,8 +199,7 @@
}],
}
},
created() {
},
created() {},
mounted() {
this.getList()
},
......@@ -222,7 +227,7 @@
this.getList();
},
//跳转至编辑
goContract(item){
goContract(item) {
this.$router.push({
path: 'contractEdit',
query: {
......@@ -231,10 +236,10 @@
})
},
//合同操作
operationContract(item,type){
operationContract(item, type) {
let msg = {
ContractId:item.Id,
State:type
ContractId: item.Id,
State: type
}
SetEducationContractAudit(msg).then(res => {
if (res.Code == 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment