Commit a6a8fa0db88020bedb6bf644373778762419b505

Authored by 易文鹏
1 parent bcc5f2ca

导入导出权限控制

Showing 48 changed files with 97 additions and 91 deletions
ant-design-vue-jeecg/src/views/system/DepartList.vue
... ... @@ -7,8 +7,8 @@
7 7 <a-row style="margin-left: 14px">
8 8 <a-button @click="handleAdd(1)" type="primary">添加部门</a-button>
9 9 <a-button @click="handleAdd(2)" type="primary">添加下级</a-button>
10   - <a-button type="primary" icon="download" @click="handleExportXls('部门信息')">导出</a-button>
11   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader"
  10 + <a-button v-has="'sysDepart:export'" type="primary" icon="download" @click="handleExportXls('部门信息')">导出</a-button>
  11 + <a-upload v-has="'sysDepart:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader"
12 12 :action="importExcelUrl" @change="handleImportExcel">
13 13 <a-button type="primary" icon="import">导入</a-button>
14 14 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/DictList.vue
... ... @@ -26,8 +26,8 @@
26 26  
27 27 <div class="table-operator" style="border-top: 5px">
28 28 <a-button v-has="'dict:add'" @click="handleAdd" type="primary" icon="plus">添加</a-button>
29   - <a-button type="primary" icon="download" @click="handleExportXls('字典信息')">导出</a-button>
30   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  29 + <a-button v-has="'dict:export'" type="primary" icon="download" @click="handleExportXls('字典信息')">导出</a-button>
  30 + <a-upload v-has="'dict:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
31 31 @change="handleImportExcel">
32 32 <a-button type="primary" icon="import">导入</a-button>
33 33 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/QuartzJobList.vue
... ... @@ -34,9 +34,9 @@
34 34  
35 35 <!-- 操作按钮区域 -->
36 36 <div class="table-operator">
37   - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
38   - <a-button type="primary" icon="download" @click="handleExportXls('定时任务信息')">导出</a-button>
39   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  37 + <a-button v-has="'quartzJob:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
  38 + <a-button v-has="'quartzJob:export'" type="primary" icon="download" @click="handleExportXls('定时任务信息')">导出</a-button>
  39 + <a-upload v-has="'quartzJob:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
40 40 @change="handleImportExcel">
41 41 <a-button type="primary" icon="import">导入</a-button>
42 42 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/RoleUserList.vue
... ... @@ -36,9 +36,9 @@
36 36 <!--<a-button @click="handleEdit(model1)" type="primary" icon="plus">角色编辑</a-button>-->
37 37 <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader"
38 38 :action="importExcelUrl" @change="handleImportExcel">
39   - <a-button type="primary" icon="import">导入</a-button>
  39 + <a-button v-has="'role:import'" type="primary" icon="import">导入</a-button>
40 40 </a-upload>
41   - <a-button type="primary" icon="download" @click="handleExportXls('角色管理')">导出</a-button>
  41 + <a-button v-has="'role:export'" type="primary" icon="download" @click="handleExportXls('角色管理')">导出</a-button>
42 42 </div>
43 43  
44 44 <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
... ...
ant-design-vue-jeecg/src/views/system/SysAnnouncementList.vue
... ... @@ -31,7 +31,7 @@
31 31 <!-- 操作按钮区域 -->
32 32 <div class="table-operator">
33 33 <a-button v-has="'announcement:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
34   - <a-button type="primary" icon="download" @click="handleExportXls('系统通告')">导出</a-button>
  34 + <a-button v-has="'announcement:export'" type="primary" icon="download" @click="handleExportXls('系统通告')">导出</a-button>
35 35 <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
36 36 <!-- <a-button type="primary" icon="import">导入</a-button>-->
37 37 <!-- </a-upload>-->
... ...
ant-design-vue-jeecg/src/views/system/SysPositionList.vue
... ... @@ -41,9 +41,9 @@
41 41  
42 42 <!-- 操作按钮区域 -->
43 43 <div class="table-operator">
44   - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
45   - <a-button type="primary" icon="download" @click="handleExportXls('职务表')">导出</a-button>
46   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  44 + <a-button v-has="'position:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
  45 + <a-button v-has="'position:export'" type="primary" icon="download" @click="handleExportXls('职务表')">导出</a-button>
  46 + <a-upload v-has="'position:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
