Commit 49914f2f4367dcd9a2b3b96cb102c4a10cc4ed2b

Authored by 肖超群
1 parent 49afef05

调整权限

ant-design-vue-jeecg/src/views/system/inventory/InventoryChildList.vue
... ... @@ -90,18 +90,16 @@
90 90  
91 91 <!-- 操作按钮区域 -->
92 92 <div class="table-operator">
93   - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
94   - <a-button type="primary" icon="download" @click="handleExportXls('库存明细')">导出</a-button>
  93 + <a-button v-has="'inventoryChild:superSearch'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
  94 + <a-button v-has="'inventoryChild:export'" type="primary" icon="download" @click="handleExportXls('库存明细')">导出</a-button>
95 95 <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
96   - <a-button type="primary" icon="import">导入</a-button>
  96 + <a-button v-has="'inventoryChild:import'" type="primary" icon="import">导入</a-button>
97 97 </a-upload>
98   - <!-- 高级查询区域 -->
99   - <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
100 98 <a-dropdown v-if="selectedRowKeys.length > 0">
101 99 <a-menu slot="overlay">
102 100 <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
103 101 </a-menu>
104   - <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
  102 + <a-button v-has="'inventoryChild:delete'" style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
105 103 </a-dropdown>
106 104 </div>
107 105  
... ... @@ -147,22 +145,8 @@
147 145 </template>
148 146  
149 147 <span slot="action" slot-scope="text, record">
150   - <a @click="handleEdit(record)">编辑</a>
  148 + <a v-has="'inventoryChild:edit'" @click="handleEdit(record)">编辑</a>
151 149  
152   - <a-divider type="vertical" />
153   - <a-dropdown>
154   - <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
155   - <a-menu slot="overlay">
156   - <a-menu-item>
157   - <a @click="handleDetail(record)">详情</a>
158   - </a-menu-item>
159   - <a-menu-item>
160   - <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
161   - <a>删除</a>
162   - </a-popconfirm>
163   - </a-menu-item>
164   - </a-menu>
165   - </a-dropdown>
166 150 </span>
167 151  
168 152 </a-table>
... ... @@ -296,7 +280,7 @@
296 280 deleteBatch: "/inventory/inventoryChild/deleteBatch",
297 281 exportXlsUrl: "/inventory/inventoryChild/exportXls",
298 282 importExcelUrl: "inventory/inventoryChild/importExcel",
299   -
  283 +
300 284 },
301 285 dictOptions:{},
302 286 superFieldList:[],
... ...
ant-design-vue-jeecg/src/views/system/inventory/InventoryDetailList.vue
... ... @@ -80,7 +80,7 @@
80 80 <a-divider type="vertical"/>
81 81  
82 82 <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
83   - <a v-has="'inventoryDetail:add'">删除</a>
  83 + <a v-has="'inventoryDetail:delete'">删除</a>
84 84 </a-popconfirm>
85 85 </span>
86 86  
... ...
ant-design-vue-jeecg/src/views/system/inventory/SimpleInventoryDetailList.vue
... ... @@ -95,20 +95,20 @@
95 95 </a-upload>
96 96 <!-- 高级查询区域 -->
97 97 <j-super-query :fieldList="superFieldList" v-has="'inventoryDetail:superSearch'" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
98   - <a-dropdown v-if="selectedRowKeys.length > 0">
99   - <a-menu slot="overlay">
100   - <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
101   - </a-menu>
102   - <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
103   - </a-dropdown>
  98 +<!-- <a-dropdown v-if="selectedRowKeys.length > 0">-->
  99 +<!-- <a-menu slot="overlay">-->
  100 +<!-- <a-menu-item v-has="'inventoryDetail:delete'" key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>-->
  101 +<!-- </a-menu>-->
  102 +<!-- <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>-->
  103 +<!-- </a-dropdown>-->
104 104 </div>
105 105  
106 106 <!-- table区域-begin -->
107 107 <div>
108   - <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
109   - <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
110   - <a style="margin-left: 24px" @click="onClearSelected">清空</a>
111   - </div>
  108 +<!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">-->
  109 +<!-- <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项-->
  110 +<!-- <a style="margin-left: 24px" @click="onClearSelected">清空</a>-->
  111 +<!-- </div>-->
112 112  
113 113 <a-table
114 114 ref="table"
... ... @@ -145,22 +145,12 @@
145 145 </template>
146 146  
147 147 <span slot="action" slot-scope="text, record">
148   - <a @click="handleEdit(record)">编辑</a>
  148 + <a v-has="'inventoryDetail:edit'"@click="handleEdit(record)">编辑</a>
149 149  
150 150 <a-divider type="vertical" />
151   - <a-dropdown>
152   - <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
153   - <a-menu slot="overlay">
154   - <a-menu-item>
155   - <a @click="handleDetail(record)">详情</a>
156   - </a-menu-item>
157   - <a-menu-item>
158   - <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
159   - <a>删除</a>
160   - </a-popconfirm>
161   - </a-menu-item>
162   - </a-menu>
163   - </a-dropdown>
  151 + <a-popconfirm v-has="'inventoryDetail:delete'" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
  152 + <a>删除</a>
  153 + </a-popconfirm>
164 154 </span>
165 155  
166 156 </a-table>
... ...
ant-design-vue-jeecg/src/views/system/stocktaking/CycleCountDetailList.vue
... ... @@ -12,7 +12,7 @@
12 12  
13 13 <!-- 操作按钮区域 begin -->
14 14 <div class="table-operator">
15   - <a-button type="primary" icon="download" @click="handleExportXls('盘点明细表')">导出</a-button>
  15 + <a-button v-has="'cycleCountHeader:export'" type="primary" icon="download" @click="handleExportXls('盘点明细表')">导出</a-button>
16 16 <!-- 高级查询区域 -->
17 17  
18 18 </div>
... ...
ant-design-vue-jeecg/src/views/system/stocktaking/CycleCountHeaderList.vue
... ... @@ -95,13 +95,13 @@
95 95 <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
96 96 <a-menu slot="overlay">
97 97 <a-menu-item>
98   - <a @click="handleEdit(record)">编辑</a>
  98 + <a v-has="'cycleCountHeader:edit'" @click="handleEdit(record)">编辑</a>
99 99 </a-menu-item>
100 100 <a-menu-item>
101 101 <a @click="handleDetail(record)">详情</a>
102 102 </a-menu-item>
103 103 <a-menu-item>
104   - <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
  104 + <a-popconfirm v-has="'cycleCountHeader:delete'" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
105 105 <a>删除</a>
106 106 </a-popconfirm>
107 107 </a-menu-item>
... ...