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
ca50bbb5
Commit
ca50bbb5
authored
Aug 09, 2024
by
munan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系统设置
parent
c4a55e24
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
270 additions
and
385 deletions
+270
-385
sysSettings.js
src/api/sysSettings.js
+2
-42
index.vue
src/views/busTeacherInfo/index.vue
+24
-30
index.vue
src/views/resDatasetInfo/index.vue
+11
-13
index.vue
src/views/system/sysSettings/index.vue
+233
-300
No files found.
src/api/sysSettings.js
View file @
ca50bbb5
...
...
@@ -2,24 +2,11 @@ import request from '@/utils/request'
import
Qs
from
'qs'
/**
* 1. 列表查询
* 2. 查询详细信息
* 3. 新增
* 4. 修改
* 5. 逻辑删除
* 6. 导出
* 1. 查询
* 2. 修改
*
*/
// 1. 查询系统设置列表
export
function
listSysSettings
(
query
)
{
return
request
({
url
:
'/syssettings/list'
,
method
:
'get'
,
params
:
query
})
}
// 2. 查询系统设置详细信息
export
function
getSysSettings
(
businessId
)
{
return
request
({
...
...
@@ -28,16 +15,6 @@ export function getSysSettings(businessId) {
})
}
// 3. 新增系统设置
export
function
addSysSettings
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/syssettings/add'
,
method
:
'post'
,
data
:
data
})
}
// 4. 修改系统设置
export
function
updateSysSettings
(
data
)
{
const
businessId
=
data
.
businessId
...
...
@@ -49,20 +26,3 @@ export function updateSysSettings(data) {
})
}
// 5. 逻辑删除系统设置
export
function
delSysSettings
(
businessId
)
{
return
request
({
url
:
'/syssettings/deleteLogical/'
+
businessId
,
method
:
'delete'
})
}
// 6. 导出系统设置
export
function
exportSysSettings
(
query
)
{
return
request
({
url
:
'/syssettings/export'
,
method
:
'get'
,
params
:
query
,
responseType
:
'blob'
})
}
src/views/busTeacherInfo/index.vue
View file @
ca50bbb5
...
...
@@ -53,6 +53,7 @@
/>
</el-select>
</el-form-item>
<div
class=
"search"
>
<el-form-item>
<el-button
:class=
"commonField.queryClass"
...
...
@@ -83,6 +84,7 @@
@
click=
"handleExport"
>
导出
</el-button>
</el-form-item>
</div>
</div>
</el-form>
</div>
<div
class=
"placeholder"
/>
...
...
@@ -99,11 +101,6 @@
{{
scope
.
row
.
userName
||
'-'
}}
</
template
>
</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"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
teaName
||
'-'
}}
...
...
@@ -169,9 +166,6 @@
<el-form-item
label=
"账号"
prop=
"userName"
>
<el-input
v-model
.
trim=
"form.userName"
show-word-limit
:maxlength=
"255"
placeholder=
"请输入账号"
/>
</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-input
v-model
.
trim=
"form.teaName"
show-word-limit
:maxlength=
"255"
placeholder=
"请输入姓名"
/>
</el-form-item>
...
...
src/views/resDatasetInfo/index.vue
View file @
ca50bbb5
...
...
@@ -82,9 +82,7 @@
</el-form-item>
</div>
</el-form>
<div
class=
"placeholder"
/>
<div
style=
"padding:5px 10px"
>
<div
class=
"mb12 font-small-bold"
>
数据集信息列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"resDatasetInfoList"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"数据集编号"
prop=
"dataCode"
:show-overflow-tooltip=
"true"
>
...
...
@@ -113,8 +111,8 @@
</el-table-column>
<el-table-column
width=
"100"
label=
"状态"
prop=
"flag"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.flag === '1'"
>
启动
</span>
<span
v-else-if=
"scope.row.flag === '0'"
>
停用
</span>
<span
v-if=
"scope.row.flag === '1'"
>
</span>
<span
v-else-if=
"scope.row.flag === '0'"
></span>
<el-switch
v-model=
"scope.row.flag"
class=
"switchDisabledStyle"
...
...
@@ -129,7 +127,7 @@
{{
scope
.
row
.
remarks
||
'-'
}}
</
template
>
</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"
>
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
...
...
src/views/system/sysSettings/index.vue
View file @
ca50bbb5
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