Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
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
张伯涛
NLT-e-cigarette
Commits
96e98c49
Commit
96e98c49
authored
May 31, 2022
by
秦嘉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工站页面样式和基础接口
parent
928c71d9
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
521 additions
and
17 deletions
+521
-17
station.js
src/api/station.js
+54
-0
device.js
src/api/system/device.js
+0
-12
Station.vue
src/views/productionInfo/Station.vue
+467
-4
index.vue
src/views/system/device/index.vue
+0
-1
No files found.
src/api/station.js
0 → 100644
View file @
96e98c49
import
request
from
'@/utils/request'
import
Qs
from
'qs'
// 查询工站列表
export
function
listStation
(
query
)
{
return
request
({
url
:
'/nltstation/queryNltStationByPagination'
,
method
:
'get'
,
params
:
query
})
}
// 新增工站
export
function
addStation
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/nltstation/add'
,
method
:
'post'
,
data
,
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
}
// 查询工站单表
export
function
getStation
(
stationID
)
{
return
request
({
url
:
'/nltstation/detail/'
+
stationID
,
method
:
'get'
})
}
// 修改工站
export
function
updateStation
(
data
)
{
const
businessId
=
data
.
businessId
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/nltstation/update/'
+
businessId
,
method
:
'put'
,
data
,
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
}
// 删除工站(逻辑删除)
export
function
delStation
(
stationID
)
{
return
request
({
url
:
'/nltstation/deleteLogical/'
+
stationID
,
method
:
'delete'
})
}
src/api/system/device.js
View file @
96e98c49
...
@@ -45,18 +45,6 @@ export function updateDevice(data) {
...
@@ -45,18 +45,6 @@ export function updateDevice(data) {
})
})
}
}
// 修改设备状态
export
function
updateDeviceStatus
(
businessId
,
flag
)
{
return
request
({
url
:
'/nltdevice/update/'
+
businessId
,
method
:
'put'
,
data
:
Qs
.
stringify
({
flag
:
flag
}),
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
}
// 删除设备(逻辑删除)
// 删除设备(逻辑删除)
export
function
delDevice
(
deviceID
)
{
export
function
delDevice
(
deviceID
)
{
return
request
({
return
request
({
...
...
src/views/productionInfo/Station.vue
View file @
96e98c49
This diff is collapsed.
Click to expand it.
src/views/system/device/index.vue
View file @
96e98c49
...
@@ -436,7 +436,6 @@ export default {
...
@@ -436,7 +436,6 @@ export default {
},
},
/** 删除按钮方法 **/
/** 删除按钮方法 **/
handleDelete
(
row
)
{
handleDelete
(
row
)
{
console
.
log
(
row
)
this
.
$confirm
(
'所选择数据被删除后不可再恢复,是否继续?'
,
'提示'
,
{
this
.
$confirm
(
'所选择数据被删除后不可再恢复,是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
...
...
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