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
5f3cfbf9
Commit
5f3cfbf9
authored
Jul 31, 2024
by
Jay-Fan
Committed by
Gede1416
Aug 01, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.91isoft.com:90/zhangbotao/intelligent_station_web
parents
fe5cf3a5
0b9e5e12
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
505 additions
and
18 deletions
+505
-18
resDatasetInfo.js
src/api/resDatasetInfo.js
+68
-0
index.vue
src/views/busStudentInfo/index.vue
+24
-18
index.vue
src/views/resDatasetInfo/index.vue
+413
-0
No files found.
src/api/resDatasetInfo.js
0 → 100644
View file @
5f3cfbf9
import
request
from
'@/utils/request'
import
Qs
from
'qs'
/**
* 1. 列表查询
* 2. 查询详细信息
* 3. 新增
* 4. 修改
* 5. 逻辑删除
* 6. 导出
*
*/
// 1. 查询数据集信息列表
export
function
listResDatasetInfo
(
query
)
{
return
request
({
url
:
'/resdatasetinfo/list'
,
method
:
'get'
,
params
:
query
})
}
// 2. 查询数据集信息详细信息
export
function
getResDatasetInfo
(
businessId
)
{
return
request
({
url
:
'/resdatasetinfo/detail/'
+
businessId
,
method
:
'get'
})
}
// 3. 新增数据集信息
export
function
addResDatasetInfo
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/resdatasetinfo/add'
,
method
:
'post'
,
data
:
data
})
}
// 4. 修改数据集信息
export
function
updateResDatasetInfo
(
data
)
{
const
businessId
=
data
.
businessId
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/resdatasetinfo/update/'
+
businessId
,
method
:
'put'
,
data
})
}
// 5. 逻辑删除数据集信息
export
function
delResDatasetInfo
(
businessId
)
{
return
request
({
url
:
'/resdatasetinfo/deleteLogical/'
+
businessId
,
method
:
'delete'
})
}
// 6. 导出数据集信息
export
function
exportResDatasetInfo
(
query
)
{
return
request
({
url
:
'/resdatasetinfo/export'
,
method
:
'get'
,
params
:
query
,
responseType
:
'blob'
})
}
src/views/busStudentInfo/index.vue
View file @
5f3cfbf9
...
@@ -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
)
}
})
})
}
}
}
}
...
...
src/views/resDatasetInfo/index.vue
0 → 100644
View file @
5f3cfbf9
This diff is collapsed.
Click to expand it.
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