47 47 @change="handleImportExcel">
48 48 <a-button type="primary" icon="import">导入</a-button>
49 49 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/AgvPortList.vue
... ... @@ -32,8 +32,8 @@
32 32 <!-- 操作按钮区域 -->
33 33 <div class="table-operator">
34 34 <a-button @click="handleAdd" v-has="'agvPort:add'" type="primary" icon="plus">新增</a-button>
35   - <a-button type="primary" icon="download" @click="handleExportXls('AGV点位')">导出</a-button>
36   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  35 + <a-button v-has="'agvPort:export'" type="primary" icon="download" @click="handleExportXls('AGV点位')">导出</a-button>
  36 + <a-upload v-has="'agvPort:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
37 37 <a-button type="primary" icon="import">导入</a-button>
38 38 </a-upload>
39 39 <a-dropdown v-if="selectedRowKeys.length > 0">
... ...
ant-design-vue-jeecg/src/views/system/config/BomDetailList.vue
... ... @@ -3,8 +3,9 @@
3 3 <!-- 操作按钮区域 -->
4 4 <div class="table-operator" v-if="mainId">
5 5 <a-button @click="handleAdd" v-has="'bomDetail:add'" type="primary" icon="plus">新增</a-button>
6   - <a-button type="primary" icon="download" @click="handleExportXls('bom子表')">导出</a-button>
  6 + <a-button v-has="'bomDetail:export'" type="primary" icon="download" @click="handleExportXls('bom子表')">导出</a-button>
7 7 <a-upload
  8 + v-has="'bomDetail:import'"
8 9 name="file"
9 10 :showUploadList="false"
10 11 :multiple="false"
... ...
ant-design-vue-jeecg/src/views/system/config/BomHeaderList.vue
... ... @@ -32,8 +32,8 @@
32 32 <!-- 操作按钮区域 -->
33 33 <div class="table-operator">
34 34 <a-button @click="handleAdd" v-has="'bomHeader:add'" type="primary" icon="plus">新增</a-button>
35   - <a-button type="primary" icon="download" @click="handleExportXls('bom主表')">导出</a-button>
36   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  35 + <a-button v-has="'bomHeader:export'" type="primary" icon="download" @click="handleExportXls('bom主表')">导出</a-button>
  36 + <a-upload v-has="'bomHeader:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
37 37 @change="handleImportExcel">
38 38 <a-button type="primary" icon="import">导入</a-button>
39 39 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/CarrierList.vue
... ... @@ -12,8 +12,8 @@
12 12 <!-- 操作按钮区域 -->
13 13 <div class="table-operator">
14 14 <a-button @click="handleAdd" v-has="'carrier:add'" type="primary" icon="plus">新增</a-button>
15   - <a-button type="primary" icon="download" @click="handleExportXls('承运商管理')">导出</a-button>
16   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  15 + <a-button v-has="'carrier:export'" type="primary" icon="download" @click="handleExportXls('承运商管理')">导出</a-button>
  16 + <a-upload v-has="'carrier:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
17 17 @change="handleImportExcel">
18 18 <a-button type="primary" icon="import">导入</a-button>
19 19 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/CompanyList.vue
... ... @@ -32,8 +32,8 @@
32 32 <!-- 操作按钮区域 -->
33 33 <div class="table-operator">
34 34 <a-button @click="handleAdd" v-has="'company:add'" type="primary" icon="plus">新增</a-button>
35   - <a-button type="primary" icon="download" @click="handleExportXls('货主')">导出</a-button>
36   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  35 + <a-button v-has="'company:export'" type="primary" icon="download" @click="handleExportXls('货主')">导出</a-button>
  36 + <a-upload v-has="'company:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
37 37 @change="handleImportExcel">
38 38 <a-button type="primary" icon="import">导入</a-button>
39 39 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/ContainerCapacityList.vue
... ... @@ -39,8 +39,8 @@
39 39 <!-- 操作按钮区域 -->
40 40 <div class="table-operator">
41 41 <a-button @click="handleAdd" v-has="'containerCapacity:add'" type="primary" icon="plus">新增</a-button>
42   - <a-button type="primary" icon="download" @click="handleExportXls('容器容量管理')">导出</a-button>
43   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  42 + <a-button v-has="'containerCapacity:export'" type="primary" icon="download" @click="handleExportXls('容器容量管理')">导出</a-button>
  43 + <a-upload v-has="'containerCapacity:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
