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
14afc05e
Commit
14afc05e
authored
Jul 31, 2024
by
王鹏云
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
学生管理模块-前端
parent
ad451083
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
19 deletions
+25
-19
index.vue
src/views/busStudentInfo/index.vue
+24
-18
vue.config.js
vue.config.js
+1
-1
No files found.
src/views/busStudentInfo/index.vue
View file @
14afc05e
...
@@ -96,11 +96,6 @@
...
@@ -96,11 +96,6 @@
{{
scope
.
row
.
userName
||
'-'
}}
{{
scope
.
row
.
userName
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"用户"
prop=
"userId"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
userId
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"姓名"
prop=
"stuName"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"姓名"
prop=
"stuName"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
stuName
||
'-'
}}
{{
scope
.
row
.
stuName
||
'-'
}}
...
@@ -132,11 +127,6 @@
...
@@ -132,11 +127,6 @@
{{
scope
.
row
.
remarks
||
'-'
}}
{{
scope
.
row
.
remarks
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"创建时间"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"200px"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"200px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
...
@@ -168,11 +158,8 @@
...
@@ -168,11 +158,8 @@
<el-form-item
label=
"学号"
prop=
"userCode"
>
<el-form-item
label=
"学号"
prop=
"userCode"
>
<el-input
v-model
.
trim=
"form.userCode"
show-word-limit
:maxlength=
"255"
placeholder=
"请输入学号"
/>
<el-input
v-model
.
trim=
"form.userCode"
show-word-limit
:maxlength=
"255"
placeholder=
"请输入学号"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"账号(关联sys_user)"
prop=
"userName"
>
<el-form-item
label=
"账号"
prop=
"userName"
>
<el-input
v-model
.
trim=
"form.userName"
show-word-limit
:maxlength=
"255"
placeholder=
"请输入账号(关联sys_user)"
/>
<el-input
v-model
.
trim=
"form.userName"
show-word-limit
:maxlength=
"255"
placeholder=
"请输入账号"
/>
</el-form-item>
<el-form-item
label=
"用户(关联sys_user)"
prop=
"userId"
>
<el-input-number
v-model
.
trim=
"form.userId"
controls-position=
"right"
:min=
"0"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"姓名"
prop=
"stuName"
>
<el-form-item
label=
"姓名"
prop=
"stuName"
>
<el-input
v-model
.
trim=
"form.stuName"
show-word-limit
:maxlength=
"255"
placeholder=
"请输入姓名"
/>
<el-input
v-model
.
trim=
"form.stuName"
show-word-limit
:maxlength=
"255"
placeholder=
"请输入姓名"
/>
...
@@ -251,6 +238,21 @@ export default {
...
@@ -251,6 +238,21 @@ export default {
form
:
{},
form
:
{},
// 表单校验
// 表单校验
rules
:
{
rules
:
{
userCode
:
[
{
required
:
true
,
message
:
'学号不能为空'
,
trigger
:
'blur'
}
],
userName
:
[
{
required
:
true
,
message
:
'账号不能为空'
,
trigger
:
'blur'
}
],
stuName
:
[
{
required
:
true
,
message
:
'姓名不能为空'
,
trigger
:
'blur'
}
],
stuPhone
:
[
{
required
:
true
,
message
:
'手机号不能为空'
,
trigger
:
'blur'
}
],
classesId
:
[
{
required
:
true
,
message
:
'班级不能为空'
,
trigger
:
'blur'
}
]
}
}
}
}
},
},
...
@@ -360,9 +362,13 @@ export default {
...
@@ -360,9 +362,13 @@ export default {
})
})
}
else
{
}
else
{
addBusStudentInfo
(
this
.
form
).
then
(
response
=>
{
addBusStudentInfo
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
'新增成功'
)
if
(
response
.
code
===
200
)
{
this
.
open
=
false
this
.
msgSuccess
(
'新增成功'
)
this
.
getList
()
this
.
open
=
false
this
.
getList
()
}
else
{
this
.
$message
.
error
(
response
.
message
)
}
})
})
}
}
}
}
...
...
vue.config.js
View file @
14afc05e
...
@@ -61,7 +61,7 @@ module.exports = {
...
@@ -61,7 +61,7 @@ module.exports = {
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: `http://49.232.167.247:20014/`,
// target: `http://49.232.167.247:20014/`,
// target: `http://192.168.10.185:8084/`,
// target: `http://192.168.10.185:8084/`,
target
:
`http://1
92.168.1.41:8082
/`
,
target
:
`http://1
27.0.0.1:8091
/`
,
pathRewrite
:
{
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
}
}
...
...
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