Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
4db18192
Commit
4db18192
authored
Dec 14, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增字段
parent
6c026289
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
45 deletions
+49
-45
editOrder-form.vue
src/components/sale/editOrder-form.vue
+1
-0
teacher-form.vue
src/components/school/teacher/teacher-form.vue
+48
-45
No files found.
src/components/sale/editOrder-form.vue
View file @
4db18192
<!--修改订单-->
<
template
>
<q-dialog
v-model=
"IsShowEditOrder"
maximized
full-height
seamless
position=
"right"
>
<q-card
style=
"margin-top:61px;width:500px"
class=
"no-border-radius classinfo_Dialog"
>
...
...
src/components/school/teacher/teacher-form.vue
View file @
4db18192
...
...
@@ -22,54 +22,55 @@
<q-select
filled
stack-label
option-value=
"PostId"
option-label=
"PostName"
v-model=
"objOption.Post_Id"
ref=
"Post_Id"
:options=
"PostList"
label=
"岗位"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
<q-input
filled
stack-label
maxlength=
"5"
:dense=
"false"
v-model=
"objOption.BaseStuNum"
ref=
"BaseStuNum"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"带班基础人数"
/>
<q-input
filled
stack-label
maxlength=
"5"
:dense=
"false"
v-model=
"objOption.BaseHourFee"
ref=
"BaseHourFee"
class=
"col-6 q-pb-lg"
label=
"基础课时费"
/>
</div>
<div
class=
"row wrap"
>
<div
class=
"col-6 q-pr-lg q-pb-lg"
>
<q-uploader
style=
"display: inline-block;height: 320px;max-width: 100%; background-repeat:no-repeat"
:style=
"
{'background-image':'url(' + objOption.TeacherHead + ')'}" max-files="1" hide-upload-btn
@rejected="onRejected" label="教师头像" :max-file-size="512*1024" accept=".jpg, image/*" auto-upload
:factory="uploadFile" no-thumbnails @added="getType(1)">
</q-uploader>
</div>
<div
class=
"row wrap"
>
<div
class=
"col-6 q-pr-lg q-pb-lg"
>
<q-uploader
style=
"display: inline-block;height: 320px;max-width: 100%; background-repeat:no-repeat"
:style=
"
{'background-image':'url(' + objOption.TeacherHead + ')'}" max-files="1" hide-upload-btn
@rejected="onRejected" label="教师头像" :max-file-size="512*1024" accept=".jpg, image/*" auto-upload
:factory="uploadFile" no-thumbnails @added="getType(1)">
</q-uploader>
</div>
<div
class=
"col-6 q-pb-lg"
>
<q-uploader
style=
"display: inline-block;height:320px; max-width: 100%;background-repeat:no-repeat"
:style=
"
{'background-image':'url(' + objOption.TeacherIcon + ')'}" max-files="1" hide-upload-btn
@rejected="onRejected" label="教师形象照" :max-file-size="512*1024" accept=".jpg, image/*" auto-upload
:factory="uploadFile" no-thumbnails @added="getType(2)">
</q-uploader>
</div>
</div>
<ext-editor
:defaultMsg=
"objOption.TeacherIntro"
classStr=
"col-12"
@
getEditValue=
"getEditValue"
></ext-editor>
<div
class=
"col-6 q-pr-lg q-pb-lg q-pt-lg"
>
<q-toggle
size=
"md"
label=
"是否显示"
color=
"primary"
:false-value=
"0"
:true-value=
"1"
v-model=
"objOption.IsShow"
/>
<div
class=
"text-grey-6 text-caption"
>
注意:隐藏后,教师将在其他任何地方无法显示
</div>
</div>
<div
class=
"col-6 q-pb-lg q-pt-lg"
>
<q-toggle
size=
"md"
label=
"是否推荐"
color=
"primary"
:false-value=
"0"
:true-value=
"1"
v-model=
"objOption.IsRecommend"
/>
<div
class=
"text-grey-6 text-caption"
>
注意:推荐后教师将在营销端呈现
</div>
</div>
<div
class=
"col-6 q-pb-lg q-pt-lg"
>
<q-input
filled
stack-label
maxlength=
"100"
:dense=
"false"
v-model=
"objOption.BaseStuNum"
ref=
"BaseStuNum"
class=
"col-6 q-pb-lg"
label=
"带班基础人数"
/>
<div
class=
"col-6 q-pb-lg"
>
<q-uploader
style=
"display: inline-block;height:320px; max-width: 100%;background-repeat:no-repeat"
:style=
"
{'background-image':'url(' + objOption.TeacherIcon + ')'}" max-files="1" hide-upload-btn
@rejected="onRejected" label="教师形象照" :max-file-size="512*1024" accept=".jpg, image/*" auto-upload
:factory="uploadFile" no-thumbnails @added="getType(2)">
</q-uploader>
</div>
<div
class=
"col-12 q-pb-lg"
>
<q-field
filled
label=
"教师标签"
bg-color=
"white"
stack-label
>
<template
v-slot:control
>
<div
class=
"q-pt-md row"
tabindex=
"0"
>
<div
v-if=
"tags.length
<5
"
class=
"q-mr-md"
>
<input
type=
"text"
placeholder=
"输入标签后回车确认"
v-model=
"tagText"
class=
"tag-input"
@
keyup
.
enter=
"createTag"
>
</div>
<div
class=
"col"
>
<q-chip
v-for=
"(x, i) in tags"
@
remove=
"removeTag(i)"
:key=
"i"
square
color=
"red"
class=
"q-ma-none q-mr-md"
icon=
"bookmark"
text-color=
"white"
:label=
"x"
removable
/>
</div>
</div>
<ext-editor
:defaultMsg=
"objOption.TeacherIntro"
classStr=
"col-12"
@
getEditValue=
"getEditValue"
></ext-editor>
<div
class=
"col-6 q-pr-lg q-pb-lg q-pt-lg"
>
<q-toggle
size=
"md"
label=
"是否显示"
color=
"primary"
:false-value=
"0"
:true-value=
"1"
v-model=
"objOption.IsShow"
/>
<div
class=
"text-grey-6 text-caption"
>
注意:隐藏后,教师将在其他任何地方无法显示
</div>
</div>
<div
class=
"col-6 q-pb-lg q-pt-lg"
>
<q-toggle
size=
"md"
label=
"是否推荐"
color=
"primary"
:false-value=
"0"
:true-value=
"1"
v-model=
"objOption.IsRecommend"
/>
<div
class=
"text-grey-6 text-caption"
>
注意:推荐后教师将在营销端呈现
</div>
</div>
<div
class=
"col-12 q-pb-lg"
>
<q-field
filled
label=
"教师标签"
bg-color=
"white"
stack-label
>
<template
v-slot:control
>
<div
class=
"q-pt-md row"
tabindex=
"0"
>
<div
v-if=
"tags.length
<5
"
class=
"q-mr-md"
>
<input
type=
"text"
placeholder=
"输入标签后回车确认"
v-model=
"tagText"
class=
"tag-input"
@
keyup
.
enter=
"createTag"
>
</div>
</
template
>
</q-field>
</div>
<div
class=
"col"
>
<q-chip
v-for=
"(x, i) in tags"
@
remove=
"removeTag(i)"
:key=
"i"
square
color=
"red"
class=
"q-ma-none q-mr-md"
icon=
"bookmark"
text-color=
"white"
:label=
"x"
removable
/>
</div>
</div>
</
template
>
</q-field>
</div>
</div>
</q-card-section>
<q-separator
/>
...
...
@@ -130,6 +131,7 @@
Dept_Id
:
0
,
//部门编号
Post_Id
:
0
,
//岗位编号
BaseStuNum
:
0
,
//带班基础人数
BaseHourFee
:
0
,
//基础课时费
},
optionTitle
:
""
,
schoolList
:
[],
...
...
@@ -232,6 +234,7 @@
this
.
objOption
.
Dept_Id
=
this
.
saveObj
.
Dept_Id
;
this
.
objOption
.
Post_Id
=
this
.
saveObj
.
Post_Id
;
this
.
objOption
.
BaseStuNum
=
this
.
saveObj
.
BaseStuNum
;
this
.
objOption
.
BaseHourFee
=
this
.
saveObj
.
BaseHourFee
;
if
(
this
.
objOption
.
School_Id
)
{
this
.
queryDeptTree
();
}
...
...
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