44 44 @change="handleImportExcel">
45 45 <a-button type="primary" icon="import">导入</a-button>
46 46 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/ContainerList.vue
... ... @@ -54,8 +54,8 @@
54 54 <!-- 操作按钮区域 -->
55 55 <div class="table-operator">
56 56 <a-button @click="handleAdd" v-has="'container:add'" type="primary" icon="plus">新增</a-button>
57   - <a-button type="primary" icon="download" @click="handleExportXls('容器管理')">导出</a-button>
58   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  57 + <a-button v-has="'container:export'" type="primary" icon="download" @click="handleExportXls('容器管理')">导出</a-button>
  58 + <a-upload v-has="'container:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
59 59 @change="handleImportExcel">
60 60 <a-button type="primary" icon="import">导入</a-button>
61 61 <a-button v-has="'container:print'" @click="batchPrint()" type="primary">打印</a-button>
... ...
ant-design-vue-jeecg/src/views/system/config/ContainerTypeList.vue
... ... @@ -32,8 +32,8 @@
32 32 <!-- 操作按钮区域 -->
33 33 <div class="table-operator">
34 34 <a-button @click="handleAdd" v-has="'containerType:add'" type="primary" icon="plus">新增</a-button>
35   - <a-button type="primary" icon="download" @click="handleExportXls('容器类型')">导出</a-button>
36   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  35 + <a-button v-has="'containerType:export'" type="primary" icon="download" @click="handleExportXls('容器类型')">导出</a-button>
  36 + <a-upload v-has="'containerType:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
37 37 @change="handleImportExcel">
38 38 <a-button type="primary" icon="import">导入</a-button>
39 39 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/CustomerList.vue
... ... @@ -12,8 +12,8 @@
12 12 <!-- 操作按钮区域 -->
13 13 <div class="table-operator">
14 14 <a-button @click="handleAdd" v-has="'customer:add'" type="primary" icon="plus">新增</a-button>
15   - <a-button type="primary" icon="download" @click="handleExportXls('客户管理')">导出</a-button>
16   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  15 + <a-button v-has="'customer:export'" type="primary" icon="download" @click="handleExportXls('客户管理')">导出</a-button>
  16 + <a-upload v-has="'customer:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
17 17 @change="handleImportExcel">
18 18 <a-button type="primary" icon="import">导入</a-button>
19 19 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/CycleCountPreferenceList.vue
... ... @@ -12,8 +12,8 @@
12 12 <!-- 操作按钮区域 -->
13 13 <div class="table-operator">
14 14 <a-button @click="handleAdd" v-has="'cycleCountPreference:add'" type="primary" icon="plus">新增</a-button>
15   - <a-button type="primary" icon="download" @click="handleExportXls('盘点首选项')">导出</a-button>
16   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  15 + <a-button v-has="'cycleCountPreference:export'" type="primary" icon="download" @click="handleExportXls('盘点首选项')">导出</a-button>
  16 + <a-upload v-has="'cycleCountPreference:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
17 17 @change="handleImportExcel">
18 18 <a-button type="primary" icon="import">导入</a-button>
19 19 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/LocationHighList.vue
... ... @@ -32,8 +32,8 @@
32 32 <!-- 操作按钮区域 -->
33 33 <div class="table-operator">
34 34 <a-button @click="handleAdd" v-has="'locationHigh:add'" type="primary" icon="plus">新增</a-button>
35   - <a-button type="primary" icon="download" @click="handleExportXls('库位高度管理')">导出</a-button>
36   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  35 + <a-button v-has="'locationHigh:export'" type="primary" icon="download" @click="handleExportXls('库位高度管理')">导出</a-button>
  36 + <a-upload v-has="'locationHigh:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
37 37 @change="handleImportExcel">
38 38 <a-button type="primary" icon="import">导入</a-button>
39 39 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/LocationList.vue
... ... @@ -103,8 +103,8 @@
103 103 <div class="table-operator">
104 104 <a-button @click="batchAdd()" v-has="'location:batchAdd'" type="primary" icon="plus">批量新增</a-button>
105 105 <a-button v-has="'location:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
106   - <a-button type="primary" icon="download" @click="handleExportXls('库位管理')">导出</a-button>
107   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  106 + <a-button v-has="'location:export'" type="primary" icon="download" @click="handleExportXls('库位管理')">导出</a-button>
  107 + <a-upload v-has="'location:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
