Commit 012b0cfb authored by 黄奎's avatar 黄奎

页面修改

parent 51567971
......@@ -44,9 +44,9 @@
<q-badge :color="props.value==1?'negative':'primary'" :label="props.value==1?'女':'男'" />
</q-td>
</template>
<template v-slot:body-cell-IsDisable="props">
<template v-slot:body-cell-Status="props">
<q-td :props="props">
<q-toggle size="md" color="primary" :false-value="0" :true-value="1" v-model="props.row.IsDisable"
<q-toggle disable size="md" color="primary" :false-value="1" :true-value="0" v-model="props.row.Status"
title="注意:关闭后,学员将无法正常使用." />
<!--@input="DeleteMenu(props.row)"-->
</q-td>
......@@ -59,9 +59,9 @@
<q-td :props="props">
<div style="min-width:190px;width:100%">
<q-btn flat size="xs" icon="iconfont icon-ziyuan" color="warning" style="font-weight:400" class="q-mr-xs"
label="重置密码" @click="resetPw(props.row.AId)" />
label="重置密码" @click="resetPw(props.row.StuId)" />
<q-btn flat size="xs" icon="iconfont icon-shanchu" color="negative" style="font-weight:400"
class="q-mr-xs" label="删除" @click="deleteUser(props.row.AId)" />
class="q-mr-xs" label="删除" @click="deleteUser(props.row.StuId)" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
@click="EditStudent(props.row)" />
</div>
......@@ -73,12 +73,11 @@
</div>
</div>
</template>
<script>
import {
getStudentPage,
getSchoolDropdown,
deleteAssist
deleteStudent
} from '../../api/school/index'
import {
resetPassword
......@@ -138,9 +137,9 @@
align: 'left',
},
{
name: 'IsDisable',
name: 'Status',
label: '状态',
field: 'IsDisable',
field: 'Status',
align: 'left',
},
{
......@@ -158,7 +157,7 @@
{
name: 'optioned',
label: '操作',
field: 'AId'
field: 'StuId'
}
],
data: [],
......@@ -226,7 +225,7 @@
}).onOk(() => {
that.resetLoading = true
resetPassword({
AccountType: 3,
AccountType: 4,
AccountId: id
}).then(res => {
that.resetLoading = false
......@@ -248,8 +247,8 @@
deleteUser(id) {
let that = this
this.$q.dialog({
title: "删除助教",
message: "你正在进行删除助教行为,一旦执行无法找回,是否确认执行?",
title: "删除学员",
message: "你正在进行删除学员行为,一旦执行无法找回,是否确认执行?",
persistent: true,
cancel: {
label: "取消",
......@@ -262,8 +261,8 @@
}
}).onOk(() => {
that.resetLoading = true
deleteAssist({
AId: id
deleteStudent({
StuId: id
}).then(res => {
this.$q.notify({
icon: 'iconfont icon-chenggong',
......
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