master
xy 3 years ago
parent e0a116ad53
commit 572eecc360

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

Loading…
Cancel
Save