108 108 @change="handleImportExcel">
109 109 <a-button type="primary" icon="import">导入</a-button>
110 110 <a-button v-has="'material:print'" @click="batchPrint()" type="primary">打印</a-button>
... ...
ant-design-vue-jeecg/src/views/system/config/LocationTypeList.vue
... ... @@ -32,8 +32,8 @@
32 32 <!-- 操作按钮区域 -->
33 33 <div class="table-operator">
34 34 <a-button v-has="'locationType:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
35   - <a-button type="primary" icon="download" @click="handleExportXls('库位类型')">导出</a-button>
36   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  35 + <a-button v-has="'locationType:export'" type="primary" icon="download" @click="handleExportXls('库位类型')">导出</a-button>
  36 + <a-upload v-has="'locationType:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
37 37 @change="handleImportExcel">
38 38 <a-button type="primary" icon="import">导入</a-button>
39 39 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/MaterialAreaList.vue
... ... @@ -12,8 +12,8 @@
12 12 <!-- 操作按钮区域 -->
13 13 <div class="table-operator">
14 14 <a-button @click="handleAdd" v-has="'materialArea:add'" type="primary" icon="plus">新增</a-button>
15   - <a-button type="primary" icon="download" @click="handleExportXls('物料分区')">导出</a-button>
16   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  15 + <a-button v-has="'materialArea:export'" type="primary" icon="download" @click="handleExportXls('物料分区')">导出</a-button>
  16 + <a-upload v-has="'materialArea:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
17 17 @change="handleImportExcel">
18 18 <a-button type="primary" icon="import">导入</a-button>
19 19 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/MaterialList.vue
... ... @@ -39,8 +39,8 @@
39 39 <!-- 操作按钮区域 -->
40 40 <div class="table-operator">
41 41 <a-button v-has="'material:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
42   - <a-button type="primary" icon="download" @click="handleExportXls('物料管理')">导出</a-button>
43   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  42 + <a-button v-has="'material:export'" type="primary" icon="download" @click="handleExportXls('物料管理')">导出</a-button>
  43 + <a-upload v-has="'material:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
44 44 @change="handleImportExcel">
45 45 <a-button type="primary" icon="import">导入</a-button>
46 46 <a-button v-has="'material:print'" @click="batchPrint()" type="primary">打印</a-button>
... ...
ant-design-vue-jeecg/src/views/system/config/MaterialMultipleList.vue
... ... @@ -12,8 +12,8 @@
12 12 <!-- 操作按钮区域 -->
13 13 <div class="table-operator">
14 14 <a-button v-has="'materialMultiple:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
15   - <a-button type="primary" icon="download" @click="handleExportXls('物料单位换算')">导出</a-button>
16   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  15 + <a-button v-has="'materialMultiple:export'" type="primary" icon="download" @click="handleExportXls('物料单位换算')">导出</a-button>
  16 + <a-upload v-has="'materialMultiple:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
17 17 @change="handleImportExcel">
18 18 <a-button type="primary" icon="import">导入</a-button>
19 19 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/MaterialTypeList.vue
... ... @@ -32,8 +32,8 @@
32 32 <!-- 操作按钮区域 -->
33 33 <div class="table-operator">
34 34 <a-button v-has="'materialType:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
35   - <a-button type="primary" icon="download" @click="handleExportXls('物料类别')">导出</a-button>
36   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  35 + <a-button v-has="'materialType:export'" type="primary" icon="download" @click="handleExportXls('物料类别')">导出</a-button>
  36 + <a-upload v-has="'materialType:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
37 37 @change="handleImportExcel">
38 38 <a-button type="primary" icon="import">导入</a-button>
39 39 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/MaterialUnitList.vue
... ... @@ -39,8 +39,8 @@
39 39 <!-- 操作按钮区域 -->
40 40 <div class="table-operator">
41 41 <a-button v-has="'materialUnit:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
42   - <a-button type="primary" icon="download" @click="handleExportXls('物料单位')">导出</a-button>
43   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  42 + <a-button v-has="'materialUnit:export'" type="primary" icon="download" @click="handleExportXls('物料单位')">导出</a-button>
  43 + <a-upload v-has="'materialUnit:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
