|
@@ -7,6 +7,7 @@
|
|
|
type="primary"
|
|
|
plain
|
|
|
style="width: 100%"
|
|
|
+ v-if="$checkBtnRole('add', $route.meta.roles)"
|
|
|
@click="openAddGroupForm('add')"
|
|
|
>新建分组</el-button
|
|
|
>
|
|
@@ -27,10 +28,14 @@
|
|
|
<i class="el-icon-more icon-more"></i>
|
|
|
</span>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item :command="['edit', v]"
|
|
|
+ <el-dropdown-item
|
|
|
+ :command="['edit', v]"
|
|
|
+ v-if="$checkBtnRole('edit', $route.meta.roles)"
|
|
|
>修改名称</el-dropdown-item
|
|
|
>
|
|
|
- <el-dropdown-item :command="['del', v]"
|
|
|
+ <el-dropdown-item
|
|
|
+ :command="['del', v]"
|
|
|
+ v-if="$checkBtnRole('del', $route.meta.roles)"
|
|
|
>删除分组</el-dropdown-item
|
|
|
>
|
|
|
</el-dropdown-menu>
|
|
@@ -80,7 +85,11 @@
|
|
|
<!-- 按钮 -->
|
|
|
<div class="btn-group clearfix">
|
|
|
<div class="fl">
|
|
|
- <el-button type="primary" size="small" @click="addCategoryFn"
|
|
|
+ <el-button
|
|
|
+ v-if="$checkBtnRole('add', $route.meta.roles)"
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ @click="addCategoryFn"
|
|
|
>添加类别</el-button
|
|
|
>
|
|
|
</div>
|
|
@@ -130,6 +139,7 @@
|
|
|
slot="reference"
|
|
|
type="text"
|
|
|
class="textColor el-popover-left"
|
|
|
+ v-if="$checkBtnRole('del', $route.meta.roles)"
|
|
|
>删除</el-button
|
|
|
>
|
|
|
</el-popconfirm>
|
|
@@ -177,15 +187,15 @@
|
|
|
autocomplete="off"
|
|
|
v-model="addGroupForm.productCategoryNumber"
|
|
|
placeholder="请输入"
|
|
|
- v-if="addGroupFormType == 'add' "
|
|
|
+ v-if="addGroupFormType == 'add'"
|
|
|
+ ></el-input>
|
|
|
+ <el-input
|
|
|
+ v-else
|
|
|
+ autocomplete="off"
|
|
|
+ v-model="addGroupForm.productCategoryNumber"
|
|
|
+ placeholder="请输入"
|
|
|
+ disabled="disabled"
|
|
|
></el-input>
|
|
|
- <el-input v-else
|
|
|
- autocomplete="off"
|
|
|
- v-model="addGroupForm.productCategoryNumber"
|
|
|
- placeholder="请输入"
|
|
|
- v-else disabled='disabled'
|
|
|
- ></el-input>
|
|
|
-
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|