|
@@ -18,7 +18,9 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="search-cont">
|
|
|
- <el-checkbox v-model="isShowMe" @change="() => { getTreeData();getPublicList() }">只看我的</el-checkbox>
|
|
|
+ <el-checkbox v-model="isShowMe"
|
|
|
+ v-if="permissionBtn.isShowBtn('productPricePermission','goodsPrice_onlyMine')"
|
|
|
+ @change="() => { getTreeData();getPublicList() }">只看我的</el-checkbox>
|
|
|
<el-select
|
|
|
v-model="search_txt"
|
|
|
v-loadMore="searchLoad"
|
|
@@ -70,11 +72,11 @@
|
|
|
placeholder="请输入值"
|
|
|
class="label-input"
|
|
|
v-model="new_label"
|
|
|
- v-if="data.isEdit"
|
|
|
+ v-if="data.isEdit&&permissionBtn.isShowBtn('productPricePermission','goodsPrice_classifyOpt_edit')"
|
|
|
@blur="changeValue(data)"
|
|
|
/>
|
|
|
<span
|
|
|
- @dblclick.stop="editNodeLabel(data)"
|
|
|
+ @dblclick.stop="handleDblClick(data)"
|
|
|
v-else
|
|
|
class="text_oneLine node_label"
|
|
|
:style="`width:${
|
|
@@ -97,7 +99,7 @@
|
|
|
alt=""
|
|
|
style="width: 15px; height: 14px; margin-right: 8px"
|
|
|
@click.stop="editNode(node, data)"
|
|
|
- v-if="!data.ChartInfoId"
|
|
|
+ v-if="!data.ChartInfoId&&permissionBtn.isShowBtn('productPricePermission','goodsPrice_classifyOpt_edit')"
|
|
|
/>
|
|
|
<img
|
|
|
slot="reference"
|
|
@@ -105,7 +107,7 @@
|
|
|
alt=""
|
|
|
style="width: 14px; height: 14px"
|
|
|
@click.stop="removeNode(node, data)"
|
|
|
- v-if="!data.ChartInfoId"
|
|
|
+ v-if="!data.ChartInfoId&&permissionBtn.isShowBtn('productPricePermission','goodsPrice_classifyOpt_delete')"
|
|
|
/>
|
|
|
</span>
|
|
|
</span>
|
|
@@ -113,6 +115,7 @@
|
|
|
<div
|
|
|
class="noDepart"
|
|
|
@click="addLevelOneHandle"
|
|
|
+ v-if="permissionBtn.isShowBtn('productPricePermission','goodsPrice_classifyOpt_edit')"
|
|
|
>
|
|
|
<img
|
|
|
src="~@/assets/img/set_m/add_ico.png"
|
|
@@ -160,6 +163,7 @@
|
|
|
size="mini"
|
|
|
type="number"
|
|
|
placeholder="上限"
|
|
|
+ :disabled="!permissionBtn.isShowBtn('productPricePermission','goodsPrice_editLimit')"
|
|
|
v-model="chartLimit.max"
|
|
|
@change="setCommodityChart"
|
|
|
/>
|
|
@@ -168,6 +172,7 @@
|
|
|
size="mini"
|
|
|
type="number"
|
|
|
placeholder="下限"
|
|
|
+ :disabled="!permissionBtn.isShowBtn('productPricePermission','goodsPrice_editLimit')"
|
|
|
v-model="chartLimit.min"
|
|
|
@change="setCommodityChart"
|
|
|
/>
|
|
@@ -789,6 +794,10 @@ export default {
|
|
|
$('#right')[0].style.width = rigtWid;
|
|
|
|
|
|
},
|
|
|
+ handleDblClick(data){
|
|
|
+ if(!this.permissionBtn.isShowBtn('productPricePermission','goodsPrice_classifyOpt_edit')) return
|
|
|
+ this.editNodeLabel(data)
|
|
|
+ }
|
|
|
},
|
|
|
mounted() {
|
|
|
|