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
1eabb4c4
Commit
1eabb4c4
authored
Aug 03, 2023
by
高宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/project1' into project1
# Conflicts: # src/views/processManagement/draw.vue
parents
e9affbda
c783a85a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
22 deletions
+61
-22
draw.js
src/api/equipment/draw.js
+12
-0
draw.vue
src/views/equipment/draw.vue
+6
-12
draw.vue
src/views/processManagement/draw.vue
+43
-10
No files found.
src/api/equipment/draw.js
View file @
1eabb4c4
...
@@ -42,3 +42,15 @@ export function detail(id) {
...
@@ -42,3 +42,15 @@ export function detail(id) {
method
:
'get'
method
:
'get'
})
})
}
}
// 菜单权限验证接口
export
function
checkPermission
(
password
)
{
return
request
({
url
:
'/wbapply/checkPermission'
,
method
:
'post'
,
password
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
}
})
}
src/views/equipment/draw.vue
View file @
1eabb4c4
...
@@ -227,12 +227,6 @@
...
@@ -227,12 +227,6 @@
{{
scope
.
row
.
psm
||
'-'
}}
{{
scope
.
row
.
psm
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"pissb"
prop=
"pissb"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.pissb === '0'"
>
否
</span>
<span
v-else
>
是
</span>
</
template
>
</el-table-column>
</el-table>
</el-table>
</el-dialog>
</el-dialog>
...
@@ -312,12 +306,6 @@
...
@@ -312,12 +306,6 @@
{{
scope
.
row
.
psm
||
'-'
}}
{{
scope
.
row
.
psm
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"pissb"
prop=
"pissb"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.pissb === '0'"
>
否
</span>
<span
v-else
>
是
</span>
</
template
>
</el-table-column>
</el-table>
</el-table>
<pagination
<pagination
v-show=
"totalDetail>0"
v-show=
"totalDetail>0"
...
@@ -463,6 +451,12 @@ export default {
...
@@ -463,6 +451,12 @@ export default {
next
()
next
()
},
},
created
()
{
created
()
{
this
.
resetQuery
()
if
(
this
.
$store
.
getters
.
searchParams
[
this
.
$route
.
path
])
{
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
this
.
queryParams
=
{
...
param
}
}
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
...
...
src/views/processManagement/draw.vue
View file @
1eabb4c4
...
@@ -271,6 +271,10 @@
...
@@ -271,6 +271,10 @@
<el-button
type=
"primary"
style=
"padding: 8px 7px;"
icon=
"el-icon-search"
size=
"small"
@
click=
"handleQueryWarehouse"
>
查询
</el-button>
<el-button
type=
"primary"
style=
"padding: 8px 7px;"
icon=
"el-icon-search"
size=
"small"
@
click=
"handleQueryWarehouse"
>
查询
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQueryWarehouse"
>
重置
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQueryWarehouse"
>
重置
</el-button>
</el-form-item>
</el-form-item>
<el-radio-group
v-model=
"radio1"
class=
"ml-4"
style=
"padding: 25px 7px;"
@
change=
"login"
>
<el-radio
label=
"2"
size=
"large"
>
工序库
</el-radio>
<el-radio
label=
"1"
size=
"large"
>
设备库
</el-radio>
</el-radio-group>
</el-form>
</el-form>
<el-table
v-loading=
"loadingDetail"
border
:data=
"detailApplyList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loadingDetail"
border
:data=
"detailApplyList"
@
selection-change=
"handleSelectionChange"
>
...
@@ -311,10 +315,9 @@
...
@@ -311,10 +315,9 @@
{{
scope
.
row
.
psm
||
'-'
}}
{{
scope
.
row
.
psm
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"
pissb"
prop=
"pissb
"
>
<el-table-column
label=
"
回收时间"
prop=
"recycleDate
"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.pissb === '0'"
>
否
</span>
{{
scope
.
row
.
recycleDate
||
'-'
}}
<span
v-else
>
是
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -333,16 +336,35 @@
...
@@ -333,16 +336,35 @@
>
确定
</el-button>
>
确定
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<!-- 登录验证-->
<el-dialog
:title=
"title"
:visible
.
sync=
"openLogin"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"loginform"
label-width=
"80px"
>
<el-form-item
label=
"密码"
>
<el-input
type=
"password"
v-model=
"loginform.password"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
</el-form-item>
</el-form>
</el-dialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
getEquipment
}
from
'@/api/equipment/application'
import
{
getEquipment
}
from
'@/api/equipment/application'
import
{
listWbApply
,
deleteLogical
,
batchAddition
,
detail
}
from
'@/api/equipment/draw'
import
{
listWbApply
,
deleteLogical
,
batchAddition
,
detail
,
checkPermission
}
from
'@/api/equipment/draw'
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
export
default
{
export
default
{
name
:
'Draw'
,
name
:
'Draw'
,
data
()
{
data
()
{
return
{
return
{
loginform
:
{
username
:
''
,
password
:
''
},
// 打开登录验证界面
openLogin
:
false
,
radio1
:
'2'
,
ptype
:
''
,
ptype
:
''
,
pgx
:
''
,
pgx
:
''
,
prank
:
''
,
prank
:
''
,
...
@@ -465,9 +487,18 @@ export default {
...
@@ -465,9 +487,18 @@ export default {
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
// 菜单权限验证确定
handleConfirm
()
{
checkPermission
(
this
.
loginform
.
password
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
warning
(
'已切换到设备库'
)
}
})
},
handleCance
()
{
handleCance
()
{
this
.
loadingDetail
=
true
this
.
loadingDetail
=
true
console
.
log
(
'multipleSelection'
,
this
.
multipleSelection
)
if
(
this
.
multipleSelection
.
length
===
0
)
{
if
(
this
.
multipleSelection
.
length
===
0
)
{
this
.
$message
.
warning
(
'请至少选择一个要处理的设备'
)
this
.
$message
.
warning
(
'请至少选择一个要处理的设备'
)
}
else
{
}
else
{
...
@@ -488,7 +519,6 @@ export default {
...
@@ -488,7 +519,6 @@ export default {
})
})
console
.
log
(
'canceList'
,
this
.
canceList
)
console
.
log
(
'canceList'
,
this
.
canceList
)
batchAddition
(
this
.
canceList
).
then
(
res
=>
{
batchAddition
(
this
.
canceList
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
loadingDetail
=
false
this
.
loadingDetail
=
false
this
.
openHandle
=
false
this
.
openHandle
=
false
...
@@ -562,9 +592,7 @@ export default {
...
@@ -562,9 +592,7 @@ export default {
this
.
singleDetails
=
row
this
.
singleDetails
=
row
this
.
title
=
'详情'
this
.
title
=
'详情'
detail
(
id
).
then
(
res
=>
{
detail
(
id
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
res
.
data
.
createDate
=
parseTime
(
res
.
data
.
createDate
,
'{y}-{m}-{d}'
)
res
.
data
.
createDate
=
parseTime
(
res
.
data
.
createDate
,
'{y}-{m}-{d}'
)
// this.totalApplyDetail = res.total
this
.
applyList
=
res
.
data
.
wbApplyDetailList
this
.
applyList
=
res
.
data
.
wbApplyDetailList
this
.
applyStatus
=
res
.
data
.
pstatus
this
.
applyStatus
=
res
.
data
.
pstatus
this
.
loadingDetail
=
false
this
.
loadingDetail
=
false
...
@@ -633,11 +661,16 @@ export default {
...
@@ -633,11 +661,16 @@ export default {
phd
:
''
,
phd
:
''
,
prank
:
''
,
prank
:
''
,
pstatus
:
''
,
pstatus
:
''
,
ptype
:
'2'
ptype
:
'2'
,
delFlag
:
0
}
}
// this.dateRange = []
this
.
handleQuery
()
this
.
handleQuery
()
},
},
// 登录
login
()
{
this
.
title
=
'菜单权限'
this
.
openLogin
=
true
},
// warehouse的重置按钮
// warehouse的重置按钮
resetQueryWarehouse
()
{
resetQueryWarehouse
()
{
this
.
queryParamsDetail
.
pn
=
null
this
.
queryParamsDetail
.
pn
=
null
...
...
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