Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
admin-base
Commits
057036cd
Commit
057036cd
authored
Aug 08, 2019
by
赵茹林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐藏班级二维码
parent
247f9dc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
28 deletions
+23
-28
dialog.vue
src/components/class/dialog.vue
+17
-22
index.vue
src/components/class/index.vue
+6
-6
No files found.
src/components/class/dialog.vue
View file @
057036cd
<
template
>
<el-dialog
:title=
"dialogObj.title"
:visible
.
sync=
"dialogObj.show"
>
<el-dialog
:title=
"dialogObj.title"
:visible
.
sync=
"dialogObj.show"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"120px"
>
<el-form-item
label=
"期数"
v-if=
"!this.dialogObj.periodsId"
>
<el-cascader
:options=
"goodsList"
:props=
"
{value:'id',label:'name'}"
@active-item-change="handleItemChange"
@change="changePeriods"
>
</el-cascader>
@change="changePeriods">
</el-cascader>
</el-form-item>
<el-form-item
label=
"老师"
>
<el-select
v-model=
"form.teacher_id"
placeholder=
"请选择"
filterable
@
change=
"selectName(teacherList,form.teacher_id)"
>
...
...
@@ -38,21 +33,21 @@
:value=
"data.type"
>
</el-option>
</el-select>
</el-form-item
>
<el-form-item
label=
"班级二维码"
>
<!--
<el-input
v-model=
"form.qr"
></el-input>
-->
<el-upload
action=
"/api/public/upload/zone"
:http-request=
"uploadFile"
:class=
"
{disabled:!uploadShow}"
:before-upload="beforeAvatarUpload"
list-type="picture-card"
:file-list="imageList"
:on-success="handleAvatarSuccess"
:on-remove="handleRemove">
<i
class=
"el-icon-plus"
></i>
</el-upload>
</el-form-item
>
</el-form-item>
<!--
<el-form-item
label=
"班级二维码"
>
<
!
–
<el-input
v-model=
"form.qr"
></el-input>
–>
<el-upload
action=
"/api/public/upload/zone"
:http-request=
"uploadFile"
:class=
"
{disabled:!uploadShow}"
:before-upload="beforeAvatarUpload"
list-type="picture-card"
:file-list="imageList"
:on-success="handleAvatarSuccess"
:on-remove="handleRemove">
<i
class=
"el-icon-plus"
></i>
</el-upload>
</el-form-item>
--
>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogObj.show = false"
>
取 消
</el-button>
...
...
src/components/class/index.vue
View file @
057036cd
...
...
@@ -60,7 +60,7 @@
</el-form>
</div>
<div>
<el-table
@
expand-change=
"changeRow"
:data=
"classList"
style=
"width: 100%"
>
<el-table
@
expand-change=
"changeRow"
:data=
"classList"
>
<el-table-column
type=
"expand"
>
<template
slot-scope=
"scope"
>
<el-table
:data=
"[scope.row]"
style=
"width: 100%"
>
...
...
@@ -101,16 +101,16 @@
<el-table-column
label=
"班级名称"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
class_name
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"qr"
label=
"班级二维码"
>
<
!--<
el-table-column prop="qr" label="班级二维码">
<template slot-scope="scope">
<a :href="scope.row.qr" v-if="scope.row.qr" target="_blank">
<img
class=
"avatar"
:src=
"scope.row.qr"
alt=
"二维码"
/>
<img class="avatar" :src="scope.row.qr" alt="二维码"/>
</a>
<p
v-if=
"!scope.row.qr"
>
--
</p>
<p v-if="!scope.row.qr">
--
</p>
</template>
</el-table-column>
</el-table-column>
-->
<el-table-column
prop=
"teacher_name"
label=
"班主任"
></el-table-column>
<el-table-column
label=
"老师状态"
>
<el-table-column
label=
"老师状态"
width=
"80px"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
teacher_status
===
0
?
'带班'
:
'不带班'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"班级类型"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment