Commit 9069adc9 authored by 黄奎's avatar 黄奎

页面修改

parent 89b4b685
...@@ -136,7 +136,6 @@ ...@@ -136,7 +136,6 @@
</div> </div>
</div> </div>
</div> </div>
<template v-if="AuditType==2"> <template v-if="AuditType==2">
<div style="margin:20px;"> <div style="margin:20px;">
<div class="row" style="margin-bottom:0;"> <div class="row" style="margin-bottom:0;">
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
@clear="resetSearch" maxlength="20" /> @clear="resetSearch" maxlength="20" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select class="q-pb-lg q-pr-lg" filled stack-label <q-select class="q-pb-lg q-pr-lg" filled stack-label option-value="Id" option-label="Name"
option-value="Id" option-label="Name" v-model="msg.SaleState" ref="SaleState" :options="saleDownList" v-model="msg.SaleState" ref="SaleState" :options="saleDownList" label="销售状态" :dense="false" emit-value
label="销售状态" :dense="false" emit-value map-options> map-options>
</q-select> </q-select>
</div> </div>
</div> </div>
...@@ -18,22 +18,25 @@ ...@@ -18,22 +18,25 @@
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table" <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table"
separator="none" :data="dataList" :columns="columns" row-key="name"> separator="none" :data="dataList" :columns="columns" row-key="name">
<template v-slot:top="props"> <template v-slot:top="props">
<div class="col-2 q-table__title">留学信息</div> <div class="col-2 q-table__title">留学就业审核信息</div>
<q-space /> <q-space />
<!-- <div class="page-option">
<q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="新增留学" @click="EditStudy(null)" />
</div> -->
</template> </template>
<template v-slot:body-cell-SupplierName="props"> <template v-slot:body-cell-SupplierName="props">
<q-td> <q-td>
<div>{{props.row.SupplierName}}</div> <div>{{props.row.SupplierName}}</div>
<div> <div>
<a :href="props.row.SupplierContract" target="_blank" style="color:#2961FE;text-decoration:none;" v-if="props.row.SupplierContract"> <a :href="props.row.SupplierContract" target="_blank" style="color:#2961FE;text-decoration:none;"
v-if="props.row.SupplierContract">
查看合同 查看合同
</a> </a>
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-Type="props">
<q-td>
{{props.row.Type==1?"留学":"就业"}}
</q-td>
</template>
<template v-slot:body-cell-PreferentialList="props"> <template v-slot:body-cell-PreferentialList="props">
<q-td :props="props" style="padding-right:0px"> <q-td :props="props" style="padding-right:0px">
<div v-for="x in props.value"> <div v-for="x in props.value">
...@@ -98,8 +101,8 @@ ...@@ -98,8 +101,8 @@
<q-td :props="props"> <q-td :props="props">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="详情" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="详情"
@click="EditStudy(props.row)" /> @click="EditStudy(props.row)" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="审核" <q-btn v-if="props.row.SaleState==2&&AuditType>0" flat size="xs" icon="edit" color="accent"
@click="applyApply(props.row)" /> style="font-weight:400" label="审核" @click="applyApply(props.row)" />
</q-td> </q-td>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
...@@ -115,7 +118,8 @@ ...@@ -115,7 +118,8 @@
<script> <script>
import { import {
queryStudyAbroadPage queryStudyAbroadPage,
queryStudyAbroadAudit
} from '../../api/studyabroad/index' } from '../../api/studyabroad/index'
import studyproauditForm from '../../components/studyAbroad/studyproaudit-form' import studyproauditForm from '../../components/studyAbroad/studyproaudit-form'
...@@ -135,7 +139,7 @@ ...@@ -135,7 +139,7 @@
rowsPerPage: 10, rowsPerPage: 10,
Name: "", Name: "",
IsQPrice: 1, IsQPrice: 1,
SaleState:2 //销售状态 SaleState: 2 //销售状态
}, },
dataList: [], dataList: [],
loading: true, loading: true,
...@@ -145,6 +149,12 @@ ...@@ -145,6 +149,12 @@
field: 'Name', field: 'Name',
align: 'left' align: 'left'
}, },
{
name: 'Type',
label: '项目类型',
field: 'Type',
align: 'left'
},
{ {
name: 'SupplierName', name: 'SupplierName',
label: '供应商', label: '供应商',
...@@ -206,27 +216,38 @@ ...@@ -206,27 +216,38 @@
], ],
PageCount: 0, PageCount: 0,
isShowStudy: false, //是否显示留学弹窗 isShowStudy: false, //是否显示留学弹窗
Id:0, Id: 0,
saleDownList: [{
saleDownList:[{ Id: 0,
Id:0, Name: '不限'
Name:'不限' }, {
},{ Id: 1,
Id:1, Name: '销售中'
Name:'销售中' }, {
},{ Id: 2,
Id:2, Name: '已下架'
Name:'已下架'
}], //销售状态下拉 }], //销售状态下拉
AuditType: 0, //审核类型
} }
}, },
mounted() { mounted() {
this.getList(); this.getList();
}, },
created() { created() {
this.queryStudy();
}, },
methods: { methods: {
queryStudy() {
queryStudyAbroadAudit({}).then(res => {
this.auditList = res.Data;
let userInfo = this.getLocalStorage();
this.auditList.forEach((x, index) => {
if (x.Id === userInfo.Id) {
this.AuditType = index + 1;
}
})
})
},
//重新查询 //重新查询
resetSearch() { resetSearch() {
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
...@@ -259,7 +280,7 @@ ...@@ -259,7 +280,7 @@
this.isShowStudy = true; this.isShowStudy = true;
}, },
//申请审核 //申请审核
applyApply(obj){ applyApply(obj) {
} }
} }
......
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