Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intelligent_station_web
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
张伯涛
intelligent_station_web
Commits
d8ff3fe9
Commit
d8ff3fe9
authored
Aug 09, 2024
by
Gede1416
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改按键位置,学生下拉框数据改为查出来的班级数据
parent
c4a55e24
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
36 deletions
+42
-36
index.vue
src/views/busClassesInfo/index.vue
+2
-2
index.vue
src/views/busStudentInfo/index.vue
+25
-13
index.vue
src/views/busTeacherInfo/index.vue
+3
-10
index.vue
src/views/resDatasetInfo/index.vue
+9
-6
index.vue
src/views/resLabelInfo/index.vue
+3
-5
No files found.
src/views/busClassesInfo/index.vue
View file @
d8ff3fe9
...
@@ -53,7 +53,8 @@
...
@@ -53,7 +53,8 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<div
style=
"float: right"
>
<el-form-item>
<el-button
<el-button
:class=
"commonField.queryClass"
:class=
"commonField.queryClass"
:type=
"commonField.typePrimary"
:type=
"commonField.typePrimary"
...
@@ -66,7 +67,6 @@
...
@@ -66,7 +67,6 @@
:size=
"commonField.smallSize"
:size=
"commonField.smallSize"
@
click=
"resetQuery"
>
重置
</el-button>
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
<div
style=
"float: right"
>
<el-form-item>
<el-form-item>
<el-button
<el-button
:class=
"commonField.addClass"
:class=
"commonField.addClass"
...
...
src/views/busStudentInfo/index.vue
View file @
d8ff3fe9
...
@@ -53,7 +53,9 @@
...
@@ -53,7 +53,9 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<div
style=
"float: right"
>
<el-form-item>
<el-button
<el-button
:class=
"commonField.queryClass"
:class=
"commonField.queryClass"
:type=
"commonField.typePrimary"
:type=
"commonField.typePrimary"
...
@@ -67,7 +69,6 @@
...
@@ -67,7 +69,6 @@
:size=
"commonField.smallSize"
:size=
"commonField.smallSize"
@
click=
"resetQuery"
>
重置
</el-button>
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
<div
style=
"float: right"
>
<el-form-item>
<el-form-item>
<el-button
<el-button
:class=
"commonField.addClass"
:class=
"commonField.addClass"
...
@@ -180,9 +181,9 @@
...
@@ -180,9 +181,9 @@
>
>
<el-option
<el-option
v-for=
"item in classData"
v-for=
"item in classData"
:key=
"item.
i
d"
:key=
"item.
businessI
d"
:label=
"item.
n
ame"
:label=
"item.
classesN
ame"
:value=
"item.
i
d"
:value=
"item.
businessI
d"
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -212,7 +213,9 @@ import {
...
@@ -212,7 +213,9 @@ import {
addBusStudentInfo
,
addBusStudentInfo
,
updateBusStudentInfo
,
updateBusStudentInfo
,
exportBusStudentInfo
}
from
'@/api/busStudentInfo'
exportBusStudentInfo
}
from
'@/api/busStudentInfo'
import
{
listBusClassesInfo
}
from
'@/api/busClassesInfo'
import
commonField
from
'@/utils/commonField'
import
commonField
from
'@/utils/commonField'
import
{
get
}
from
'js-cookie'
;
export
default
{
export
default
{
name
:
'BusStudentInfo'
,
name
:
'BusStudentInfo'
,
data
()
{
data
()
{
...
@@ -275,14 +278,14 @@ export default {
...
@@ -275,14 +278,14 @@ export default {
},
},
// 班级参数
// 班级参数
classData
:
[
classData
:
[
{
id
:
1
,
name
:
'软件工程1班'
},
//
{ id: 1, name: '软件工程1班' },
{
id
:
2
,
name
:
'软件工程2班'
},
//
{ id: 2, name: '软件工程2班' },
{
id
:
3
,
name
:
'软件工程3班'
},
//
{ id: 3, name: '软件工程3班' },
{
id
:
4
,
name
:
'软件工程4班'
},
//
{ id: 4, name: '软件工程4班' },
{
id
:
5
,
name
:
'物联网工程1班'
},
//
{ id: 5, name: '物联网工程1班' },
{
id
:
6
,
name
:
'物联网工程2班'
},
//
{ id: 6, name: '物联网工程2班' },
{
id
:
7
,
name
:
'物联网工程3班'
},
//
{ id: 7, name: '物联网工程3班' },
{
id
:
8
,
name
:
'物联网工程4班'
}
//
{ id: 8, name: '物联网工程4班' }
]
]
}
}
},
},
...
@@ -295,8 +298,17 @@ export default {
...
@@ -295,8 +298,17 @@ export default {
},
},
created
()
{
created
()
{
this
.
getList
()
// 列表查询
this
.
getList
()
// 列表查询
this
.
getClassList
()
// 班级列表
},
},
methods
:
{
methods
:
{
//查询班级列表
getClassList
()
{
listBusClassesInfo
().
then
(
response
=>
{
this
.
classData
=
response
.
rows
}
)
},
// 手机号校验
// 手机号校验
isStuPhoneValid
(
rule
,
value
,
callback
)
{
isStuPhoneValid
(
rule
,
value
,
callback
)
{
const
reg_tel
=
/^
(
13
[
0-9
]
|14
[
01456879
]
|15
[
0-35-9
]
|16
[
2567
]
|17
[
0-8
]
|18
[
0-9
]
|19
[
0-35-9
])\d{8}
$/
const
reg_tel
=
/^
(
13
[
0-9
]
|14
[
01456879
]
|15
[
0-35-9
]
|16
[
2567
]
|17
[
0-8
]
|18
[
0-9
]
|19
[
0-35-9
])\d{8}
$/
...
...
src/views/busTeacherInfo/index.vue
View file @
d8ff3fe9
...
@@ -53,7 +53,9 @@
...
@@ -53,7 +53,9 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<div
style=
"float: right"
>
<el-form-item>
<el-button
<el-button
:class=
"commonField.queryClass"
:class=
"commonField.queryClass"
:type=
"commonField.typePrimary"
:type=
"commonField.typePrimary"
...
@@ -67,7 +69,6 @@
...
@@ -67,7 +69,6 @@
:size=
"commonField.smallSize"
:size=
"commonField.smallSize"
@
click=
"resetQuery"
>
重置
</el-button>
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
<div
style=
"float: right"
>
<el-form-item>
<el-form-item>
<el-button
<el-button
:class=
"commonField.addClass"
:class=
"commonField.addClass"
...
@@ -99,11 +100,6 @@
...
@@ -99,11 +100,6 @@
{{
scope
.
row
.
userName
||
'-'
}}
{{
scope
.
row
.
userName
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"用户"
prop=
"teaId"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
teaId
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"姓名"
prop=
"teaName"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"姓名"
prop=
"teaName"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
teaName
||
'-'
}}
{{
scope
.
row
.
teaName
||
'-'
}}
...
@@ -169,9 +165,6 @@
...
@@ -169,9 +165,6 @@
<el-form-item
label=
"账号"
prop=
"userName"
>
<el-form-item
label=
"账号"
prop=
"userName"
>
<el-input
v-model
.
trim=
"form.userName"
show-word-limit
:maxlength=
"255"
placeholder=
"请输入账号"
/>
<el-input
v-model
.
trim=
"form.userName"
show-word-limit
:maxlength=
"255"
placeholder=
"请输入账号"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"用户"
prop=
"teaId"
>
<el-input-number
v-model
.
trim=
"form.teaId"
controls-position=
"right"
:min=
"0"
/>
</el-form-item>
<el-form-item
label=
"姓名"
prop=
"teaName"
>
<el-form-item
label=
"姓名"
prop=
"teaName"
>
<el-input
v-model
.
trim=
"form.teaName"
show-word-limit
:maxlength=
"255"
placeholder=
"请输入姓名"
/>
<el-input
v-model
.
trim=
"form.teaName"
show-word-limit
:maxlength=
"255"
placeholder=
"请输入姓名"
/>
</el-form-item>
</el-form-item>
...
...
src/views/resDatasetInfo/index.vue
View file @
d8ff3fe9
...
@@ -52,7 +52,9 @@
...
@@ -52,7 +52,9 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<div
style=
"float: right"
>
<el-form-item>
<el-button
<el-button
:class=
"commonField.queryClass"
:class=
"commonField.queryClass"
:type=
"commonField.typePrimary"
:type=
"commonField.typePrimary"
...
@@ -65,7 +67,6 @@
...
@@ -65,7 +67,6 @@
:size=
"commonField.smallSize"
:size=
"commonField.smallSize"
@
click=
"resetQuery"
>
重置
</el-button>
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
<div
style=
"float: right"
>
<el-form-item>
<el-form-item>
<el-button
<el-button
:class=
"commonField.addClass"
:class=
"commonField.addClass"
...
@@ -113,8 +114,6 @@
...
@@ -113,8 +114,6 @@
</el-table-column>
</el-table-column>
<el-table-column
width=
"100"
label=
"状态"
prop=
"flag"
>
<el-table-column
width=
"100"
label=
"状态"
prop=
"flag"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.flag === '1'"
>
启动
</span>
<span
v-else-if=
"scope.row.flag === '0'"
>
停用
</span>
<el-switch
<el-switch
v-model=
"scope.row.flag"
v-model=
"scope.row.flag"
class=
"switchDisabledStyle"
class=
"switchDisabledStyle"
...
@@ -129,7 +128,7 @@
...
@@ -129,7 +128,7 @@
{{
scope
.
row
.
remarks
||
'-'
}}
{{
scope
.
row
.
remarks
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"创建时间"
width=
"
16
0"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"创建时间"
width=
"
20
0"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</
template
>
...
@@ -179,7 +178,7 @@
...
@@ -179,7 +178,7 @@
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
label=
"标签选择"
>
<el-form-item
label=
"标签选择"
>
<el-select
name=
"lableSelect"
id=
"lableSelect"
v-model=
"form.labelId"
placeholder=
"请选择"
multiple
collapse-tags
@
change=
"labelChang()"
>
<el-select
name=
"lableSelect"
id=
"lableSelect"
class=
"custom-select"
v-model=
"form.labelId"
placeholder=
"请选择"
multiple
collapse-tags
@
change=
"labelChang()"
>
<el-option
<el-option
v-for=
"labelInfo in statusArr"
v-for=
"labelInfo in statusArr"
:key=
"labelInfo.businessId"
:key=
"labelInfo.businessId"
...
@@ -419,6 +418,7 @@ export default {
...
@@ -419,6 +418,7 @@ export default {
},
},
// 改变状态
// 改变状态
handleStatusChange
(
row
)
{
handleStatusChange
(
row
)
{
console
.
log
(
row
)
const
text
=
row
.
flag
===
'1'
?
'启用'
:
'停用'
const
text
=
row
.
flag
===
'1'
?
'启用'
:
'停用'
this
.
$confirm
(
'确认操作?'
,
'提示'
,
{
this
.
$confirm
(
'确认操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
...
@@ -520,5 +520,8 @@ export default {
...
@@ -520,5 +520,8 @@ export default {
background-color
:
#F4F4F4
;
background-color
:
#F4F4F4
;
margin-bottom
:
10px
margin-bottom
:
10px
}
}
.custom-select
.el-input
{
display
:
none
;
}
}
}
</
style
>
</
style
>
src/views/resLabelInfo/index.vue
View file @
d8ff3fe9
...
@@ -33,8 +33,9 @@
...
@@ -33,8 +33,9 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<div
style=
"float: right"
>
<el-button
<el-form-item>
<el-button
:class=
"commonField.queryClass"
:class=
"commonField.queryClass"
:type=
"commonField.typePrimary"
:type=
"commonField.typePrimary"
:icon=
"commonField.queryIcon"
:icon=
"commonField.queryIcon"
...
@@ -48,9 +49,6 @@
...
@@ -48,9 +49,6 @@
:size=
"commonField.smallSize"
:size=
"commonField.smallSize"
@
click=
"resetQuery"
@
click=
"resetQuery"
>
重置
</el-button>
>
重置
</el-button>
</el-form-item>
<div
style=
"float: right"
>
<el-form-item>
<el-button
<el-button
:class=
"commonField.addClass"
:class=
"commonField.addClass"
:type=
"commonField.typePrimary"
:type=
"commonField.typePrimary"
...
...
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