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
99cd7b56
Commit
99cd7b56
authored
May 08, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
38a54565
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
6 deletions
+25
-6
iview-admin/src/components/tables/tables.vue
+13
-2
iview-admin/src/config/index.js
+1
-1
iview-admin/src/router/routers.js
+3
-0
iview-admin/src/view/components/tables/biztables.vue
+1
-1
iview-admin/src/view/components/tables/forms/forms.vue
+7
-2
No files found.
iview-admin/src/components/tables/tables.vue
View file @
99cd7b56
...
...
@@ -35,7 +35,7 @@
:border=
"border"
:show-header=
"showHeader"
:width=
"width"
:height=
"height"
:height=
"
tbl
height"
:loading=
"loading"
:disabled-hover=
"disabledHover"
:highlight-row=
"highlightRow"
...
...
@@ -188,10 +188,14 @@ export default {
edittingCellId
:
""
,
edittingText
:
""
,
searchValue
:
""
,
searchKey
:
""
searchKey
:
""
,
tblheight
:
300
};
},
methods
:
{
getHeight
(){
return
window
.
innerHeight
-
this
.
$refs
.
tablesMain
.
$el
.
offsetTop
-
160
},
advSearch
()
{
this
.
$emit
(
"on-adv-search"
);
},
...
...
@@ -386,10 +390,17 @@ export default {
//if (this.searchable) this.handleSearch();
}
},
create
(){
},
mounted
()
{
this
.
handleColumns
(
this
.
columns
);
this
.
setDefaultSearchKey
();
this
.
handleTableData
();
this
.
tblheight
=
this
.
getHeight
()
$
(
window
).
resize
(()
=>
{
this
.
tblheight
=
this
.
getHeight
()
})
},
computed
:
{
searchcols
:
function
()
{
...
...
iview-admin/src/config/index.js
View file @
99cd7b56
...
...
@@ -3,7 +3,7 @@ export default {
* @description 配置显示在浏览器标签的title
*/
title
:
'智慧中台 '
,
appkey
:
'
3dd193ff-9a39-4d96-87ef-f7af75c49fb3
'
,
appkey
:
'
cbb91171-3c68-49f9-b27f-fa38daa376ee
'
,
/**
* @description token在Cookie中存储的天数,默认1天
*/
...
...
iview-admin/src/router/routers.js
View file @
99cd7b56
...
...
@@ -604,3 +604,6 @@ export default [
component
:
()
=>
import
(
'@/view/error-page/404.vue'
)
}
]
iview-admin/src/view/components/tables/biztables.vue
View file @
99cd7b56
...
...
@@ -68,7 +68,7 @@
v-model=
"showedform"
width=
"70"
@
on-visible-change=
"ondrawvisable"
style=
"paading-bottom:200px"
>
<Forms
ref=
"edform"
...
...
iview-admin/src/view/components/tables/forms/forms.vue
View file @
99cd7b56
<
template
>
<div>
<Card
style=
"height:100%;
padding-bottom:60px;border-radius:0px"
>
<Card
ref=
"formcard"
style=
"
padding-bottom:60px;border-radius:0px"
>
<p
slot=
"title"
>
<Icon
type=
"ios-paper-outline"
/>
{{
forminfo
.
name
}}
...
...
@@ -101,6 +101,7 @@
type=
"textarea"
:placeholder=
"ctl.placeHolder"
:style=
"ctl.style"
:autosize=
"
{minRows:20,maxRows:50}"
/>
</
template
>
</FormItem>
...
...
@@ -380,7 +381,11 @@ export default {
created
()
{
this
.
initFormModel
();
},
mounted
()
{}
mounted
()
{
$
(
window
).
resize
(()
=>
{
// this.$refs.formcard.
})
}
};
</
script
>
...
...
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