|
@@ -33,11 +33,14 @@
|
|
|
</span>
|
|
|
<!-- 排序 -->
|
|
|
<template slot="sort" slot-scope="text, record, index">
|
|
|
- <a-icon title="下移" v-if="index != list.length-1" :style="{ fontSize: '18px', color: '#1891FF', cursor: 'pointer',padding:'0 10px' }"
|
|
|
- @click="changeSort(index,record,0)" type="arrow-down" />
|
|
|
- <a-icon title="上移" v-if="index != 0" :style="{ fontSize: '18px', color: '#1891FF',cursor: 'pointer', padding:'0 10px' }"
|
|
|
- @click="changeSort(index,record,1)" type="arrow-up" />
|
|
|
- <span v-if="list.length===1">--</span>
|
|
|
+ <span v-hasPermission="'B_goodsClass_changeSort'">
|
|
|
+ <a-icon title="下移" v-if="index != list.length-1" :style="{ fontSize: '18px', color: '#1891FF', cursor: 'pointer',padding:'0 10px' }"
|
|
|
+ @click="changeSort(index,record,0)" type="arrow-down" />
|
|
|
+ <a-icon title="上移" v-if="index != 0" :style="{ fontSize: '18px', color: '#1891FF',cursor: 'pointer', padding:'0 10px' }"
|
|
|
+ @click="changeSort(index,record,1)" type="arrow-up" />
|
|
|
+ <span v-if="list.length===1">--</span>
|
|
|
+ </span>
|
|
|
+ <span v-if="!$hasPermissions('B_goodsClass_changeSort')">--</span>
|
|
|
</template>
|
|
|
</s-table>
|
|
|
<add-goodsClass-modal :itemId="itemId" :itemData="itemData" :openGoodClassModal="openGoodClassModal" @refresh="$refs.table.refresh(true)"
|