|
@@ -277,7 +277,14 @@ export default {
|
|
|
],
|
|
|
[
|
|
|
this.optionsEvensAuth(
|
|
|
- ['import4', 'importTemplate', 'downloadImportTemplate', 'importTemplate2', 'downloadImportTemplate2'],
|
|
|
+ [
|
|
|
+ 'import4',
|
|
|
+ 'importTemplate',
|
|
|
+ 'downloadImportTemplate',
|
|
|
+ 'downloadImportTemplate4',
|
|
|
+ 'importTemplate2',
|
|
|
+ 'downloadImportTemplate2'
|
|
|
+ ],
|
|
|
{
|
|
|
name: '导入工单',
|
|
|
click: () => {}
|
|
@@ -291,6 +298,20 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}),
|
|
|
+ this.optionsEvensAuth('downloadImportTemplate4', {
|
|
|
+ click: () => {
|
|
|
+ commonTemplateDownload({ name: '4.0工单导入模板.xlsx' }, `4.0工单导入模板`)
|
|
|
+ .then(res => {
|
|
|
+ this.$message({
|
|
|
+ message: '下载成功',
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ this.$message.error('下载失败')
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }),
|
|
|
this.optionsEvensAuth('importTemplate', ({ moduleName }) => {
|
|
|
return {
|
|
|
name: moduleName,
|
|
@@ -301,7 +322,7 @@ export default {
|
|
|
}),
|
|
|
this.optionsEvensAuth('downloadImportTemplate', {
|
|
|
click: () => {
|
|
|
- commonTemplateDownload({ name: '工单导入模板.xlsx' }, `${this.$route.meta.title}`)
|
|
|
+ commonTemplateDownload({ name: '工单导入模板.xlsx' }, `工单导入模板`)
|
|
|
.then(res => {
|
|
|
this.$message({
|
|
|
message: '下载成功',
|