44 44 @change="handleImportExcel">
45 45 <a-button type="primary" icon="import">导入</a-button>
46 46 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/MaterialWarningList.vue
... ... @@ -32,8 +32,8 @@
32 32 <!-- 操作按钮区域 -->
33 33 <div class="table-operator">
34 34 <a-button v-has="'materialWarning:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
35   - <a-button type="primary" icon="download" @click="handleExportXls('物料预警')">导出</a-button>
36   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  35 + <a-button v-has="'materialWarning:export'" type="primary" icon="download" @click="handleExportXls('物料预警')">导出</a-button>
  36 + <a-upload v-has="'materialWarning:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
37 37 @change="handleImportExcel">
38 38 <a-button type="primary" icon="import">导入</a-button>
39 39 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/ParameterConfigurationList.vue
... ... @@ -39,8 +39,8 @@
39 39 <!-- 操作按钮区域 -->
40 40 <div class="table-operator">
41 41 <a-button @click="handleAdd" v-has="'ParameterConfiguration:add'" type="primary" icon="plus">新增</a-button>
42   - <a-button type="primary" icon="download" @click="handleExportXls('参数配置')">导出</a-button>
43   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  42 + <a-button v-has="'ParameterConfiguration:export'" type="primary" icon="download" @click="handleExportXls('参数配置')">导出</a-button>
  43 + <a-upload v-has="'ParameterConfiguration:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
44 44 @change="handleImportExcel">
45 45 <a-button type="primary" icon="import">导入</a-button>
46 46 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/PortList.vue
... ... @@ -39,8 +39,8 @@
39 39 <!-- 操作按钮区域 -->
40 40 <div class="table-operator">
41 41 <a-button v-has="'port:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
42   - <a-button type="primary" icon="download" @click="handleExportXls('出入口')">导出</a-button>
43   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  42 + <a-button v-has="'port:export'" type="primary" icon="download" @click="handleExportXls('出入口')">导出</a-button>
  43 + <a-upload v-has="'port:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
44 44 @change="handleImportExcel">
45 45 <a-button type="primary" icon="import">导入</a-button>
46 46 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/ReceiptTypeList.vue
... ... @@ -32,8 +32,8 @@
32 32 <!-- 操作按钮区域 -->
33 33 <div class="table-operator">
34 34 <a-button v-has="'receiptType:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
35   - <a-button type="primary" icon="download" @click="handleExportXls('入库单类型')">导出</a-button>
36   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  35 + <a-button v-has="'receiptType:export'" type="primary" icon="download" @click="handleExportXls('入库单类型')">导出</a-button>
  36 + <a-upload v-has="'receiptType:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
37 37 @change="handleImportExcel">
38 38 <a-button type="primary" icon="import">导入</a-button>
39 39 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/ShipmentTypeList.vue
... ... @@ -32,8 +32,8 @@
32 32 <!-- 操作按钮区域 -->
33 33 <div class="table-operator">
34 34 <a-button @click="handleAdd" v-has="'shipmentType:add'" type="primary" icon="plus">新增</a-button>
35   - <a-button type="primary" icon="download" @click="handleExportXls('出库单类型')">导出</a-button>
36   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  35 + <a-button v-has="'shipmentType:export'" type="primary" icon="download" @click="handleExportXls('出库单类型')">导出</a-button>
  36 + <a-upload v-has="'shipmentType:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
37 37 @change="handleImportExcel">
38 38 <a-button type="primary" icon="import">导入</a-button>
39 39 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/SupplierList.vue
... ... @@ -39,8 +39,8 @@
39 39 <!-- 操作按钮区域 -->
40 40 <div class="table-operator">
41 41 <a-button v-has="'supplier:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
42   - <a-button type="primary" icon="download" @click="handleExportXls('供应商管理')">导出</a-button>
43   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  42 + <a-button v-has="'supplier:export'" type="primary" icon="download" @click="handleExportXls('供应商管理')">导出</a-button>
  43 + <a-upload v-has="'supplier:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
44 44 @change="handleImportExcel">
45 45 <a-button type="primary" icon="import">导入</a-button>
46 46 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/SysUserWarehouseList.vue
... ... @@ -27,8 +27,8 @@
27 27 <!-- 操作按钮区域 -->
28 28 <div class="table-operator">
29 29 <a-button v-has="'sysUserWarehouse:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
30   - <a-button type="primary" icon="download" @click="handleExportXls('用户仓库关系表')">导出</a-button>
31   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  30 + <a-button v-has="'sysUserWarehouse:export'" type="primary" icon="download" @click="handleExportXls('用户仓库关系表')">导出</a-button>
  31 + <a-upload v-has="'sysUserWarehouse:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
