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

页面修改

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