Commit c39b56ca authored by 黄奎's avatar 黄奎

页面修改

parent d4bb723a
......@@ -19,20 +19,20 @@
<div class="col-2 q-table__title">教师课时费明细</div>
<q-space />
<div class="page-option">
<q-btn color="accent" size="sm" label="导出" />
<q-btn color="accent" size="sm" label="导出" @click="Export" />
</div>
</template>
<template v-slot:body-cell-Type="props">
<q-td :props="props">
<span >{{props.row.Type==1?'带班':'代课'}}</span>
<span>{{props.row.Type==1?'带班':'代课'}}</span>
</q-td>
</template>
<template v-slot:bottom>
</template>
</q-table>
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-tow-column-table" style="margin-top: 30px"
separator="vertical" :data="data.Statistics" :columns="columnsZ" row-key="name">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-tow-column-table"
style="margin-top: 30px" separator="vertical" :data="data.Statistics" :columns="columnsZ" row-key="name">
<template v-slot:top="props">
<div class="col-2 q-table__title">教师课时费汇总</div>
<q-space />
......@@ -40,7 +40,7 @@
</template>
<template v-slot:body-cell-Type="props">
<q-td :props="props">
<span >{{props.row.Type==1?'带班':'代课'}}</span>
<span>{{props.row.Type==1?'带班':'代课'}}</span>
</q-td>
</template>
<template v-slot:bottom>
......@@ -54,15 +54,15 @@
<script>
import {
getTeachingBonusDetailList,//明细详情
getTeachingBonusDetailList, //明细详情
} from '../../api/course/class'
import {
getTeacherDropDownList,
} from '../../api/school/index';
export default {
name: "rewardDetailed",
data(){
return{
data() {
return {
columns: [{
name: 'Date',
label: '日期',
......@@ -115,8 +115,7 @@
},
],
columnsZ:[
{
columnsZ: [{
name: 'TeacherName',
label: '教师姓名',
field: 'TeacherName',
......@@ -153,29 +152,39 @@
data: [],
loading: true,
msg: {
rowsPerPage:999,
BonusId:0,
TeacherId:0,
Type:0
rowsPerPage: 999,
BonusId: 0,
TeacherId: 0,
Type: 0
},
TeacherList: [], //关联教师下拉数据
TypeList:[
{Id:0,Name:'不限'},
{Id:1,Name:'带班'},
{Id:2,Name:'代课'},
TypeList: [{
Id: 0,
Name: '不限'
},
{
Id: 1,
Name: '带班'
},
{
Id: 2,
Name: '代课'
},
]
}
},
created() {
if(this.$route.query){
this.msg.BonusId =this.$route.query.Id;
this.msg.TeacherId =Number(this.$route.query.TeacherId);
if (this.$route.query) {
this.msg.BonusId = this.$route.query.Id;
this.msg.TeacherId = Number(this.$route.query.TeacherId);
}
this.getList();
this.GetTeacherList()
},
methods:{
methods: {
Export() {
this.GetEduDownLoad("/TeachingRewards/GetTeachingBonusDetailToExcel", this.msg, "课时奖励.xls");
},
//获取教师下拉
GetTeacherList() {
getTeacherDropDownList({}).then(res => {
......@@ -185,11 +194,10 @@
TId: 0,
TeacherName: "不限"
})
}
})
},
getList(){
getList() {
this.loading = true;
getTeachingBonusDetailList(this.msg).then(res => {
this.loading = false
......@@ -198,11 +206,12 @@
this.loading = false
})
},
goreturn(){
goreturn() {
this.$router.go(-1)
},
}
}
</script>
<style scoped>
......
......@@ -132,7 +132,7 @@ export default {
};
return obj;
},
//下载文件
//ERP系统文件下载
Vue.prototype.GetLocalFile = function (cmd, msg, fileName, successCall) {
var apiurl = this.domainManager().LocalFileStreamDownLoadUrl;
var timestamp = (new Date()).valueOf();
......@@ -228,8 +228,8 @@ export default {
}
}, faildCall)
},
Vue.prototype.uploadFile = function (path, files, successCall) {
Vue.prototype.uploadFile = function (path, files, successCall) {
if (files && files.length > 0) {
let nameList = new Array()
for (let index = 0; index < files.length; index++) {
......@@ -285,6 +285,7 @@ export default {
}
item[filed] = value;
},
//验证只能输入2位小数【负数:isMinus传true】
Vue.prototype.checkPrice = function (item, filed, isMinus) {
var value = "" + item[filed]; //转字符串
......@@ -392,7 +393,7 @@ export default {
window.open(url);
}
//文件下载
//教育文件下载
Vue.prototype.GetEduDownLoad = function (cmd, msg, fileName, successCall) {
var apiurl = process.env.API + cmd;
var postData = {
......
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