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
f28105ab
Commit
f28105ab
authored
Jul 01, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e002774c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
223 additions
and
98 deletions
+223
-98
user-right-box.vue
src/components/global/user-right-box.vue
+117
-93
baseSet.vue
src/pages/course/baseSet.vue
+12
-0
studentsClassfee.vue
src/pages/financial/studentsClassfee.vue
+46
-2
teacherclassfee.vue
src/pages/financial/teacherclassfee.vue
+48
-3
No files found.
src/components/global/user-right-box.vue
View file @
f28105ab
This diff is collapsed.
Click to expand it.
src/pages/course/baseSet.vue
View file @
f28105ab
...
...
@@ -127,6 +127,9 @@
<q-input
filled
stack-label
:dense=
"false"
maxlength=
"8"
v-model=
"addMsg.DefaultClassNum"
label=
"默认班级人数"
ref=
"DefaultClassNum"
class=
"q-pb-lg"
@
keyup
.
native=
"checkInteger(addMsg,'DefaultClassNum')"
:rules=
"[val => !!val || '请填写默认班级人数']"
/>
<q-input
filled
stack-label
:dense=
"false"
maxlength=
"8"
v-model=
"addMsg.ClassNoPrefix"
label=
"班级编码"
ref=
"ClassNoPrefix"
class=
"q-pb-lg"
@
keyup
.
native=
"checkInteger(addMsg,'ClassNoPrefix')"
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"persistent=false"
/>
...
...
@@ -197,6 +200,12 @@
field
:
'CompleteClassNum'
,
align
:
'left'
},
{
name
:
'ClassNoPrefix'
,
label
:
'班级编码'
,
field
:
'ClassNoPrefix'
,
align
:
'left'
},
{
name
:
'optioned'
,
label
:
'操作'
,
...
...
@@ -333,6 +342,8 @@
this
.
addMsg
.
CTypeName
=
''
;
this
.
addMsg
.
AddHourFee
=
''
;
this
.
addMsg
.
DefaultClassNum
=
''
;
this
.
addMsg
.
ClassNoPrefix
=
''
;
},
//编辑班级类型
EditClassType
(
obj
)
{
...
...
@@ -342,6 +353,7 @@
this
.
addMsg
.
CTypeName
=
obj
.
CTypeName
;
this
.
addMsg
.
AddHourFee
=
obj
.
AddHourFee
;
this
.
addMsg
.
DefaultClassNum
=
obj
.
DefaultClassNum
;
this
.
addMsg
.
ClassNoPrefix
=
obj
.
ClassNoPrefix
;
},
//删除班级类型费用配置
deleteClassType
(
obj
)
{
...
...
src/pages/financial/studentsClassfee.vue
View file @
f28105ab
...
...
@@ -68,6 +68,19 @@
option-label=
"TeacherName"
v-model=
"msg.TeacherId"
ref=
"TId"
:options=
"TeacherList"
label=
"老师"
:dense=
"false"
emit-value
map-options
/>
</div>
<div
class=
"col-3"
>
<q-select
filled
stack-label
use-input
input-debounce=
"0"
option-value=
"ClassId"
clearable
@
input=
"getList"
option-label=
"ClassName"
v-model=
"msg.ClassId"
:options=
"ClassList"
label=
"班级"
:dense=
"false"
emit-value
map-options
@
filter=
"filterFn"
>
<template
v-slot:no-option
>
<q-item>
<q-item-section
class=
"text-grey"
>
未找到相关数据
</q-item-section>
</q-item>
</
template
>
</q-select>
</div>
<div
class=
"col-3"
>
<q-input
@
input=
"handleCurrentChanges(1)"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.OrderId"
label=
"订单号"
@
clear=
"handleCurrentChanges(1)"
maxlength=
"20"
/>
...
...
@@ -155,7 +168,8 @@
<
script
>
import
{
getSchoolDropdown
,
getTeacherDropDownList
getTeacherDropDownList
,
getClassDropDownList
}
from
'../../api/school/index'
import
{
getStudentConsumptionHoursDetialPageList
,
...
...
@@ -185,6 +199,7 @@
StudentName
:
''
,
OrderId
:
''
,
ContractNo
:
''
,
ClassId
:
0
,
},
datetype
:
'2'
,
pageCount
:
0
,
...
...
@@ -197,7 +212,9 @@
datetypelist
:
[
{
Id
:
'2'
,
Name
:
'月份'
},
{
Id
:
'1'
,
Name
:
'年份'
},
]
],
ClassList
:
[],
allClassList
:
[],
}
},
created
()
{
...
...
@@ -226,6 +243,7 @@
this
.
getList
();
//获取提成周期列表
this
.
getBranchList
()
this
.
GetTeacherList
();
//老师下拉
this
.
setClass
()
},
methods
:
{
...
...
@@ -257,6 +275,32 @@
}
})
},
setClass
(
item
)
{
//班级
this
.
isShowClass
=
true
;
getClassDropDownList
({
CourseId
:
0
,
IsAddDefault
:
1
,
//添加默认选项
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
var
jsonData
=
res
.
Data
;
if
(
jsonData
&&
jsonData
.
length
>
0
)
{
this
.
ClassList
=
JSON
.
parse
(
JSON
.
stringify
(
jsonData
));
this
.
allClassList
=
JSON
.
parse
(
JSON
.
stringify
(
jsonData
));;
}
}
});
},
//筛选员工
filterFn
(
val
,
update
)
{
update
(()
=>
{
if
(
val
===
''
)
{
this
.
ClassList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
allClassList
))
}
else
{
const
needle
=
val
.
toLowerCase
()
this
.
ClassList
=
this
.
allClassList
.
filter
(
v
=>
v
.
ClassName
.
toLowerCase
().
indexOf
(
needle
)
>
-
1
)
}
})
},
getBranchList
()
{
//获取校区
getSchoolDropdown
({}).
then
(
res
=>
{
...
...
src/pages/financial/teacherclassfee.vue
View file @
f28105ab
...
...
@@ -68,6 +68,20 @@
option-label=
"TeacherName"
v-model=
"msg.TeacherId"
ref=
"TId"
:options=
"TeacherList"
label=
"老师"
:dense=
"false"
emit-value
map-options
/>
</div>
<div
class=
"col-3"
>
<q-select
filled
stack-label
use-input
input-debounce=
"0"
option-value=
"ClassId"
clearable
@
input=
"getList"
option-label=
"ClassName"
v-model=
"msg.ClassId"
:options=
"ClassList"
label=
"班级"
:dense=
"false"
emit-value
map-options
@
filter=
"filterFn"
>
<template
v-slot:no-option
>
<q-item>
<q-item-section
class=
"text-grey"
>
未找到相关数据
</q-item-section>
</q-item>
</
template
>
</q-select>
</div>
<div
class=
"col-3"
>
<q-select
filled
stack-label
@
input=
"handleCurrentChanges(1)"
option-value=
"Id"
option-label=
"Name"
v-model=
"datetype"
ref=
"Id"
:options=
"datetypelist"
label=
"日期类型"
:dense=
"false"
emit-value
map-options
/>
...
...
@@ -94,7 +108,7 @@
</
template
>
</q-field>
</div>
</div>
</div>
<div
class=
"page-search row items-center"
style=
"justify-content: space-between;"
>
...
...
@@ -128,8 +142,10 @@
</div>
</template>
<
script
>
import
{
getSchoolDropdown
,
getClassDropDownList
,
getTeacherDropDownList
}
from
'../../api/school/index'
import
{
...
...
@@ -157,6 +173,7 @@
SchoolId
:
'-1'
,
StartMonth
:
''
,
EndMonth
:
''
,
ClassId
:
0
,
},
datetype
:
'2'
,
pageCount
:
0
,
...
...
@@ -169,7 +186,9 @@
datetypelist
:
[
{
Id
:
'2'
,
Name
:
'月份'
},
{
Id
:
'1'
,
Name
:
'年份'
},
]
],
ClassList
:
[],
allClassList
:
[],
}
},
created
()
{
...
...
@@ -198,7 +217,7 @@
this
.
getList
();
//获取提成周期列表
this
.
getBranchList
()
this
.
GetTeacherList
();
//老师下拉
this
.
setClass
()
},
methods
:
{
getList
()
{
...
...
@@ -216,6 +235,32 @@
}
})
},
setClass
(
item
)
{
//班级
this
.
isShowClass
=
true
;
getClassDropDownList
({
CourseId
:
0
,
IsAddDefault
:
1
,
//添加默认选项
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
var
jsonData
=
res
.
Data
;
if
(
jsonData
&&
jsonData
.
length
>
0
)
{
this
.
ClassList
=
JSON
.
parse
(
JSON
.
stringify
(
jsonData
));
this
.
allClassList
=
JSON
.
parse
(
JSON
.
stringify
(
jsonData
));;
}
}
});
},
//筛选员工
filterFn
(
val
,
update
)
{
update
(()
=>
{
if
(
val
===
''
)
{
this
.
ClassList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
allClassList
))
}
else
{
const
needle
=
val
.
toLowerCase
()
this
.
ClassList
=
this
.
allClassList
.
filter
(
v
=>
v
.
ClassName
.
toLowerCase
().
indexOf
(
needle
)
>
-
1
)
}
})
},
//获取教师下拉
GetTeacherList
()
{
getTeacherDropDownList
({}).
then
(
res
=>
{
...
...
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