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
eb22167f
Commit
eb22167f
authored
Apr 07, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
parents
c83dac3a
149a0ffe
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
218 additions
and
211 deletions
+218
-211
wenjuan-form.vue
src/components/activity/wenjuan-form.vue
+151
-204
course-form.vue
src/components/course/course-form.vue
+17
-1
questionnaireList.vue
src/pages/activity/questionnaireList.vue
+50
-6
No files found.
src/components/activity/wenjuan-form.vue
View file @
eb22167f
This diff is collapsed.
Click to expand it.
src/components/course/course-form.vue
View file @
eb22167f
...
@@ -124,6 +124,12 @@
...
@@ -124,6 +124,12 @@
<q-input
filled
stack-label
v-model=
"objOption.ScrollMaxNum"
ref=
"ScrollMaxNum"
class=
"col-6 q-pr-lg q-pb-lg"
<q-input
filled
stack-label
v-model=
"objOption.ScrollMaxNum"
ref=
"ScrollMaxNum"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"最大上课人数"
:rules=
"[val => !!val || '请填写最大上课人数']"
/>
label=
"最大上课人数"
:rules=
"[val => !!val || '请填写最大上课人数']"
/>
</div>
</div>
<div
class=
"row"
>
<q-input
filled
stack-label
v-model=
"objOption.FreeCoffeeNum"
ref=
"FreeCoffeeNum"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"赠送咖啡杯数"
:rules=
"[val => val >=0 || '请填写赠送咖啡杯数']"
/>
<q-input
filled
stack-label
v-model=
"objOption.AddHoursMoney"
ref=
"AddHoursMoney"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"课程增加课时费"
:rules=
"[val => val >=0 || '请填写课程增加课时费']"
/>
</div>
<div
class=
"row wrap"
>
<div
class=
"row wrap"
>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"CourseEmphasis"
multiple
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"CourseEmphasis"
multiple
...
@@ -258,6 +264,8 @@
...
@@ -258,6 +264,8 @@
IsScrollClass
:
0
,
// 是否开启滚动开班 1是 0否(默认)
IsScrollClass
:
0
,
// 是否开启滚动开班 1是 0否(默认)
ScrollMinNum
:
0
,
// 最小上课人数
ScrollMinNum
:
0
,
// 最小上课人数
ScrollMaxNum
:
0
,
// 最大上课人数
ScrollMaxNum
:
0
,
// 最大上课人数
FreeCoffeeNum
:
0
,
// 赠送咖啡
AddHoursMoney
:
0
,
// 课程增加课时费
CourseTimeId
:
0
,
// 关联上课时段
CourseTimeId
:
0
,
// 关联上课时段
ContractInfo
:
""
,
//合同补充协议
ContractInfo
:
""
,
//合同补充协议
OpenBankLevelList
:
[]
OpenBankLevelList
:
[]
...
@@ -498,6 +506,8 @@
...
@@ -498,6 +506,8 @@
this
.
objOption
.
IsScrollClass
=
res
.
Data
.
IsScrollClass
;
this
.
objOption
.
IsScrollClass
=
res
.
Data
.
IsScrollClass
;
this
.
objOption
.
ScrollMinNum
=
res
.
Data
.
ScrollMinNum
;
this
.
objOption
.
ScrollMinNum
=
res
.
Data
.
ScrollMinNum
;
this
.
objOption
.
ScrollMaxNum
=
res
.
Data
.
ScrollMaxNum
;
this
.
objOption
.
ScrollMaxNum
=
res
.
Data
.
ScrollMaxNum
;
this
.
objOption
.
FreeCoffeeNum
=
res
.
Data
.
FreeCoffeeNum
;
this
.
objOption
.
AddHoursMoney
=
res
.
Data
.
AddHoursMoney
;
this
.
objOption
.
CourseTimeId
=
res
.
Data
.
CourseTimeId
;
this
.
objOption
.
CourseTimeId
=
res
.
Data
.
CourseTimeId
;
this
.
objOption
.
OpenBankLevelList
=
res
.
Data
.
OpenBankLevelList
;
this
.
objOption
.
OpenBankLevelList
=
res
.
Data
.
OpenBankLevelList
;
this
.
CourseEmphasis
=
[];
this
.
CourseEmphasis
=
[];
...
@@ -556,6 +566,8 @@
...
@@ -556,6 +566,8 @@
this
.
objOption
.
IsScrollClass
=
0
;
this
.
objOption
.
IsScrollClass
=
0
;
this
.
objOption
.
ScrollMinNum
=
0
;
this
.
objOption
.
ScrollMinNum
=
0
;
this
.
objOption
.
ScrollMaxNum
=
0
;
this
.
objOption
.
ScrollMaxNum
=
0
;
this
.
objOption
.
FreeCoffeeNum
=
0
;
this
.
objOption
.
AddHoursMoney
=
0
;
this
.
objOption
.
CourseTimeId
=
0
;
this
.
objOption
.
CourseTimeId
=
0
;
this
.
objOption
.
OpenBankLevelList
=
[];
this
.
objOption
.
OpenBankLevelList
=
[];
}
}
...
@@ -570,10 +582,14 @@
...
@@ -570,10 +582,14 @@
this
.
$refs
.
CourseName
.
validate
();
this
.
$refs
.
CourseName
.
validate
();
this
.
$refs
.
ClassHours
.
validate
();
this
.
$refs
.
ClassHours
.
validate
();
this
.
$refs
.
CateId
.
validate
();
this
.
$refs
.
CateId
.
validate
();
this
.
$refs
.
FreeCoffeeNum
.
validate
();
this
.
$refs
.
AddHoursMoney
.
validate
();
if
(
if
(
!
this
.
$refs
.
CourseName
.
hasError
&&
!
this
.
$refs
.
CourseName
.
hasError
&&
!
this
.
$refs
.
ClassHours
.
hasError
&&
!
this
.
$refs
.
ClassHours
.
hasError
&&
!
this
.
$refs
.
CateId
.
hasError
!
this
.
$refs
.
CateId
.
hasError
&&
!
this
.
$refs
.
FreeCoffeeNum
.
hasError
&&
!
this
.
$refs
.
AddHoursMoney
.
hasError
)
{
)
{
this
.
saveCourseLoading
=
true
;
this
.
saveCourseLoading
=
true
;
var
Teacher_Ids
=
""
;
var
Teacher_Ids
=
""
;
...
...
src/pages/activity/questionnaireList.vue
View file @
eb22167f
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
label=
"问卷调查名称"
maxlength=
"20"
/>
label=
"问卷调查名称"
maxlength=
"20"
/>
</div>
</div>
<div
class=
"col-3"
>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
clearable
filled
stack-label
option-value=
"Id"
option-label=
"Name"
<q-select
@
input=
"resetSearch"
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.SurveyType"
ref=
"SurveyType"
:options=
"platList"
emit-value
map-options
label=
"类型"
v-model=
"msg.SurveyType"
ref=
"SurveyType"
:options=
"platList"
emit-value
map-options
label=
"类型"
:dense=
"false"
/>
:dense=
"false"
/>
</div>
</div>
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
</q-td>
</q-td>
</
template
>
</
template
>
</q-table>
</q-table>
<wenjuan-form
v-if=
"isShowWenjuan"
:save-obj=
"objOption"
@
close=
"closeSaveForm"
@
success=
"resetSearch"
></wenjuan-form>
<wenjuan-form
v-if=
"isShowWenjuan"
:save-obj=
"objOption"
:ID=
"msg.ActivitySurveyId"
@
close=
"closeSaveForm"
@
success=
"resetSearch"
></wenjuan-form>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -145,6 +145,9 @@
...
@@ -145,6 +145,9 @@
created
()
{
created
()
{
},
},
mounted
()
{
mounted
()
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
ID
){
this
.
msg
.
ActivitySurveyId
=
this
.
$route
.
query
.
ID
;
}
this
.
getPlat
();
this
.
getPlat
();
this
.
getList
();
this
.
getList
();
},
},
...
@@ -179,12 +182,53 @@
...
@@ -179,12 +182,53 @@
}
}
})
})
},
},
addObj
(){
addObj
(
obj
)
{
if
(
obj
)
{
this
.
objOption
=
obj
}
else
{
this
.
objOption
=
null
}
this
.
isShowWenjuan
=
true
;
},
},
//删除问卷
//删除问卷
delQuestion
(){
delQuestion
(
row
){
let
that
=
this
;
this
.
$q
.
dialog
({
title
:
"提示"
,
message
:
'是否删除该活动信息?'
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
apipostDS
(
"/api/Survey/DelSurvey"
,
{
SurveyID
:
row
.
ID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据删除成功!'
,
position
:
'top'
})
that
.
getList
();
}
else
{
that
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
res
.
data
.
message
})
}
},
);
});
},
},
closeSaveForm
(){
closeSaveForm
(){
this
.
isShowWenjuan
=
false
;
this
.
isShowWenjuan
=
false
;
...
...
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