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-manager-ui
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-manager-ui
Commits
99bf9250
Commit
99bf9250
authored
Nov 26, 2024
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:代码优化对备注2无法显示动态数组得问题做处理
parent
3c2ce6e6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
357 additions
and
348 deletions
+357
-348
src/views/dept/list.vue
src/views/dept/list.vue
+39
-37
src/views/perform/attend/appeal/list.vue
src/views/perform/attend/appeal/list.vue
+231
-231
src/views/perform/attend/record/list.vue
src/views/perform/attend/record/list.vue
+82
-79
src/views/staff/perform/summary/dialogshow.vue
src/views/staff/perform/summary/dialogshow.vue
+5
-1
No files found.
src/views/dept/list.vue
View file @
99bf9250
...
...
@@ -22,45 +22,9 @@ export default {
name
:
"
Dept
"
,
mixins
:
[
table
],
components
:
{
Treeselect
,
dialogShow
},
created
()
{},
methods
:
{
afterRender
(
data
)
{
data
.
data
=
handleTree
(
data
.
data
,
"
id
"
,
"
parentId
"
);
console
.
log
(
"
tree
"
,
data
.
data
);
this
.
deptOptions
=
data
.
data
;
this
.
$refs
.
layoutTable
.
showType
=
"
treetable
"
;
},
handleAdd
(
row
)
{
this
.
$refs
.
dialogform
.
add
(
row
,
this
.
deptOptions
);
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
dialogform
.
add
(
row
,
this
.
deptOptions
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
this
.
loading
=
true
;
this
.
$post
(
this
.
pageInfo
.
exclude
,
{
id
:
row
.
id
})
.
then
((
res
)
=>
{
if
(
res
&&
res
.
code
&&
res
.
code
==
1
)
{
this
.
deptOptions
=
handleTree
(
res
.
data
.
result
);
this
.
$refs
.
dialogform
.
edit
(
row
,
this
.
deptOptions
);
this
.
loading
=
false
;
}
})
.
catch
((
error
)
=>
{
this
.
$message
.
error
(
error
.
message
);
});
},
/** 重写查看方法 */
toView
(
row
)
{
this
.
$refs
.
dialogform
.
view
(
row
,
this
.
deptOptions
);
},
},
data
()
{
return
{
// 表格配置项
config
:
{
/** 树表是否默认展开 */
expand
:
true
,
...
...
@@ -107,6 +71,44 @@ export default {
},
};
},
created
()
{},
methods
:
{
// 获取数据后处理
afterRender
(
data
)
{
data
.
data
=
handleTree
(
data
.
data
,
"
id
"
,
"
parentId
"
);
console
.
log
(
"
tree
"
,
data
.
data
);
this
.
deptOptions
=
data
.
data
;
this
.
$refs
.
layoutTable
.
showType
=
"
treetable
"
;
},
// 新增操作
handleAdd
(
row
)
{
this
.
$refs
.
dialogform
.
add
(
row
,
this
.
deptOptions
);
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
dialogform
.
add
(
row
,
this
.
deptOptions
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
this
.
loading
=
true
;
this
.
$post
(
this
.
pageInfo
.
exclude
,
{
id
:
row
.
id
})
.
then
((
res
)
=>
{
if
(
res
&&
res
.
code
&&
res
.
code
==
1
)
{
this
.
deptOptions
=
handleTree
(
res
.
data
.
result
);
this
.
$refs
.
dialogform
.
edit
(
row
,
this
.
deptOptions
);
this
.
loading
=
false
;
}
})
.
catch
((
error
)
=>
{
this
.
$message
.
error
(
error
.
message
);
});
},
/** 重写查看方法 */
toView
(
row
)
{
this
.
$refs
.
dialogform
.
view
(
row
,
this
.
deptOptions
);
},
},
};
</
script
>
<
style
lang=
"scss"
>
...
...
src/views/perform/attend/appeal/list.vue
View file @
99bf9250
...
...
@@ -91,33 +91,65 @@ export default {
BarCharts
,
},
mixins
:
[
table
],
created
()
{
this
.
getData
();
data
()
{
return
{
depChartsData
:
[],
personChartsData
:
[],
ruleChartsData
:
[],
/** 子表列元素 */
columnSet
:
[
{
label
:
"
申诉Id
"
,
prop
:
"
appealId
"
,
formatter
:
this
.
formatter
},
{
label
:
"
文件名称
"
,
prop
:
"
fileName
"
},
{
label
:
"
文件地址
"
,
prop
:
"
filePath
"
},
],
config
:
{
isshowTabPane
:
false
,
search
:
[
{
name
:
"
checkStatus
"
,
type
:
"
select
"
,
label
:
"
核查情况
"
,
fuzzy
:
false
,
},
methods
:
{
handleCellClick
(
row
,
column
,
event
,
cell
)
{
if
(
column
.
label
==
"
图片凭证
"
)
{
const
suffix
=
`(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`
;
const
regular
=
new
RegExp
(
`.*\.
${
suffix
}
`
);
regular
.
test
(
row
.
filePaths
);
if
(
!
regular
.
test
(
row
.
filePaths
))
{
downloadFile
(
row
.
filePaths
,
row
.
fileName
);
}
}
{
name
:
"
irregularOtherType
"
,
type
:
"
select
"
,
label
:
"
全部类型
"
,
fuzzy
:
false
,
},
handleClick
()
{
this
.
query
.
page
=
1
;
this
.
query
.
size
=
10
;
console
.
log
(
this
.
tableConfig
);
this
.
activeName
==
1
?
""
:
(
this
.
tableConfig
.
columns
=
[
{
name
:
"
salaId
"
,
type
:
"
selectSalaId
"
,
label
:
"
大厅
"
,
fuzzy
:
false
,
},
{
name
:
"
deptId
"
,
type
:
"
selectDeptId
"
,
label
:
"
部门
"
,
fuzzy
:
false
,
},
{
name
:
"
yearmonth
"
,
type
:
"
month
"
,
label
:
"
请选择申诉时间
"
,
fuzzy
:
false
,
},
{
name
:
"
staffName
"
,
type
:
"
text
"
,
label
:
"
员工姓名搜索
"
,
fuzzy
:
true
,
},
],
columns
:
[
{
type
:
"
selection
"
,
width
:
60
},
{
type
:
"
index
"
,
label
:
"
序号
"
,
width
:
50
},
{
label
:
"
窗口首席代表
"
,
prop
:
"
appealPerson
"
,
formatter
:
this
.
formatter
,
},
{
label
:
"
姓名
"
,
prop
:
"
staffName
"
,
formatter
:
this
.
formatter
},
{
...
...
@@ -172,16 +204,16 @@ export default {
prop
:
"
appealPerson
"
,
formatter
:
this
.
formatter
,
},
{
label
:
"
处理时间
"
,
prop
:
"
processTime
"
,
formatter
:
this
.
formatterDate
,
},
{
label
:
"
处理人员
"
,
prop
:
"
processPerson
"
,
formatter
:
this
.
formatter
,
},
//
{
//
label: "处理时间",
//
prop: "processTime",
//
formatter: this.formatterDate,
//
},
//
{
//
label: "处理人员",
//
prop: "processPerson",
//
formatter: this.formatter,
//
},
{
label
:
"
是否核查
"
,
prop
:
"
checkStatus
"
,
...
...
@@ -236,151 +268,89 @@ export default {
);
},
},
]);
this
.
getData
();
},
getData
()
{
let
obj
=
{
processStatus
:
this
.
activeName
==
1
?
"
1
"
:
"
2
"
,
page
:
this
.
query
.
page
,
size
:
this
.
query
.
size
,
appealTimeStart
:
this
.
query
.
yearmonth
?
this
.
query
.
yearmonth
+
"
-01
"
:
""
,
appealTimeEnd
:
this
.
query
.
yearmonth
?
this
.
query
.
yearmonth
+
"
-31
"
:
""
,
staffName
:
this
.
query
.
staffName
,
salaId
:
this
.
query
.
salaId
,
deptId
:
this
.
query
.
deptId
,
checkStatus
:
this
.
query
.
checkStatus
,
irregularOtherType
:
this
.
query
.
irregularOtherType
,
};
this
.
activeName
==
2
?
(
obj
.
appealResult
=
1
)
:
this
.
activeName
==
3
?
(
obj
.
appealResult
=
2
)
:
""
;
this
.
activeName
==
1
||
this
.
activeName
==
2
||
this
.
activeName
==
3
?
this
.
$post
(
"
/perform/attend/appeal/list
"
,
obj
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
tableData
=
res
.
data
;
this
.
dict
=
res
.
dict
;
}
})
:
this
.
getChartsData
();
},
getChartsData
()
{
this
.
$post
(
"
/perform/attend/appeal/stat
"
,
{
appealTimeStart
:
this
.
dateValue
,
statType
:
1
,
}).
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
depChartsData
=
res
.
data
;
});
this
.
$post
(
"
/perform/attend/appeal/stat
"
,
{
appealTimeStart
:
this
.
dateValue
,
statType
:
2
,
}).
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
personChartsData
=
res
.
data
;
});
this
.
$post
(
"
/perform/attend/appeal/stat
"
,
{
appealTimeStart
:
this
.
dateValue
,
statType
:
3
,
}).
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
ruleChartsData
=
res
.
data
;
});
],
},
renderTable
(
tableData
)
{
return
(
<
el
-
table
stripe
data
=
{
tableData
}
class
=
"
total-table
"
>
{
this
.
columnSet
.
map
((
item
)
=>
this
.
renderTableColumn
(
item
))}
<
/el-table
>
);
activeName
:
"
1
"
,
optionsMonths
:
[
{
value
:
"
2024-01-01 00:00:00
"
,
label
:
"
1月
"
,
},
renderTableColumn
(
options
)
{
return
(
<
el
-
table
-
column
prop
=
{
options
.
prop
}
label
=
{
options
.
label
}
width
=
{
options
.
width
}
formatter
=
{
options
.
formatter
}
><
/el-table-column
>
);
{
value
:
"
2024-02-01 00:00:00
"
,
label
:
"
2月
"
,
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
drawerform
.
add
(
row
);
{
value
:
"
2024-03-01 00:00:00
"
,
label
:
"
3月
"
,
},
/** 重写编辑方法 */
toEdit
(
row
)
{
this
.
$refs
.
drawerform
.
edit
(
row
);
{
value
:
"
2024-04-01 00:00:00
"
,
label
:
"
4月
"
,
},
/** 重写查看方法 */
toView
(
row
)
{
this
.
$refs
.
drawerform
.
view
(
row
);
{
value
:
"
2024-05-01 00:00:00
"
,
label
:
"
5月
"
,
},
{
value
:
"
2024-06-01 00:00:00
"
,
label
:
"
6月
"
,
},
data
()
{
return
{
depChartsData
:
[],
personChartsData
:
[],
ruleChartsData
:
[],
/** 子表列元素 */
columnSet
:
[
{
label
:
"
申诉Id
"
,
prop
:
"
appealId
"
,
formatter
:
this
.
formatter
},
{
label
:
"
文件名称
"
,
prop
:
"
fileName
"
},
{
label
:
"
文件地址
"
,
prop
:
"
filePath
"
},
],
config
:
{
isshowTabPane
:
false
,
search
:
[
{
name
:
"
checkStatus
"
,
type
:
"
select
"
,
label
:
"
核查情况
"
,
fuzzy
:
false
,
value
:
"
2024-07-01 00:00:00
"
,
label
:
"
7月
"
,
},
{
name
:
"
irregularOtherType
"
,
type
:
"
select
"
,
label
:
"
全部类型
"
,
fuzzy
:
false
,
value
:
"
2024-08-01 00:00:00
"
,
label
:
"
8月
"
,
},
{
name
:
"
salaId
"
,
type
:
"
selectSalaId
"
,
label
:
"
大厅
"
,
fuzzy
:
false
,
value
:
"
2024-09-01 00:00:00
"
,
label
:
"
9月
"
,
},
{
name
:
"
deptId
"
,
type
:
"
selectDeptId
"
,
label
:
"
部门
"
,
fuzzy
:
false
,
value
:
"
2024-10-01 00:00:00
"
,
label
:
"
10月
"
,
},
{
name
:
"
yearmonth
"
,
type
:
"
month
"
,
label
:
"
请选择申诉时间
"
,
fuzzy
:
false
,
value
:
"
2024-11-01 00:00:00
"
,
label
:
"
11月
"
,
},
{
name
:
"
staffName
"
,
type
:
"
text
"
,
label
:
"
员工姓名搜索
"
,
fuzzy
:
true
,
value
:
"
2024-12-01 00:00:00
"
,
label
:
"
12月
"
,
},
],
columns
:
[
dateValue
:
"
2024-03-01 00:00:00
"
,
};
},
created
()
{
this
.
getData
();
},
methods
:
{
handleCellClick
(
row
,
column
,
event
,
cell
)
{
if
(
column
.
label
==
"
图片凭证
"
)
{
const
suffix
=
`(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`
;
const
regular
=
new
RegExp
(
`.*\.
${
suffix
}
`
);
regular
.
test
(
row
.
filePaths
);
if
(
!
regular
.
test
(
row
.
filePaths
))
{
downloadFile
(
row
.
filePaths
,
row
.
fileName
);
}
}
},
handleClick
()
{
this
.
query
.
page
=
1
;
this
.
query
.
size
=
10
;
console
.
log
(
this
.
tableConfig
);
this
.
activeName
==
1
?
""
:
(
this
.
tableConfig
.
columns
=
[
{
type
:
"
selection
"
,
width
:
60
},
{
type
:
"
index
"
,
label
:
"
序号
"
,
width
:
50
},
{
label
:
"
窗口首席代表
"
,
prop
:
"
appealPerson
"
,
formatter
:
this
.
formatter
,
},
{
label
:
"
姓名
"
,
prop
:
"
staffName
"
,
formatter
:
this
.
formatter
},
{
...
...
@@ -435,16 +405,16 @@ export default {
prop
:
"
appealPerson
"
,
formatter
:
this
.
formatter
,
},
//
{
//
label: "处理时间",
//
prop: "processTime",
//
formatter: this.formatterDate,
//
},
//
{
//
label: "处理人员",
//
prop: "processPerson",
//
formatter: this.formatter,
//
},
{
label
:
"
处理时间
"
,
prop
:
"
processTime
"
,
formatter
:
this
.
formatterDate
,
},
{
label
:
"
处理人员
"
,
prop
:
"
processPerson
"
,
formatter
:
this
.
formatter
,
},
{
label
:
"
是否核查
"
,
prop
:
"
checkStatus
"
,
...
...
@@ -499,61 +469,91 @@ export default {
);
},
},
],
},
activeName
:
"
1
"
,
optionsMonths
:
[
{
value
:
"
2024-01-01 00:00:00
"
,
label
:
"
1月
"
,
},
{
value
:
"
2024-02-01 00:00:00
"
,
label
:
"
2月
"
,
},
{
value
:
"
2024-03-01 00:00:00
"
,
label
:
"
3月
"
,
},
{
value
:
"
2024-04-01 00:00:00
"
,
label
:
"
4月
"
,
},
{
value
:
"
2024-05-01 00:00:00
"
,
label
:
"
5月
"
,
]);
this
.
getData
();
},
{
value
:
"
2024-06-01 00:00:00
"
,
label
:
"
6月
"
,
getData
()
{
let
obj
=
{
processStatus
:
this
.
activeName
==
1
?
"
1
"
:
"
2
"
,
page
:
this
.
query
.
page
,
size
:
this
.
query
.
size
,
appealTimeStart
:
this
.
query
.
yearmonth
?
this
.
query
.
yearmonth
+
"
-01
"
:
""
,
appealTimeEnd
:
this
.
query
.
yearmonth
?
this
.
query
.
yearmonth
+
"
-31
"
:
""
,
staffName
:
this
.
query
.
staffName
,
salaId
:
this
.
query
.
salaId
,
deptId
:
this
.
query
.
deptId
,
checkStatus
:
this
.
query
.
checkStatus
,
irregularOtherType
:
this
.
query
.
irregularOtherType
,
};
this
.
activeName
==
2
?
(
obj
.
appealResult
=
1
)
:
this
.
activeName
==
3
?
(
obj
.
appealResult
=
2
)
:
""
;
this
.
activeName
==
1
||
this
.
activeName
==
2
||
this
.
activeName
==
3
?
this
.
$post
(
"
/perform/attend/appeal/list
"
,
obj
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
tableData
=
res
.
data
;
this
.
dict
=
res
.
dict
;
}
})
:
this
.
getChartsData
();
},
{
value
:
"
2024-07-01 00:00:00
"
,
label
:
"
7月
"
,
getChartsData
()
{
this
.
$post
(
"
/perform/attend/appeal/stat
"
,
{
appealTimeStart
:
this
.
dateValue
,
statType
:
1
,
}).
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
depChartsData
=
res
.
data
;
});
this
.
$post
(
"
/perform/attend/appeal/stat
"
,
{
appealTimeStart
:
this
.
dateValue
,
statType
:
2
,
}).
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
personChartsData
=
res
.
data
;
});
this
.
$post
(
"
/perform/attend/appeal/stat
"
,
{
appealTimeStart
:
this
.
dateValue
,
statType
:
3
,
}).
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
ruleChartsData
=
res
.
data
;
});
},
{
value
:
"
2024-08-01 00:00:00
"
,
label
:
"
8月
"
,
renderTable
(
tableData
)
{
return
(
<
el
-
table
stripe
data
=
{
tableData
}
class
=
"
total-table
"
>
{
this
.
columnSet
.
map
((
item
)
=>
this
.
renderTableColumn
(
item
))}
<
/el-table
>
);
},
{
value
:
"
2024-09-01 00:00:00
"
,
label
:
"
9月
"
,
renderTableColumn
(
options
)
{
return
(
<
el
-
table
-
column
prop
=
{
options
.
prop
}
label
=
{
options
.
label
}
width
=
{
options
.
width
}
formatter
=
{
options
.
formatter
}
><
/el-table-column
>
);
},
{
value
:
"
2024-10-01 00:00:00
"
,
label
:
"
10月
"
,
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
drawerform
.
add
(
row
);
},
{
value
:
"
2024-11-01 00:00:00
"
,
label
:
"
11月
"
,
/** 重写编辑方法 */
toEdit
(
row
)
{
this
.
$refs
.
drawerform
.
edit
(
row
);
},
{
value
:
"
2024-12-01 00:00:00
"
,
label
:
"
12月
"
,
/** 重写查看方法 */
toView
(
row
)
{
this
.
$refs
.
drawerform
.
view
(
row
);
},
],
dateValue
:
"
2024-03-01 00:00:00
"
,
};
},
};
</
script
>
...
...
src/views/perform/attend/record/list.vue
View file @
99bf9250
...
...
@@ -79,85 +79,6 @@ export default {
drawerShow
,
},
mixins
:
[
table
],
created
()
{},
methods
:
{
handleCellClick
(
row
,
column
,
event
,
cell
)
{
if
(
column
.
label
==
"
图片凭证
"
)
{
const
suffix
=
`(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`
;
const
regular
=
new
RegExp
(
`.*\.
${
suffix
}
`
);
regular
.
test
(
row
.
filePaths
);
if
(
!
regular
.
test
(
row
.
filePaths
))
{
downloadFile
(
row
.
filePaths
,
row
.
fileName
);
}
}
},
/** 导入 */
handleImport
()
{
this
.
upload
.
title
=
"
考勤绩效记录信息导入
"
;
this
.
upload
.
open
=
true
;
},
/** 下载模板操作 */
downloadTemplate
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/perform/attend/record/downloadTemplate
"
,
{},
{
type
:
"
excel
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 文件上传中处理 */
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
this
.
upload
.
isUploading
=
true
;
},
/** 文件上传成功处理 */
handleFileSuccess
(
response
,
file
,
fileList
)
{
this
.
upload
.
open
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
$refs
.
upload
.
clearFiles
();
this
.
$alert
(
response
.
msg
,
"
导入结果
"
,
{
dangerouslyUseHTMLString
:
true
});
this
.
getData
();
},
/** 提交上传文件 */
submitFileForm
()
{
this
.
$refs
.
upload
.
submit
();
},
/** 导出Excel */
doExport
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/perform/attend/record/exportExcel
"
,
{
page
:
1
,
size
:
-
1
,
},
{
type
:
"
excel
"
,
name
:
"
考勤绩效管理
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
drawerform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
row
.
view
=
"
核查
"
;
this
.
$refs
.
drawerform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
row
.
view
=
"
查看
"
;
this
.
$refs
.
drawerform
.
view
(
row
);
},
},
data
()
{
return
{
// 用户导入参数
...
...
@@ -173,7 +94,9 @@ export default {
// 上传的地址
url
:
"
/attendance/perform/attend/record/importData
"
,
},
// 导出按钮加载状态
isExport
:
false
,
// 表格配置项
config
:
{
isshowTabPane
:
true
,
search
:
[
...
...
@@ -319,5 +242,85 @@ export default {
},
};
},
created
()
{},
methods
:
{
// 图片凭证点击操作
handleCellClick
(
row
,
column
,
event
,
cell
)
{
if
(
column
.
label
==
"
图片凭证
"
)
{
const
suffix
=
`(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`
;
const
regular
=
new
RegExp
(
`.*\.
${
suffix
}
`
);
regular
.
test
(
row
.
filePaths
);
if
(
!
regular
.
test
(
row
.
filePaths
))
{
downloadFile
(
row
.
filePaths
,
row
.
fileName
);
}
}
},
/** 导入 */
handleImport
()
{
this
.
upload
.
title
=
"
考勤绩效记录信息导入
"
;
this
.
upload
.
open
=
true
;
},
/** 下载模板操作 */
downloadTemplate
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/perform/attend/record/downloadTemplate
"
,
{},
{
type
:
"
excel
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 文件上传中处理 */
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
this
.
upload
.
isUploading
=
true
;
},
/** 文件上传成功处理 */
handleFileSuccess
(
response
,
file
,
fileList
)
{
this
.
upload
.
open
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
$refs
.
upload
.
clearFiles
();
this
.
$alert
(
response
.
msg
,
"
导入结果
"
,
{
dangerouslyUseHTMLString
:
true
});
this
.
getData
();
},
/** 提交上传文件 */
submitFileForm
()
{
this
.
$refs
.
upload
.
submit
();
},
/** 导出Excel */
doExport
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/perform/attend/record/exportExcel
"
,
{
page
:
1
,
size
:
-
1
,
},
{
type
:
"
excel
"
,
name
:
"
考勤绩效管理
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
drawerform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
row
.
view
=
"
核查
"
;
this
.
$refs
.
drawerform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
row
.
view
=
"
查看
"
;
this
.
$refs
.
drawerform
.
view
(
row
);
},
},
};
</
script
>
src/views/staff/perform/summary/dialogshow.vue
View file @
99bf9250
...
...
@@ -327,7 +327,11 @@ export default {
v
.
value
=
v
.
name
+
"
--
"
+
v
.
content
;
})
:
""
;
if
(
!
this
.
form
.
remarkAdd
||
this
.
form
.
remarkAdd
.
length
==
0
)
{
if
(
!
this
.
form
.
remarkAdd
||
this
.
form
.
remarkAdd
.
length
==
0
||
this
.
form
.
remarkAdd
!=
""
)
{
this
.
form
.
remarkAdd
=
[];
this
.
form
.
remarkAdd
.
push
({
name
:
""
,
...
...
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