Ver código fonte

fix: 隐藏下载模板、导入按钮

zh 2 anos atrás
pai
commit
473da8d9a9
1 arquivos alterados com 30 adições e 30 exclusões
  1. 30 30
      src/views/sales_control/preposition_stock_list.vue

+ 30 - 30
src/views/sales_control/preposition_stock_list.vue

@@ -21,36 +21,36 @@ export default {
     return {
       // 事件组合
       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: {