update 用户、部门管理线上环境按钮不显示
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<a-card :bordered="false">
|
||||
|
||||
<!-- 按钮操作区域 -->
|
||||
<a-row style="margin-left: 14px">
|
||||
<a-row style="margin-left: 14px" v-if="isDev">
|
||||
<a-button @click="handleAdd(1)" type="primary">{{ $t('depart.addDepartment') }}</a-button>
|
||||
<a-button @click="handleAdd(2)" type="primary">{{ $t('depart.addSubordinate') }}</a-button>
|
||||
<a-button type="primary" ghost icon="download" @click="handleExportXls($t('depart.departmentInformation'), '.xls')">{{ $t('export') }}</a-button>
|
||||
@@ -36,7 +36,7 @@
|
||||
@expand="onExpand" />
|
||||
</span>
|
||||
<!--新增右键点击事件,和增加添加和删除功能-->
|
||||
<a-menu slot="overlay">
|
||||
<a-menu slot="overlay" v-if="isDev">
|
||||
<a-menu-item @click="handleAdd(3)" key="1">{{ $t('add') }}</a-menu-item>
|
||||
<a-menu-item @click="handleDelete" key="2">{{ $t('delete') }}</a-menu-item>
|
||||
<a-menu-item @click="closeDrop" key="3">{{ $t('cancel') }}</a-menu-item>
|
||||
@@ -118,7 +118,7 @@
|
||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('remarks')" v-model="model.memo" />
|
||||
</a-form-model-item>
|
||||
</a-form-model>
|
||||
<div class="anty-form-btn">
|
||||
<div class="anty-form-btn" v-if="isDev">
|
||||
<a-button @click="emptyCurrForm" type="default" htmlType="button" icon="sync">{{ $t('reset') }}</a-button>
|
||||
<a-button @click="submitCurrForm" type="primary" htmlType="button" icon="form">{{ $t('preservation') }}</a-button>
|
||||
</div>
|
||||
@@ -154,6 +154,8 @@ export default {
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
// 是否开发环境(线上需隐藏按钮)
|
||||
isDev: process.env.VUE_APP_TAG_FLAG === '0',
|
||||
iExpandedKeys: [],
|
||||
loading: false,
|
||||
autoExpandParent: true,
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
</div>
|
||||
|
||||
<!-- 操作按钮区域 -->
|
||||
<div class="table-operator" style="border-top: 5px">
|
||||
<div class="table-operator" style="border-top: 5px" v-if="isDev">
|
||||
<a-button @click="handleAdd" type="primary" icon="plus" >{{ $t('user.addUser') }}</a-button>
|
||||
<a-button type="primary" ghost icon="download" @click="handleExportXls($t('user.userInformation'), '.xls')">{{ $t('export') }}</a-button>
|
||||
<a-button type="primary" ghost icon="hdd" @click="recycleBinVisible=true">{{ $t('recycleBin') }}</a-button>
|
||||
@@ -133,7 +133,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template v-slot:action="{text, record}">
|
||||
<template v-slot:action="{text, record}" v-if="isDev">
|
||||
<a @click="handleEdit(record)" >{{ $t('edit') }}</a>
|
||||
|
||||
<a-divider type="vertical" />
|
||||
@@ -217,6 +217,8 @@ export default {
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
// 是否开发环境(线上需隐藏按钮)
|
||||
isDev: process.env.VUE_APP_TAG_FLAG === '0',
|
||||
description: this.$t('user.freezePasManagementPage'),
|
||||
queryParam: {},
|
||||
recycleBinVisible: false,
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-spin>
|
||||
<div class="anty-form-btn">
|
||||
<div class="anty-form-btn" v-if="isDev">
|
||||
<a-dropdown style="float: left" :trigger="['click']" placement="topCenter">
|
||||
<a-menu slot="overlay">
|
||||
<!-- 简化Tree逻辑,使用默认checkStrictly为false的行为,即默认父子关联
|
||||
@@ -60,6 +60,8 @@ export default {
|
||||
components: { DepartDataruleModal },
|
||||
data () {
|
||||
return {
|
||||
// 是否开发环境(线上需隐藏按钮)
|
||||
isDev: process.env.VUE_APP_TAG_FLAG === '0',
|
||||
departId: '',
|
||||
treeData: [],
|
||||
defaultCheckedKeys: [],
|
||||
|
||||
Reference in New Issue
Block a user