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
cf277f7b
Commit
cf277f7b
authored
Mar 01, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自定义EDIT页面
parent
ef782674
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
9 deletions
+21
-9
index.vue
src/views/ccgl/ckgl/ckd/top/index.vue
+9
-1
edit.vue
src/views/ccgl/kngl/tpck/top/edit.vue
+2
-2
index.vue
src/views/ccgl/kngl/tpck/top/index.vue
+10
-6
No files found.
src/views/ccgl/ckgl/ckd/top/index.vue
View file @
cf277f7b
<
template
>
<
template
>
<BasePage
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<BasePage
@
beforeEdit=
'beforeEdit'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Tbwl
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog"
/>
<Tbwl
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog"
/>
...
@@ -175,6 +175,14 @@
...
@@ -175,6 +175,14 @@
},
},
methods
:
{
methods
:
{
beforeEdit
(
val
){
let
{
row
,
edit
}
=
val
if
(
row
.
djly
==
'KC'
){
edit
.
otherEdit
=
Akck
}
else
{
edit
.
otherEdit
=
false
}
},
akck
(
ctx
){
akck
(
ctx
){
ctx
.
showAdd
=
true
ctx
.
showAdd
=
true
},
},
...
...
src/views/ccgl/kngl/tpck/top/edit.vue
View file @
cf277f7b
<
template
>
<
template
>
<RelDialog
bigTitle
detailTable=
'CKTZ
MX
'
@
getForm=
'getForm'
@
getFormDetail=
'getFormDetail'
width=
"70%"
:type=
'type'
:editApp=
'editApp'
<RelDialog
bigTitle
detailTable=
'CKTZ
QD
'
@
getForm=
'getForm'
@
getFormDetail=
'getFormDetail'
width=
"70%"
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
:app=
'app'
:buttonApp=
'buttonApp'
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
:app=
"this"
class=
"editRow"
>
<el-row
:gutter=
"20"
:app=
"this"
class=
"editRow"
>
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
mixins
:
[
editMixin
,
editMixin_expand
],
mixins
:
[
editMixin
,
editMixin_expand
],
methods
:
{
methods
:
{
getForm
(
val
){
getForm
(
val
){
val
.
djly
=
'
M
'
val
.
djly
=
'
KC
'
},
},
/* 需要整体row时的回调 */
/* 需要整体row时的回调 */
computedRow
(
row
)
{
computedRow
(
row
)
{
...
...
src/views/ccgl/kngl/tpck/top/index.vue
View file @
cf277f7b
<
template
>
<
template
>
<BasePage
:power=
'power'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<BasePage
@
beforeEdit=
'beforeEdit'
:power=
'power'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Tbwl
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog"
/>
<Tbwl
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog"
/>
...
@@ -30,13 +30,13 @@
...
@@ -30,13 +30,13 @@
power
:
{
power
:
{
add
:
false
,
add
:
false
,
copy
:
false
,
copy
:
false
,
delButton
:
fals
e
,
delButton
:
tru
e
,
editButton
:
fals
e
,
editButton
:
tru
e
,
operateButtons
:
fals
e
,
operateButtons
:
tru
e
,
workFlow
:
false
,
workFlow
:
false
,
/* 表格 */
/* 表格 */
showSelection
:
tru
e
,
showSelection
:
fals
e
,
saveSelected
:
tru
e
saveSelected
:
fals
e
},
},
config
:
{
config
:
{
queryDetail
:
true
,
queryDetail
:
true
,
...
@@ -177,6 +177,10 @@
...
@@ -177,6 +177,10 @@
},
},
methods
:
{
methods
:
{
beforeEdit
(
val
){
let
{
row
,
edit
}
=
val
edit
.
otherEdit
=
Akck
},
akck
(
ctx
){
akck
(
ctx
){
ctx
.
showAdd
=
true
ctx
.
showAdd
=
true
},
},
...
...
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