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

页面修改

parent e3d40e0b
...@@ -843,7 +843,6 @@ ...@@ -843,7 +843,6 @@
getList() { getList() {
GetEducationContractInfo(this.gmsg).then(res => { GetEducationContractInfo(this.gmsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
console.log(res,'数据');
this.dataList = res.Data; this.dataList = res.Data;
} }
}) })
......
...@@ -71,10 +71,16 @@ ...@@ -71,10 +71,16 @@
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
<div> <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"
<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="驳回" /> @click="operationContract(props.row,2)" 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="edit" color="accent" v-if="props.row.Status==1" style="font-weight:400"
<q-btn flat size="xs" icon="iconfont icon-View" color="accent" @click="goContract(props.row)" style="font-weight:400" label="查看" /> @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> </div>
</q-td> </q-td>
</template> </template>
...@@ -162,15 +168,15 @@ ...@@ -162,15 +168,15 @@
Status: -1, //0草稿 1提交审核 2审核通过 3驳回 4取消 Status: -1, //0草稿 1提交审核 2审核通过 3驳回 4取消
ContractNo: '', //合同编号 ContractNo: '', //合同编号
StudentName: '', //学生姓名 StudentName: '', //学生姓名
IsAduit:1 IsAduit: 1
}, },
pageCount: 0, pageCount: 0,
dataList: [], dataList: [],
//类型下拉 //类型下拉
CTypeList: [{ CTypeList: [{
Id:0, Id: 0,
Name:'不限' Name: '不限'
},{ }, {
Id: 1, Id: 1,
Name: '培训' Name: '培训'
}, { }, {
...@@ -181,10 +187,10 @@ ...@@ -181,10 +187,10 @@
StatusOpts: [{ StatusOpts: [{
Id: -1, Id: -1,
Name: '全部' Name: '全部'
},{ }, {
Id: 1, Id: 1,
Name: '待审' Name: '待审'
},{ }, {
Id: 2, Id: 2,
Name: '审核通过' Name: '审核通过'
}, { }, {
...@@ -193,8 +199,7 @@ ...@@ -193,8 +199,7 @@
}], }],
} }
}, },
created() { created() {},
},
mounted() { mounted() {
this.getList() this.getList()
}, },
...@@ -222,7 +227,7 @@ ...@@ -222,7 +227,7 @@
this.getList(); this.getList();
}, },
//跳转至编辑 //跳转至编辑
goContract(item){ goContract(item) {
this.$router.push({ this.$router.push({
path: 'contractEdit', path: 'contractEdit',
query: { query: {
...@@ -231,10 +236,10 @@ ...@@ -231,10 +236,10 @@
}) })
}, },
//合同操作 //合同操作
operationContract(item,type){ operationContract(item, type) {
let msg = { let msg = {
ContractId:item.Id, ContractId: item.Id,
State:type State: type
} }
SetEducationContractAudit(msg).then(res => { SetEducationContractAudit(msg).then(res => {
if (res.Code == 1) { 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