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
c7d9cd13
Commit
c7d9cd13
authored
Nov 24, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
12a692aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
14 deletions
+30
-14
index.js
src/api/course/index.js
+12
-0
sale-form.vue
src/components/sale/sale-form.vue
+18
-14
No files found.
src/api/course/index.js
View file @
c7d9cd13
...
...
@@ -85,6 +85,18 @@ export function queryCourseCategoryTree(data) {
})
}
/**
* 获取课程数据
*/
export
function
GetCourseCategoryList
(
data
)
{
return
request
({
url
:
'/Course/GetCourseCategoryList'
,
method
:
'post'
,
data
})
}
/**
* 根据编号获取课程分类信息
*/
...
...
src/components/sale/sale-form.vue
View file @
c7d9cd13
...
...
@@ -67,7 +67,7 @@
</div>
<div
class=
"row wrap"
>
<div
class=
"col-6"
>
<q-input
filled
v-model=
"objOption.TaskStartTime"
class=
"q-pr-lg"
mask=
"date"
:rules=
"['date']"
>
<q-input
filled
v-model=
"objOption.TaskStartTime"
class=
"q-pr-lg"
mask=
"date"
>
<template
v-slot:append
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
<q-popup-proxy
ref=
"qDateProxy1"
cover
transition-show=
"scale"
transition-hide=
"scale"
>
...
...
@@ -82,7 +82,7 @@
</q-input>
</div>
<div
class=
"col-6"
>
<q-input
filled
v-model=
"objOption.TaskEndTime"
mask=
"date"
:rules=
"['date']"
>
<q-input
filled
v-model=
"objOption.TaskEndTime"
mask=
"date"
>
<
template
v-slot:append
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
<q-popup-proxy
ref=
"qDateProxy2"
cover
transition-show=
"scale"
transition-hide=
"scale"
>
...
...
@@ -97,7 +97,7 @@
</q-input>
</div>
</div>
<div
class=
"row wrap"
>
<div
class=
"row wrap"
style=
"margin-top:20px;"
>
<div
class=
"col-12"
>
任务图片
</div>
</div>
<div
class=
"row wrap"
style=
"margin-top:20px;"
>
...
...
@@ -129,7 +129,7 @@
</el-upload>
</div>
</div>
<div
class=
"q-pt-none scroll"
style=
"max-height:60hv"
>
<div
class=
"q-pt-none scroll"
style=
"max-height:60hv
;margin-bottom:20px;
"
>
<table>
<thead>
<tr
style=
"height:60px;"
>
...
...
@@ -164,11 +164,16 @@
</td>
<td>
<q-select
v-if=
"sItem.TaskType==2"
filled
stack-label
option-value=
"Id"
option-label=
"SubjectName"
v-model=
"sItem.TargetIdList"
:options=
"CourseSubjectList"
multiple
label=
"所属科目"
style=
"width:160px"
dense
:options=
"CourseSubjectList"
multiple
use-chips
label=
"所属科目"
style=
"width:160px"
dense
emit-value
map-options
/>
<!-- <select-tree v-if="sItem.TaskType==3" :treeData="TreeCategoryList" class="q-pr-none" :defaultArray="returnString" nodeKey="CateId" :multiple="true"
labelKey="CateName" childrenKey="ChildList" tipText="课程系列" @getChild="getChild($event,sIndex)"></select-tree> -->
<q-select
v-if=
"sItem.TaskType==3"
multiple
filled
use-chips
stack-label
v-model=
"sItem.TargetIdList"
option-value=
"CateId"
option-label=
"CateName"
:options=
"TreeCategoryList"
label=
"课程系列"
style=
"width:160px"
dense
emit-value
map-options
/>
<select-tree
v-if=
"sItem.TaskType==3"
:treeData=
"TreeCategoryList"
nodeKey=
"CateId"
:multiple=
"true"
labelKey=
"CateName"
childrenKey=
"ChildList"
tipText=
"课程系列"
@
getChild=
"getChild"
></select-tree>
<q-select
v-if=
"sItem.TaskType==4"
multiple
filled
stack-label
v-model=
"sItem.TargetIdList"
option-value=
"CourseId"
option-label=
"CourseName"
<q-select
v-if=
"sItem.TaskType==4"
multiple
filled
use-chips
stack-label
v-model=
"sItem.TargetIdList"
option-value=
"CourseId"
option-label=
"CourseName"
:options=
"CourseList"
label=
"课程"
style=
"width:160px"
dense
emit-value
map-options
/>
</td>
...
...
@@ -213,7 +218,8 @@
import
{
queryCourseDropdownList
,
getCourseSubject
,
queryCourseCategoryTree
queryCourseCategoryTree
,
GetCourseCategoryList
}
from
'../../api/course/index'
import
{
UploadSelfFile
,
...
...
@@ -324,7 +330,6 @@
}
this
.
saveCustomLoading
=
true
;
console
.
log
(
this
.
objOption
,
'数据'
);
SetCustomerTask
(
this
.
objOption
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
saveCustomLoading
=
false
;
...
...
@@ -415,15 +420,14 @@
})
},
getCategorytree
()
{
this
.
TreeCategoryList
=
[];
var
qMsg
=
{};
queryCourseCategoryTree
(
qMsg
).
then
((
res
)
=>
{
GetCourseCategoryList
(
qMsg
).
then
((
res
)
=>
{
this
.
TreeCategoryList
=
res
.
Data
;
});
},
//分类改变
getChild
(
cateObj
)
{
getChild
(
cateObj
,
index
)
{
this
.
objOption
.
DetailsList
[
index
].
TargetIdList
=
cateObj
.
split
(
','
);
},
},
}
...
...
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