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
32b19aa0
Commit
32b19aa0
authored
Aug 03, 2023
by
吴志坤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工序库设备领用登录弹窗
parent
086f7252
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
15 deletions
+39
-15
draw.vue
src/views/equipment/draw.vue
+6
-0
draw.vue
src/views/processManagement/draw.vue
+33
-15
No files found.
src/views/equipment/draw.vue
View file @
32b19aa0
...
...
@@ -463,6 +463,12 @@ export default {
next
()
},
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
()
},
methods
:
{
...
...
src/views/processManagement/draw.vue
View file @
32b19aa0
...
...
@@ -271,6 +271,10 @@
<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-form-item>
<el-radio-group
v-model=
"radio1"
class=
"ml-4"
style=
"padding: 25px 7px;"
@
change=
"login"
>
<el-radio
label=
"1"
size=
"large"
>
设备库
</el-radio>
<el-radio
label=
"2"
size=
"large"
>
工序库
</el-radio>
</el-radio-group>
</el-form>
<el-table
v-loading=
"loadingDetail"
border
:data=
"detailApplyList"
@
selection-change=
"handleSelectionChange"
>
...
...
@@ -333,6 +337,21 @@
>
确定
</el-button>
</div>
</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
v-model=
"loginform.username"
></el-input>
</el-form-item>
<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=
"handleSubmit"
>
登录
</el-button>
</el-form-item>
</el-form>
</el-dialog>
</div>
</template>
<
script
>
...
...
@@ -343,6 +362,13 @@ export default {
name
:
'Draw'
,
data
()
{
return
{
loginform
:
{
username
:
''
,
password
:
''
},
// 打开登录验证界面
openLogin
:
false
,
radio1
:
''
,
ptype
:
''
,
pgx
:
''
,
prank
:
''
,
...
...
@@ -467,7 +493,6 @@ export default {
methods
:
{
handleCance
()
{
this
.
loadingDetail
=
true
console
.
log
(
'multipleSelection'
,
this
.
multipleSelection
)
if
(
this
.
multipleSelection
.
length
===
0
)
{
this
.
$message
.
warning
(
'请至少选择一个要处理的设备'
)
}
else
{
...
...
@@ -522,7 +547,6 @@ export default {
})
},
handle
(
row
)
{
console
.
log
(
'row'
,
row
)
this
.
applyId
=
row
.
businessId
this
.
pn
=
row
.
pn
this
.
ptype
=
row
.
ptype
...
...
@@ -542,7 +566,6 @@ export default {
if
(
res
.
code
&&
res
.
code
===
null
)
{
this
.
$message
.
warning
(
res
.
message
)
}
console
.
log
(
'res'
)
if
(
res
.
rows
.
createDate
&&
res
.
rows
.
createDate
!==
null
)
{
res
.
rows
.
createDate
=
parseTime
(
res
.
rows
.
createDate
,
'{y}-{m}-{d}'
)
}
...
...
@@ -550,16 +573,8 @@ export default {
this
.
loadingDetail
=
false
this
.
openHandle
=
true
})
// this.applyId = row.businessId
this
.
title
=
'处理'
// this.openHandle = !this.openHandle
this
.
loadingDetail
=
true
// detailList(this.queryParamsDetail).then(res => {
// res.rows.createDate = parseTime(res.rows.createDate, '{y}-{m}-{d}')
// this.totalDetail = res.total
// this.detailApplyList = res.rows
// this.loadingDetail = false
// })
},
// 获取所选行详情信息
handleDetail
(
row
)
{
...
...
@@ -568,9 +583,7 @@ export default {
this
.
singleDetails
=
row
this
.
title
=
'详情'
detail
(
id
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
res
.
data
.
createDate
=
parseTime
(
res
.
data
.
createDate
,
'{y}-{m}-{d}'
)
// this.totalApplyDetail = res.total
this
.
applyList
=
res
.
data
.
wbApplyDetailList
this
.
applyStatus
=
res
.
data
.
pstatus
this
.
loadingDetail
=
false
...
...
@@ -639,11 +652,16 @@ export default {
phd
:
''
,
prank
:
''
,
pstatus
:
''
,
ptype
:
'2'
ptype
:
'2'
,
delFlag
:
0
}
// this.dateRange = []
this
.
handleQuery
()
},
// 登录
login
()
{
this
.
title
=
'登录'
this
.
openLogin
=
true
},
// warehouse的重置按钮
resetQueryWarehouse
()
{
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