Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lxyl-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
李苏
lxyl-vue
Commits
d165533c
Commit
d165533c
authored
Jan 04, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
195008cd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
96 additions
and
2 deletions
+96
-2
index.vue
src/views/ccgl/rkgl/sjrw/index.vue
+3
-1
mx.vue
src/views/ccgl/rkgl/sjrw/mx.vue
+15
-1
mxDialog.vue
src/views/ccgl/rkgl/sjrw/mxDialog.vue
+78
-0
No files found.
src/views/ccgl/rkgl/sjrw/index.vue
View file @
d165533c
...
...
@@ -48,7 +48,10 @@
this
.
$refs
.
mx
.
$refs
.
basePage
.
refresh
()
},
topGetRow
(
row
)
{
/*
*/
let
mid
=
row
.
id
this
.
$refs
.
mx
.
$refs
.
basePage
.
$row
=
row
this
.
$refs
.
mx
.
$refs
.
basePage
.
queryParams
.
mid
=
mid
this
.
$refs
.
mx
.
$refs
.
basePage
.
$refs
[
'TablePager'
].
pageQuery
({
setFirstCurrent
:
true
...
...
@@ -57,7 +60,6 @@
this
.
$refs
.
sjhz
.
$refs
.
basePage
.
$refs
[
'TablePager'
].
pageQuery
()
this
.
$refs
.
sjjg
.
$refs
.
basePage
.
queryParams
.
mid
=
mid
this
.
$refs
.
sjjg
.
$refs
.
basePage
.
$refs
[
'TablePager'
].
pageQuery
()
},
}
...
...
src/views/ccgl/rkgl/sjrw/mx.vue
View file @
d165533c
...
...
@@ -2,8 +2,16 @@
<BasePage
@
getRow=
'getRow'
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
style=
"height: 100%;border-top: 0px;"
:autoQuery=
'false'
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<mxDialog
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog"
/>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
slot=
"tabCustom2"
>
<el-table-column
label=
"操作"
width=
"100"
header-align=
"center"
fixed=
"right"
>
<template
slot-scope=
"scope"
>
<div
style=
"cursor: pointer;color: cornflowerblue;text-align: center;width: 80px;"
@
click
.
prevent
.
self=
"sj(scope.$index,scope,scope.row)"
><i
class=
"el-icon-edit"
></i>
上架
</div>
</
template
>
</el-table-column>
</template>
</BasePage>
...
...
@@ -11,6 +19,7 @@
<
script
>
// import wlphsx from 'common/src/mixin/wlphsx.js'
import
mxDialog
from
'./mxDialog.vue'
export
default
{
// mixins:[wlphsx],
data
()
{
...
...
@@ -112,6 +121,11 @@
},
methods
:
{
sj
(){
this
.
$refs
.
basePage
.
DialogTitle
=
'上架'
this
.
$refs
.
basePage
.
DialogWidth
=
'50vw'
this
.
$refs
.
basePage
.
showDialog
=
true
},
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
},
...
...
@@ -125,7 +139,7 @@
},
components
:
{
mxDialog
}
}
...
...
src/views/ccgl/rkgl/sjrw/mxDialog.vue
0 → 100644
View file @
d165533c
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;"
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
:app=
"this"
class=
"editRow"
>
<EditColItem
:required=
"item.required||false"
:readonly=
"item.readonly?true:false "
v-for=
"(item,index) in editColItemList "
:value=
"item.value"
:span=
"item.span"
:label=
"item.label"
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
</div>
<div
slot=
"reFooter"
class=
"refooter"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"app.showDialog=false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"save()"
>
保 存
</el-button>
</span>
</div>
</DefaultDialog>
</
template
>
<
script
>
export
default
{
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
},
data
()
{
return
{
form
:
{
},
/* 常规edit数据 */
editColItemList
:
[
{
label
:
'库位'
,
prop
:
'kwid'
,
span
:
12
,
"required"
:
true
,
type
:
'AuxInput'
,
typeConfig
:
{
code
:
'KWWHK'
,
label
:
'kwName'
,
transform
:
{
value
:
'id'
,
label
:
'name'
},
queryParams
:{
ckid
:
this
.
app
.
$row
.
ckid
,
kqid
:
this
.
app
.
$row
.
kqid
}
},
}
],
}
}
,
methods
:
{
}
}
</
script
>
<
style
scoped
>
</
style
>
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