master
xy 3 years ago
parent e0a116ad53
commit 572eecc360

@ -120,6 +120,7 @@
</div>
<xy-table
:btn-width="170"
ref="xyTable"
:total="total"
:list="list"
@ -152,7 +153,13 @@
}
"
@sort-change="sortChange"
></xy-table>
>
<template v-slot:print="scope">
<template v-if="printAuth(scope.row)">
<Button size="small" type="primary" @click="printOpen(scope.row)"></Button>
</template>
</template>
</xy-table>
<addRecruit
:is-show.sync="isShowAdd"
@ -271,6 +278,11 @@ export default {
index,
destroy,
printOpen(row) {
let url = "https://zs.szhct.edu.cn/admission.html"
window.open(`${url}?resulttable=${encodeURI(JSON.stringify(row))}`)
},
sortChange({ column, prop, order }) {
if (prop === this.select.sort_name) {
this.sortFlag++;
@ -392,6 +404,15 @@ export default {
let map = getConst("type", "map");
return map.get(Number(this.$route.meta.params.type));
},
printAuth() {
return function (row) {
if(row.fileds_all?.shifoujiaofei === "是"){
return true
}else{
return false
}
}
}
},
async created() {
await this.getTemplate();

Loading…
Cancel
Save