This commit is contained in:
Jane
2023-12-28 19:31:25 +08:00
parent bb8870d44e
commit 45477138ff
69 changed files with 851 additions and 262 deletions

View File

@@ -18,9 +18,9 @@
<span class="custom-tree-node" @mouseenter="mouseenter(data)" @mouseleave="mouseleave(data)">
<span><i v-if="node.level === 1" class="iconfont icon-zuzhi tree-folder" />{{ node.label }}</span>
<span class="tree-bts">
<i v-show="!data.id && data.show" v-hasPerm="['standard:type:add']" class="el-icon-circle-plus-outline bt-add" @click="() => handleAddType()" />
<i v-show="data.id && data.show" v-hasPerm="['standard:type:edit']" class="el-icon-edit-outline bt-edit" @click="() => handleEditType(data)" />
<i v-show="data.id && data.show" v-hasPerm="['standard:type:remove']" class="el-icon-delete bt-delete" @click="() => handleDelType(data)" />
<i v-show="!data.id && data.show" class="el-icon-circle-plus-outline bt-add" @click="() => handleAddType()" />
<i v-show="data.id && data.show" class="el-icon-edit-outline bt-edit" @click="() => handleEditType(data)" />
<i v-show="data.id && data.show" class="el-icon-delete bt-delete" @click="() => handleDelType(data)" />
</span>
</span>
</template>
@@ -59,14 +59,12 @@
<el-col :span="12">
<el-button-group>
<el-button
v-hasPerm="['standard:dict:add']"
type="primary"
icon="el-icon-plus"
size="mini"
@click="handleAdd"
>新增</el-button>
<el-button
v-hasPerm="['standard:dict:refresh']"
type="warning"
icon="el-icon-refresh"
size="mini"
@@ -146,21 +144,18 @@
trigger="click"
>
<el-button
v-hasPerm="['standard:dict:edit']"
size="mini"
type="text"
icon="el-icon-edit-outline"
@click="handleEdit(scope.row)"
>修改</el-button>
<el-button
v-hasPerm="['standard:dict:detail']"
size="mini"
type="text"
icon="el-icon-view"
@click="handleDetail(scope.row)"
>详情</el-button>
<el-button
v-hasPerm="['standard:dict:remove']"
size="mini"
type="text"
icon="el-icon-delete"