Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
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
杨硕
template_vue
Commits
f307658c
Commit
f307658c
authored
Jul 30, 2023
by
吴志坤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
基础信息的增删改查
parent
873b9222
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
42 deletions
+19
-42
basicInfo.js
src/api/equipment/basicInfo.js
+3
-25
basicInfo.vue
src/views/equipment/basicInfo.vue
+12
-13
draw.vue
src/views/equipment/draw.vue
+2
-2
draw.vue
src/views/processManagement/draw.vue
+2
-2
No files found.
src/api/equipment/basicInfo.js
View file @
f307658c
...
...
@@ -39,33 +39,11 @@ export function updataInfo(data) {
})
}
// 角色状态修改
export
function
changeRoleStatus
(
businessId
,
flag
)
{
const
data
=
{
businessId
,
flag
}
// 逻辑删除基础信息接口
export
function
deleteLogical
(
id
)
{
return
request
({
url
:
'/system/role/changeStatus'
,
method
:
'put'
,
params
:
data
})
}
// 删除角色
export
function
delRole
(
roleId
)
{
return
request
({
url
:
'/system/role/deleteLogical/'
+
roleId
,
url
:
'/wbbaseinfo/deleteLogical/'
+
id
,
method
:
'delete'
})
}
// 导出角色
export
function
exportRole
(
query
)
{
return
request
({
url
:
'/system/role/export'
,
method
:
'get'
,
params
:
query
,
responseType
:
'blob'
})
}
src/views/equipment/basicInfo.vue
View file @
f307658c
...
...
@@ -92,9 +92,9 @@
{{
scope
.
row
.
createName
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
createTim
e"
width=
"200px"
>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
updateDat
e"
width=
"200px"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
createTim
e
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
updateDat
e
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"150px"
>
...
...
@@ -170,7 +170,7 @@
</template>
<
script
>
import
{
add
,
listBasicInfo
,
updataInfo
,
getDetailById
}
from
'@/api/equipment/basicInfo'
import
{
add
,
listBasicInfo
,
updataInfo
,
getDetailById
,
deleteLogical
}
from
'@/api/equipment/basicInfo'
import
{
parseTime
}
from
'@/utils'
export
default
{
name
:
'Role'
,
...
...
@@ -475,25 +475,24 @@ export default {
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
roleIds
=
row
.
businessId
||
this
.
ids
this
.
$confirm
(
'
所选择数据被删除后不可再恢复,是否继续?
'
,
'提示'
,
{
const
id
=
row
.
businessId
this
.
$confirm
(
'
是否确认操作?
'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
delRole
(
roleIds
)
}).
then
(()
=>
{
this
.
getList
()
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
}).
then
(
res
=>
{
deleteLogical
(
id
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'操作成功'
)
this
.
getList
()
}
})
}).
catch
(
function
()
{
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.app-container
{
font-size
:
18px
;
...
...
src/views/equipment/draw.vue
View file @
f307658c
...
...
@@ -79,9 +79,9 @@
{{
scope
.
row
.
createName
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
createTim
e"
width=
"200px"
>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
updateDat
e"
width=
"200px"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
createTim
e
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
updateDat
e
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"150px"
>
...
...
src/views/processManagement/draw.vue
View file @
f307658c
...
...
@@ -79,9 +79,9 @@
{{
scope
.
row
.
createName
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
createTim
e"
width=
"200px"
>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
updateDat
e"
width=
"200px"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
createTim
e
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
updateDat
e
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"150px"
>
...
...
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