Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
0fe7df93
Commit
0fe7df93
authored
May 04, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
e18e7c60
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
5 deletions
+26
-5
iview-admin/src/view/components/tables/biztables.vue
+26
-5
No files found.
iview-admin/src/view/components/tables/biztables.vue
View file @
0fe7df93
...
@@ -61,13 +61,21 @@
...
@@ -61,13 +61,21 @@
</div>
</div>
<!-- <Button style="margin: 10px 0;" type="primary" @click="exportExcel">导出为Csv文件</Button> -->
<!-- <Button style="margin: 10px 0;" type="primary" @click="exportExcel">导出为Csv文件</Button> -->
<Drawer
<Drawer
ref=
"eddrawer"
placement=
"right"
placement=
"right"
:closable=
"false"
:closable=
"false"
:mask-closable=
"false"
:mask-closable=
"false"
v-model=
"showedform"
v-model=
"showedform"
width=
"70"
width=
"70"
:style=
"drawstyle"
@
on-visible-change=
"ondrawvisable"
>
<Forms
ref=
"edform"
:fminfo=
"forminfo"
style=
"height:100%"
:refvalidatemethod=
"refvalidatemethod"
>
>
<Forms
ref=
"edform"
:fminfo=
"forminfo"
style=
"height:100%"
:refvalidatemethod=
"refvalidatemethod"
>
<
template
v-slot:default=
"slotProps"
>
<
template
v-slot:default=
"slotProps"
>
<Button
<Button
v-for=
"bt in formbtns"
v-for=
"bt in formbtns"
...
@@ -112,6 +120,10 @@ export default {
...
@@ -112,6 +120,10 @@ export default {
Forms
Forms
},
},
props
:
{
props
:
{
initPropZIndex
:
{
type
:
Number
,
default
:
100
},
packageName
:
String
,
packageName
:
String
,
modelName
:
String
,
modelName
:
String
,
metaName
:
{
metaName
:
{
...
@@ -143,7 +155,7 @@ export default {
...
@@ -143,7 +155,7 @@ export default {
return
(
row
,
key
,
index
)
=>
row
[
key
];
return
(
row
,
key
,
index
)
=>
row
[
key
];
}
}
},
},
refvalidatemethod
:{
refvalidatemethod
:
{
type
:
Function
,
type
:
Function
,
default
()
{
default
()
{
return
(
rule
,
value
,
callback
)
=>
{
return
(
rule
,
value
,
callback
)
=>
{
...
@@ -179,10 +191,14 @@ export default {
...
@@ -179,10 +191,14 @@ export default {
sumdata
:
{},
sumdata
:
{},
avgdata
:
{},
avgdata
:
{},
clickcount
:
{
save
:
0
},
clickcount
:
{
save
:
0
},
isrowdel
:
true
isrowdel
:
true
,
initZIndex
:
this
.
initPropZIndex
};
};
},
},
methods
:
{
methods
:
{
ondrawvisable
(
v
)
{
this
.
initZIndex
=
this
.
initZIndex
+
10
;
},
setFormCtlVisable
(
prop
,
isShow
)
{
setFormCtlVisable
(
prop
,
isShow
)
{
this
.
$refs
.
edform
.
setCtlVisable
(
prop
,
isShow
);
this
.
$refs
.
edform
.
setCtlVisable
(
prop
,
isShow
);
},
},
...
@@ -323,8 +339,8 @@ export default {
...
@@ -323,8 +339,8 @@ export default {
}
else
{
}
else
{
this
.
$Message
.
warning
(
"当前进行了重复的无效操作."
);
this
.
$Message
.
warning
(
"当前进行了重复的无效操作."
);
}
}
}
else
{
}
else
{
console
.
log
(
"validate not pass......."
)
console
.
log
(
"validate not pass......."
)
;
}
}
});
});
}
}
...
@@ -394,6 +410,11 @@ export default {
...
@@ -394,6 +410,11 @@ export default {
},
},
created
()
{},
created
()
{},
computed
:
{
computed
:
{
drawstyle
()
{
return
{
"z-index"
:
this
.
initZIndex
};
},
searchinfo
()
{
searchinfo
()
{
return
this
.
metainfo
[
"search"
];
return
this
.
metainfo
[
"search"
];
},
},
...
...
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