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
c6d2ba77
Commit
c6d2ba77
authored
Dec 08, 2023
by
cat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
印刷权限控制
parent
4d705d9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
6 deletions
+23
-6
index.js
src/api/equipment/printingCheck/index.js
+7
-0
index.vue
src/views/equipment/printingCheck/index.vue
+16
-6
No files found.
src/api/equipment/printingCheck/index.js
View file @
c6d2ba77
...
...
@@ -22,3 +22,10 @@ export function addYsList(data) {
}
})
}
// 逻辑删除印刷接口
export
function
deleteYs
(
id
)
{
return
request
({
url
:
'/wbwarehouseys/deleteLogical/'
+
id
,
method
:
'delete'
})
}
src/views/equipment/printingCheck/index.vue
View file @
c6d2ba77
...
...
@@ -82,13 +82,21 @@
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"200px"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"scope.row.appstatus === '0'"
v-if=
"scope.row.appstatus === '0'
&& username === 'admin'
"
size=
"mini"
type=
"text"
style=
"color: #49cec9"
@
click=
"handle(scope.row)"
>
处理
</el-button>
<el-button
v-if=
"username === 'admin'"
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
<!--
<el-button-->
<!-- size="mini"-->
<!-- type="text"-->
...
...
@@ -414,12 +422,14 @@ import {
import
{
parseTime
}
from
'@/utils'
import
{
getDictData
,
getEquipment
}
from
'@/api/equipment/application'
import
{
addUser
,
updateUser
}
from
'@/api/system/user'
import
{
addYsList
,
getYsList
}
from
'@/api/equipment/printingCheck'
import
{
addYsList
,
deleteYs
,
getYsList
}
from
'@/api/equipment/printingCheck'
export
default
{
name
:
'Draw'
,
data
()
{
return
{
// 用户
username
:
this
.
$store
.
state
.
user
.
name
,
// 印刷列表
ysList
:
[],
// 表单校验
...
...
@@ -1021,16 +1031,16 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
id
=
row
.
businessId
this
.
$confirm
(
'是否确认
操作
?'
,
'提示'
,
{
this
.
$confirm
(
'是否确认
删除
?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}
).
then
(
res
=>
{
delete
Logical
(
id
).
then
(
res
=>
{
delete
Ys
(
id
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'
操作
成功'
)
this
.
$message
.
success
(
'
删除
成功'
)
this
.
queryParams
.
page
=
1
this
.
getList
()
this
.
get
Ys
List
()
}
}
)
}
)
...
...
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