Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
96c0b428
Commit
96c0b428
authored
Feb 04, 2024
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推表格适配
parent
663e32af
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
17 deletions
+23
-17
attendance-performance-manager-ui/admin/src/components/DataTable.vue
...performance-manager-ui/admin/src/components/DataTable.vue
+16
-13
attendance-performance-manager-ui/admin/src/components/Table.vue
...nce-performance-manager-ui/admin/src/components/Table.vue
+2
-1
attendance-performance-manager-ui/admin/src/views/perform/staff/conf/deptdrawershow.vue
...-ui/admin/src/views/perform/staff/conf/deptdrawershow.vue
+2
-2
attendance-performance-manager-ui/admin/src/views/perform/staff/conf/windowdrawershow.vue
...i/admin/src/views/perform/staff/conf/windowdrawershow.vue
+3
-1
No files found.
attendance-performance-manager-ui/admin/src/components/DataTable.vue
View file @
96c0b428
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
:row-class-name=
"tableRowClassName"
:row-class-name=
"tableRowClassName"
:empty-text=
"emptytxt ? emptytxt : emptyText"
:empty-text=
"emptytxt ? emptytxt : emptyText"
border
border
:height=
"height"
style=
"width: 100%"
style=
"width: 100%"
>
>
<el-table-column
<el-table-column
...
@@ -50,9 +51,9 @@
...
@@ -50,9 +51,9 @@
<
script
>
<
script
>
export
default
{
export
default
{
props
:
{
props
:
{
toggleRowSelection
:{
toggleRowSelection
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[],
},
},
handleRowKeyMethod
:
{
handleRowKeyMethod
:
{
type
:
Function
,
type
:
Function
,
...
@@ -116,15 +117,17 @@ export default {
...
@@ -116,15 +117,17 @@ export default {
required
:
false
,
required
:
false
,
default
:
()
=>
[],
default
:
()
=>
[],
},
},
height
:
{
type
:
String
,
required
:
false
,
},
},
},
computed
:
{
computed
:
{
emptyText
()
{
emptyText
()
{
return
!
this
.
loading
&&
!
this
.
tableData
.
length
?
"
暂无数据
"
:
"
加载中...
"
;
return
!
this
.
loading
&&
!
this
.
tableData
.
length
?
"
暂无数据
"
:
"
加载中...
"
;
},
},
},
},
created
(){
created
()
{},
},
watch
:
{
watch
:
{
tableData
(
val
)
{
tableData
(
val
)
{
val
.
length
==
0
||
val
.
length
>
0
val
.
length
==
0
||
val
.
length
>
0
...
@@ -140,15 +143,15 @@ export default {
...
@@ -140,15 +143,15 @@ export default {
// console.log(val);
// console.log(val);
// }
// }
},
},
toggleRowSelection
:{
toggleRowSelection
:
{
handler
:
function
(
v
)
{
handler
:
function
(
v
)
{
v
.
forEach
(
element
=>
{
v
.
forEach
(
(
element
)
=>
{
this
.
$refs
.
eltable
.
toggleRowSelection
(
element
,
true
)
this
.
$refs
.
eltable
.
toggleRowSelection
(
element
,
true
);
});
});
},
},
deep
:
true
,
deep
:
true
,
immediate
:
true
immediate
:
true
,
}
}
,
},
},
methods
:
{},
methods
:
{},
data
()
{
data
()
{
...
...
attendance-performance-manager-ui/admin/src/components/Table.vue
View file @
96c0b428
...
@@ -178,6 +178,7 @@
...
@@ -178,6 +178,7 @@
:tableData=
"data.data"
:tableData=
"data.data"
:columns=
"config.columns"
:columns=
"config.columns"
:loading=
"data.loading"
:loading=
"data.loading"
:height=
"config.height"
:tableRowClassName=
"config.methods.tableRowClassName"
:tableRowClassName=
"config.methods.tableRowClassName"
:handleSpanMethod=
"config.methods.handleSpanMethod"
:handleSpanMethod=
"config.methods.handleSpanMethod"
:handleSortChange=
"config.methods.handleSortChange"
:handleSortChange=
"config.methods.handleSortChange"
...
@@ -256,7 +257,7 @@ import DataTreeTable from "@/components/DataTreeTable.vue";
...
@@ -256,7 +257,7 @@ import DataTreeTable from "@/components/DataTreeTable.vue";
import
TabPane
from
"
@/components/tabPane.vue
"
;
import
TabPane
from
"
@/components/tabPane.vue
"
;
export
default
{
export
default
{
props
:
{
props
:
{
toggleRowSelection
:{
toggleRowSelection
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[],
default
:
()
=>
[],
},
},
...
...
attendance-performance-manager-ui/admin/src/views/perform/staff/conf/deptdrawershow.vue
View file @
96c0b428
...
@@ -351,6 +351,7 @@ export default {
...
@@ -351,6 +351,7 @@ export default {
saveUrl
:
"
/perform/dept/conf/save
"
,
saveUrl
:
"
/perform/dept/conf/save
"
,
},
},
config
:
{
config
:
{
height
:
"
580
"
,
isshowTabPane
:
false
,
isshowTabPane
:
false
,
search
:
[],
search
:
[],
columns
:
[
columns
:
[
...
@@ -381,7 +382,6 @@ export default {
...
@@ -381,7 +382,6 @@ export default {
};
};
},
},
methods
:
{
methods
:
{
handleRowClick
(
val
)
{
handleRowClick
(
val
)
{
val
.
check
=
!
val
.
check
;
val
.
check
=
!
val
.
check
;
val
.
check
val
.
check
...
@@ -567,7 +567,7 @@ export default {
...
@@ -567,7 +567,7 @@ export default {
}
}
.content {
.content {
width: 100%;
width: 100%;
height:auto;
height:
auto;
border: 1px solid #e4e7ed;
border: 1px solid #e4e7ed;
border-top: 0;
border-top: 0;
padding: 20px;
padding: 20px;
...
...
attendance-performance-manager-ui/admin/src/views/perform/staff/conf/windowdrawershow.vue
View file @
96c0b428
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<Field
<Field
label=
"联系电话:"
label=
"联系电话:"
prop=
"phone"
prop=
"phone"
maxLength=
"11"
:
maxLength=
"11"
v-model=
"form.phone"
v-model=
"form.phone"
placeholder=
"请输入联系电话"
placeholder=
"请输入联系电话"
/>
/>
...
@@ -148,6 +148,7 @@ export default {
...
@@ -148,6 +148,7 @@ export default {
this
.
deptArr
=
[];
this
.
deptArr
=
[];
}
}
});
});
console
.
log
(
this
.
tableConfig
);
// this.getData();
// this.getData();
},
},
data
()
{
data
()
{
...
@@ -173,6 +174,7 @@ export default {
...
@@ -173,6 +174,7 @@ export default {
config
:
{
config
:
{
isshowTabPane
:
false
,
isshowTabPane
:
false
,
search
:
[],
search
:
[],
height
:
"
550
"
,
columns
:
[
columns
:
[
{
type
:
"
index
"
,
label
:
"
序号
"
,
width
:
50
},
{
type
:
"
index
"
,
label
:
"
序号
"
,
width
:
50
},
...
...
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