32 32 @change="handleImportExcel">
33 33 <a-button type="primary" icon="import">导入</a-button>
34 34 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/WarehouseList.vue
... ... @@ -39,8 +39,8 @@
39 39 <!-- 操作按钮区域 -->
40 40 <div class="table-operator">
41 41 <a-button v-has="'warehouse:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
42   - <a-button type="primary" icon="download" @click="handleExportXls('仓库')">导出</a-button>
43   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  42 + <a-button v-has="'warehouse:export'" type="primary" icon="download" @click="handleExportXls('仓库')">导出</a-button>
  43 + <a-upload v-has="'warehouse:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
44 44 @change="handleImportExcel">
45 45 <a-button type="primary" icon="import">导入</a-button>
46 46 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/config/ZoneList.vue
... ... @@ -32,8 +32,8 @@
32 32 <!-- 操作按钮区域 -->
33 33 <div class="table-operator">
34 34 <a-button v-has="'zone:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
35   - <a-button type="primary" icon="download" @click="handleExportXls('库区管理')">导出</a-button>
36   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  35 + <a-button v-has="'zone:export'" type="primary" icon="download" @click="handleExportXls('库区管理')">导出</a-button>
  36 + <a-upload v-has="'zone:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
37 37 @change="handleImportExcel">
38 38 <a-button type="primary" icon="import">导入</a-button>
39 39 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/inventory/InventoryDetailSelectList.vue
... ... @@ -3,8 +3,9 @@
3 3 <!-- 操作按钮区域 -->
4 4 <div class="table-operator" v-if="mainId">
5 5 <a-button v-has="'inventoryDetail:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
6   - <a-button type="primary" icon="download" @click="handleExportXls('库存详情')">导出</a-button>
  6 + <a-button v-has="'inventoryDetail:export'" type="primary" icon="download" @click="handleExportXls('库存详情')">导出</a-button>
7 7 <a-upload
  8 + v-has="'inventoryDetail:import'"
8 9 name="file"
9 10 :showUploadList="false"
10 11 :multiple="false"
... ...
ant-design-vue-jeecg/src/views/system/inventory/InventoryMaterialSummaryList.vue
... ... @@ -43,9 +43,9 @@
43 43  
44 44 <!-- 操作按钮区域 -->
45 45 <div class="table-operator">
46   - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
47   - <a-button type="primary" icon="download" @click="handleExportXls('物料汇总主表')">导出</a-button>
48   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  46 + <a-button v-has="'inventoryMaterialSummary:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
  47 + <a-button v-has="'inventoryMaterialSummary:export'" type="primary" icon="download" @click="handleExportXls('物料汇总主表')">导出</a-button>
  48 + <a-upload v-has="'inventoryMaterialSummary:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
49 49 <a-button type="primary" icon="import">导入</a-button>
50 50 </a-upload>
51 51 </div>
... ...
ant-design-vue-jeecg/src/views/system/inventory/InventoryTransactionList.vue
... ... @@ -99,8 +99,8 @@
99 99 <!-- 操作按钮区域 -->
100 100 <div class="table-operator">
101 101 <a-button @click="handleAdd" v-has="'inventoryTransaction:add'" type="primary" icon="plus">新增</a-button>
102   - <a-button type="primary" icon="download" @click="handleExportXls('库存交易记录')">导出</a-button>
103   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  102 + <a-button v-has="'inventoryTransaction:export'" type="primary" icon="download" @click="handleExportXls('库存交易记录')">导出</a-button>
  103 + <a-upload v-has="'inventoryTransaction:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
104 104 @change="handleImportExcel">
105 105 <a-button type="primary" icon="import">导入</a-button>
106 106 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/inventory/SimpleInventoryDetailList.vue
... ... @@ -89,7 +89,7 @@
89 89 <!-- 操作按钮区域 -->
90 90 <div class="table-operator">
91 91 <a-button v-has="'inventoryDetail:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
92   - <a-button type="primary" icon="download" @click="handleExportXls('库存详情')">导出</a-button>
  92 + <a-button v-has="'inventoryDetail:export'" type="primary" icon="download" @click="handleExportXls('库存详情')">导出</a-button>
