Commit 80e505b4 authored by zhengke's avatar zhengke

修改

parent 030c6d27
...@@ -20,7 +20,7 @@ export default { ...@@ -20,7 +20,7 @@ export default {
</script> </script>
<style> <style>
@import url("//at.alicdn.com/t/font_2077629_9j9u1nj8nka.css"); @import url("//at.alicdn.com/t/font_2077629_70it4rlfqmf.css");
.q-scrollarea__thumb { .q-scrollarea__thumb {
z-index: 999999 !important; z-index: 999999 !important;
} }
......
This diff is collapsed.
...@@ -31,12 +31,12 @@ ...@@ -31,12 +31,12 @@
<img :src="props.value" /> <img :src="props.value" />
</q-avatar> </q-avatar>
<q-avatar size="md" color="teal-10" text-color="white" v-if="!props.value"> <q-avatar size="md" color="teal-10" text-color="white" v-if="!props.value">
{{props.row.StuName}}</q-avatar> {{props.row.StuName.substring(0,1)}}</q-avatar>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-StuName="props"> <template v-slot:body-cell-StuName="props">
<q-td :props="props"> <q-td :props="props">
<div class="text-blue cursor-pointer">{{props.value}}</div> <div class="text-blue cursor-pointer" @click="getStuRight(props.row)">{{props.value}}</div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-StuSex="props"> <template v-slot:body-cell-StuSex="props">
...@@ -54,21 +54,10 @@ ...@@ -54,21 +54,10 @@
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount" <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" /> :input="true" @input="changePage" />
</template> </template>
<template v-slot:body-cell-optioned="props">
<q-td :props="props">
<div style="min-width:190px;width:100%">
<q-btn v-if="props.row.StudentAccount==''" flat size="xs" icon="iconfont icon-ziyuan" color="warning"
style="font-weight:400" class="q-mr-xs" label="创建账号" @click="createAccount(props.row.StuId)" />
<q-btn flat size="xs" icon="iconfont icon-ziyuan" color="warning" style="font-weight:400" class="q-mr-xs"
label="重置密码" @click="resetPw(props.row.StuId)" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
@click="EditStudent(props.row)" />
</div>
</q-td>
</template>
</q-table> </q-table>
<student-form v-if="isShowStuForm" :save-obj="stuOption" @close="closeStuForm" @success="refreshPage"> <student-form v-if="isShowStuForm" :save-obj="stuOption" @close="closeStuForm" @success="refreshPage">
</student-form> </student-form>
<studentRight-form v-if="isShowStuRight" :save-obj="stuOption" @close="closeStuForm" @success="refreshPage"></studentRight-form>
</div> </div>
</div> </div>
</template> </template>
...@@ -83,12 +72,15 @@ ...@@ -83,12 +72,15 @@
resetPassword resetPassword
} from '../../api/users/user.js' } from '../../api/users/user.js'
import studentForm from '../../components/school/student/student-form' import studentForm from '../../components/school/student/student-form'
import studentRightForm from '../../components/school/student/studentRight-form'
export default { export default {
meta: { meta: {
title: "学员管理" title: "学员管理"
}, },
components: { components: {
studentForm, studentForm,
studentRightForm
}, },
data() { data() {
return { return {
...@@ -130,12 +122,6 @@ ...@@ -130,12 +122,6 @@
field: 'SName', field: 'SName',
align: 'left', align: 'left',
}, },
{
name: 'AreaName',
label: '区域',
field: 'AreaName',
align: 'left',
},
{ {
name: 'Status', name: 'Status',
label: '状态', label: '状态',
...@@ -147,23 +133,6 @@ ...@@ -147,23 +133,6 @@
label: '创建人', label: '创建人',
align: 'left', align: 'left',
field: 'CreateByName' field: 'CreateByName'
},
{
name: 'CreateTimeStr',
label: '入学时间',
align: 'left',
field: 'CreateTimeStr'
},
{
name: 'StudentAccount',
label: '账号',
align: 'left',
field: 'StudentAccount'
},
{
name: 'optioned',
label: '操作',
field: 'StuId'
} }
], ],
data: [], data: [],
...@@ -195,7 +164,8 @@ ...@@ -195,7 +164,8 @@
stuOption: null, stuOption: null,
schoolList: [], schoolList: [],
isShowStuForm: false, isShowStuForm: false,
resetLoading: false resetLoading: false,
isShowStuRight: false
} }
}, },
mounted() { mounted() {
...@@ -346,6 +316,16 @@ ...@@ -346,6 +316,16 @@
}, },
closeStuForm() { closeStuForm() {
this.isShowStuForm = false; this.isShowStuForm = false;
this.isShowStuRight = false;
},
//点击学生姓名弹出
getStuRight(obj){
if (obj) {
this.stuOption = obj;
} else {
this.stuOption = null;
}
this.isShowStuRight = true;
} }
}, },
} }
......
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