|
@@ -21,36 +21,36 @@ export default {
|
|
return {
|
|
return {
|
|
// 事件组合
|
|
// 事件组合
|
|
optionsEvensGroup: [
|
|
optionsEvensGroup: [
|
|
- [
|
|
|
|
- [
|
|
|
|
- {
|
|
|
|
- name: '下载模板',
|
|
|
|
- click: () => {
|
|
|
|
- workerTemplateExcel({}, `${this.$route.meta.title}`)
|
|
|
|
- .then(res => {
|
|
|
|
- console.log('chengg')
|
|
|
|
- this.$message({
|
|
|
|
- message: '下载成功',
|
|
|
|
- type: 'success'
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- .catch(err => {
|
|
|
|
- this.$message.error('下载失败')
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- isRole: this.$checkBtnRole('import', this.$route.meta.roles)
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- ],
|
|
|
|
- [
|
|
|
|
- [
|
|
|
|
- {
|
|
|
|
- name: '',
|
|
|
|
- render: this.importButton(partsNewInImport),
|
|
|
|
- isRole: this.$checkBtnRole('import', this.$route.meta.roles)
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- ]
|
|
|
|
|
|
+ // [
|
|
|
|
+ // [
|
|
|
|
+ // {
|
|
|
|
+ // name: '下载模板',
|
|
|
|
+ // click: () => {
|
|
|
|
+ // workerTemplateExcel({}, `${this.$route.meta.title}`)
|
|
|
|
+ // .then(res => {
|
|
|
|
+ // console.log('chengg')
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '下载成功',
|
|
|
|
+ // type: 'success'
|
|
|
|
+ // })
|
|
|
|
+ // })
|
|
|
|
+ // .catch(err => {
|
|
|
|
+ // this.$message.error('下载失败')
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
|
|
+ // isRole: this.$checkBtnRole('import', this.$route.meta.roles)
|
|
|
|
+ // }
|
|
|
|
+ // ]
|
|
|
|
+ // ],
|
|
|
|
+ // [
|
|
|
|
+ // [
|
|
|
|
+ // {
|
|
|
|
+ // name: '',
|
|
|
|
+ // render: this.importButton(partsNewInImport),
|
|
|
|
+ // isRole: this.$checkBtnRole('import', this.$route.meta.roles)
|
|
|
|
+ // }
|
|
|
|
+ // ]
|
|
|
|
+ // ]
|
|
],
|
|
],
|
|
// 表格属性
|
|
// 表格属性
|
|
tableAttributes: {
|
|
tableAttributes: {
|