93 93 <a-upload v-has="'inventoryDetail:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
94 94 <a-button type="primary" icon="import">导入</a-button>
95 95 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/monitor/OperationLog.vue
... ... @@ -41,7 +41,7 @@
41 41 <a-col :xl="6" :lg="7" :md="8" :sm="24">
42 42 <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
43 43 <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
44   - <a-button type="primary" @click="handleExportXls('操作记录')" icon="download" style="margin-left: 8px">导出</a-button>
  44 + <a-button v-has="'operationLog:export'" type="primary" @click="handleExportXls('操作记录')" icon="download" style="margin-left: 8px">导出</a-button>
45 45 <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
46 46 </span>
47 47 </a-col>
... ...
ant-design-vue-jeecg/src/views/system/receipt/ReceiptContainerDetailList.vue
... ... @@ -60,8 +60,9 @@
60 60 <!-- 操作按钮区域 -->
61 61 <div class="table-operator" v-if="mainId">
62 62 <a-button @click="handleAdd" v-has="'receiptContainerDetail:add'" type="primary" icon="plus">新增</a-button>
63   - <a-button type="primary" icon="download" @click="handleExportXls('入库组盘详情')">导出</a-button>
  63 + <a-button v-has="'receiptContainerDetail:export'" type="primary" icon="download" @click="handleExportXls('入库组盘详情')">导出</a-button>
64 64 <a-upload
  65 + v-has="'receiptContainerDetail:import'"
65 66 name="file"
66 67 :showUploadList="false"
67 68 :multiple="false"
... ...
ant-design-vue-jeecg/src/views/system/receipt/ReceiptContainerHeaderList.vue
... ... @@ -63,8 +63,8 @@
63 63 <!-- 操作按钮区域 -->
64 64 <div class="table-operator">
65 65 <a-button v-has="'receiptContainerHeader:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
66   - <a-button type="primary" icon="download" @click="handleExportXls('入库组盘')">导出</a-button>
67   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  66 + <a-button v-has="'receiptContainerHeader:export'" type="primary" icon="download" @click="handleExportXls('入库组盘')">导出</a-button>
  67 + <a-upload v-has="'receiptContainerHeader:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
68 68 <a-button type="primary" icon="import">导入</a-button>
69 69 </a-upload>
70 70 </div>
... ...
ant-design-vue-jeecg/src/views/system/receipt/ReceiptDetailList.vue
... ... @@ -3,8 +3,9 @@
3 3 <!-- 操作按钮区域 -->
4 4 <div class="table-operator" v-if="mainId">
5 5 <a-button v-has="'receiptDetail:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
6   - <a-button type="primary" icon="download" @click="handleExportXls('入库单详情')">导出</a-button>
  6 + <a-button v-has="'receiptDetail:export'" type="primary" icon="download" @click="handleExportXls('入库单详情')">导出</a-button>
7 7 <a-upload
  8 + v-has="'receiptDetail:import'"
8 9 name="file"
9 10 :showUploadList="false"
10 11 :multiple="false"
... ...
ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue
... ... @@ -99,8 +99,8 @@
99 99 <!-- 操作按钮区域 -->
100 100 <div class="table-operator">
101 101 <a-button v-has="'receiptHeader:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
102   - <a-button type="primary" icon="download" @click="handleExportXls('入库表主表')">导出</a-button>
103   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  102 + <a-button v-has="'receiptHeader:export'" type="primary" icon="download" @click="handleExportXls('入库表主表')">导出</a-button>
  103 + <a-upload v-has="'receiptHeader:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
104 104 @change="handleImportExcel">
105 105 <a-button type="primary" icon="import">导入</a-button>
106 106 <a-button v-has="'receiptHeader:print'" @click="batchPrint()" type="primary">打印</a-button>
... ...
ant-design-vue-jeecg/src/views/system/shipment/ShipmentContainerDetailList.vue
... ... @@ -61,8 +61,9 @@
61 61 <!-- 操作按钮区域 -->
62 62 <div class="table-operator" v-if="mainId">
63 63 <a-button v-has="'shipmentContainerDetail:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
64   - <a-button type="primary" icon="download" @click="handleExportXls('出库组盘详情')">导出</a-button>
  64 + <a-button v-has="'shipmentContainerDetail:export'" type="primary" icon="download" @click="handleExportXls('出库组盘详情')">导出</a-button>
65 65 <a-upload
  66 + v-has="'shipmentContainerDetail:import'"
66 67 name="file"
67 68 :showUploadList="false"
68 69 :multiple="false"
... ...
ant-design-vue-jeecg/src/views/system/shipment/ShipmentContainerHeaderList.vue
... ... @@ -69,8 +69,8 @@
69 69 <!-- 操作按钮区域 -->
70 70 <div class="table-operator">
71 71 <a-button @click="handleAdd" v-has="'shipmentContainerHeader:add'" type="primary" icon="plus">新增</a-button>
72   - <a-button type="primary" icon="download" @click="handleExportXls('出库组盘')">导出</a-button>
73   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  72 + <a-button v-has="'shipmentContainerHeader:export'" type="primary" icon="download" @click="handleExportXls('出库组盘')">导出</a-button>
  73 + <a-upload v-has="'shipmentContainerHeader:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
74 74 @change="handleImportExcel">
75 75 <a-button type="primary" icon="import">导入</a-button>
76 76 </a-upload>
... ...
ant-design-vue-jeecg/src/views/system/shipment/ShipmentDetailList.vue
... ... @@ -3,8 +3,9 @@
3 3 <!-- 操作按钮区域 -->
4 4 <div class="table-operator" v-if="mainId">
5 5 <a-button @click="handleAdd" v-has="'shipmentDetail:add'" type="primary" icon="plus">新增</a-button>
6   - <a-button type="primary" icon="download" @click="handleExportXls('出库单详情')">导出</a-button>
  6 + <a-button v-has="'shipmentDetail:export'" type="primary" icon="download" @click="handleExportXls('出库单详情')">导出</a-button>
7 7 <a-upload
  8 + v-has="'shipmentDetail:import'"
8 9 name="file"
9 10 :showUploadList="false"
10 11 :multiple="false"
... ...
ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderList.vue
... ... @@ -108,8 +108,8 @@
108 108 <!-- 操作按钮区域 -->
109 109 <div class="table-operator">
110 110 <a-button v-has="'shipmentHeader:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
111   - <a-button type="primary" icon="download" @click="handleExportXls('出库单')">导出</a-button>
112   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
  111 + <a-button v-has="'shipmentHeader:export'" type="primary" icon="download" @click="handleExportXls('出库单')">导出</a-button>
  112 + <a-upload v-has="'shipmentHeader:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
113 113 @change="handleImportExcel">
114 114 <a-button type="primary" icon="import">导入</a-button>
115 115 <a-button v-has="'shipmentHeader:print'" @click="batchPrint()" type="primary">打印</a-button>
... ...
ant-design-vue-jeecg/src/views/system/stocktaking/CycleCountHeaderList.vue
... ... @@ -11,9 +11,9 @@
11 11  
12 12 <!-- 操作按钮区域 -->
13 13 <div class="table-operator">
14   - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
15   - <a-button type="primary" icon="download" @click="handleExportXls('盘点主表')">导出</a-button>
16   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  14 + <a-button v-has="'cycleCountHeader:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
  15 + <a-button v-has="'cycleCountHeader:export'" type="primary" icon="download" @click="handleExportXls('盘点主表')">导出</a-button>
  16 + <a-upload v-has="'cycleCountHeader:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
17 17 <a-button type="primary" icon="import">导入</a-button>
18 18 </a-upload>
19 19 <a-dropdown v-if="selectedRowKeys.length > 0">
... ...
ant-design-vue-jeecg/src/views/system/task/AgvTaskList.vue
... ... @@ -49,8 +49,8 @@
49 49 <!-- 操作按钮区域 -->
50 50 <div class="table-operator">
51 51 <a-button v-has="'agvTask:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
52   - <a-button type="primary" icon="download" @click="handleExportXls('AGV任务')">导出</a-button>
53   - <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  52 + <a-button v-has="'agvTask:export'" type="primary" icon="download" @click="handleExportXls('AGV任务')">导出</a-button>
  53 + <a-upload v-has="'agvTask:import'" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
54 54 <a-button type="primary" icon="import">导入</a-button>
55 55 </a-upload>
56 56 <!-- <a-dropdown v-if="selectedRowKeys.length > 0">-->
... ...