[update] 法规库操作列样式
This commit is contained in:
@@ -103,13 +103,19 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
|
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
|
||||||
color: #1D2129;
|
color: @primary-color;
|
||||||
|
|
||||||
&-icon {
|
&-icon {
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
color: @primary-color;
|
color: @primary-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.operate-del-btn {
|
||||||
|
color: #C30D23 !important;
|
||||||
|
.operate-btn-icon {
|
||||||
|
color: #C30D23 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.action-span-cell > a:first-child {
|
.action-span-cell > a:first-child {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item v-for="(operation, index) in operSpecialJudge(record).slice(operateMaxNum)" :key="index">
|
<a-menu-item v-for="(operation, index) in operSpecialJudge(record).slice(operateMaxNum)" :key="index">
|
||||||
<a @click="operationClick(operation,record)">
|
<a @click="operationClick(operation,record)">
|
||||||
<div class="operate-btn">
|
<div class="operate-btn" :class="operation.text === $t('delete') ? 'operate-del-btn' : ''">
|
||||||
{{ operation.text }}
|
{{ operation.text }}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item v-for="(operation, index) in getLineOperationList(record).slice(operateMaxNum)" :key="index">
|
<a-menu-item v-for="(operation, index) in getLineOperationList(record).slice(operateMaxNum)" :key="index">
|
||||||
<a @click="operationClick(operation,record)">
|
<a @click="operationClick(operation,record)">
|
||||||
<div class="operate-btn">
|
<div class="operate-btn" :class="operation.text === $t('delete') ? 'operate-del-btn' : ''">
|
||||||
{{ operation.text }}
|
{{ operation.text }}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
<!-- 模板下载 -->
|
<!-- 模板下载 -->
|
||||||
<a-button icon="download" type="primary" ghost @click="downTemplate($t('enterpriseStandardLibrary.standard.templateExport'))" v-has="'enterpriseStandard:templateDownload'">{{ $t('templateDownload') }}</a-button>
|
<a-button icon="download" type="primary" ghost @click="downTemplate($t('enterpriseStandardLibrary.standard.templateExport'))" v-has="'enterpriseStandard:templateDownload'">{{ $t('templateDownload') }}</a-button>
|
||||||
<!-- 批量删除 -->
|
<!-- 批量删除 -->
|
||||||
<a-button icon="delete" type="primary" ghost @click="batchDel" v-has="'enterpriseStandard:batchDel'">{{ $t('batchDelete') }}</a-button>
|
<a-button icon="delete" type="danger" ghost @click="batchDel" v-has="'enterpriseStandard:batchDel'">{{ $t('batchDelete') }}</a-button>
|
||||||
<!-- 配置标准 -->
|
<!-- 配置标准 -->
|
||||||
<a-button icon="setting" type="primary" ghost @click="handleAllocationStandard" v-has="'enterpriseStandard:allocationStandard'">{{ $t('enterpriseStandardLibrary.standard.allocationStandard') }}</a-button>
|
<a-button icon="setting" type="primary" ghost @click="handleAllocationStandard" v-has="'enterpriseStandard:allocationStandard'">{{ $t('enterpriseStandardLibrary.standard.allocationStandard') }}</a-button>
|
||||||
<!-- 移出标准 -->
|
<!-- 移出标准 -->
|
||||||
@@ -110,13 +110,15 @@
|
|||||||
<template v-if="record.del_flag">
|
<template v-if="record.del_flag">
|
||||||
<a-menu-item v-for="(operation, index) in operationList.slice(operateMaxNum)" :key="index">
|
<a-menu-item v-for="(operation, index) in operationList.slice(operateMaxNum)" :key="index">
|
||||||
<a @click="operationClick(operation,record)">
|
<a @click="operationClick(operation,record)">
|
||||||
<!-- 查看图标-->
|
<div class="operate-btn" :class="operation.text === $t('delete') ? 'operate-del-btn' : ''">
|
||||||
<i class="iconfont icon-link operate-btn-icon" v-if="operation.text === $t('viewDetail')" />
|
<!-- 查看图标-->
|
||||||
<!-- 编辑图标 -->
|
<i class="iconfont icon-link operate-btn-icon" v-if="operation.text === $t('viewDetail')" />
|
||||||
<i class="iconfont icon-bianji operate-btn-icon" v-if="operation.text === $t('edit')" />
|
<!-- 编辑图标 -->
|
||||||
<!-- 删除图标 -->
|
<i class="iconfont icon-bianji operate-btn-icon" v-if="operation.text === $t('edit')" />
|
||||||
<i class="iconfont icon-shanchu_ operate-btn-icon" v-if="operation.text === $t('delete')" />
|
<!-- 删除图标 -->
|
||||||
{{ operation.text }}
|
<i class="iconfont icon-shanchu_ operate-btn-icon" v-if="operation.text === $t('delete')" />
|
||||||
|
{{ operation.text }}
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
</template>
|
</template>
|
||||||
@@ -124,11 +126,13 @@
|
|||||||
<template v-else>
|
<template v-else>
|
||||||
<a-menu-item v-for="(operation, index) in operationList.slice(operateMaxNum).filter(item => item.text !== $t('delete'))" :key="index">
|
<a-menu-item v-for="(operation, index) in operationList.slice(operateMaxNum).filter(item => item.text !== $t('delete'))" :key="index">
|
||||||
<a @click="operationClick(operation,record)">
|
<a @click="operationClick(operation,record)">
|
||||||
<!-- 查看图标-->
|
<div class="operate-btn" :class="operation.text === $t('delete') ? 'operate-del-btn' : ''">
|
||||||
<i class="iconfont icon-link operate-btn-icon" v-if="operation.text === $t('viewDetail')" />
|
<!-- 查看图标-->
|
||||||
<!-- 编辑图标 -->
|
<i class="iconfont icon-link operate-btn-icon" v-if="operation.text === $t('viewDetail')" />
|
||||||
<i class="iconfont icon-bianji operate-btn-icon" v-if="operation.text === $t('edit')" />
|
<!-- 编辑图标 -->
|
||||||
{{ operation.text }}
|
<i class="iconfont icon-bianji operate-btn-icon" v-if="operation.text === $t('edit')" />
|
||||||
|
{{ operation.text }}
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
</template>
|
</template>
|
||||||
@@ -164,9 +168,11 @@
|
|||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item v-for="(operation, index) in operationList.slice(operateMaxNum).filter(item => ![$t('edit'), $t('delete')].includes(item.text))" :key="index">
|
<a-menu-item v-for="(operation, index) in operationList.slice(operateMaxNum).filter(item => ![$t('edit'), $t('delete')].includes(item.text))" :key="index">
|
||||||
<a @click="operationClick(operation,record)">
|
<a @click="operationClick(operation,record)">
|
||||||
<!-- 查看图标-->
|
<div class="operate-btn" :class="operation.text === $t('delete') ? 'operate-del-btn' : ''">
|
||||||
<i class="iconfont icon-link operate-btn-icon" v-if="operation.text === $t('viewDetail')" />
|
<!-- 查看图标-->
|
||||||
{{ operation.text }}
|
<i class="iconfont icon-link operate-btn-icon" v-if="operation.text === $t('viewDetail')" />
|
||||||
|
{{ operation.text }}
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
|
|||||||
@@ -103,7 +103,7 @@
|
|||||||
{{ $t('templateDownload') }}
|
{{ $t('templateDownload') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<!-- 批量删除-->
|
<!-- 批量删除-->
|
||||||
<a-button type="primary" icon="delete" ghost @click="batchDel" v-has="'domesticStandard:batchDel'">{{
|
<a-button type="danger" icon="delete" ghost @click="batchDel" v-has="'domesticStandard:batchDel'">{{
|
||||||
$t('batchDelete')
|
$t('batchDelete')
|
||||||
}}
|
}}
|
||||||
</a-button>
|
</a-button>
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item v-for="(operation, index) in operationList.slice(operateMaxNum)" :key="index">
|
<a-menu-item v-for="(operation, index) in operationList.slice(operateMaxNum)" :key="index">
|
||||||
<a @click="operationClick(operation,record)">
|
<a @click="operationClick(operation,record)">
|
||||||
<div class="operate-btn">
|
<div class="operate-btn" :class="operation.text === $t('delete') ? 'operate-del-btn' : ''">
|
||||||
<!-- 查看图标-->
|
<!-- 查看图标-->
|
||||||
<i class="iconfont icon-link operate-btn-icon" v-if="operation.text === $t('viewDetail')" />
|
<i class="iconfont icon-link operate-btn-icon" v-if="operation.text === $t('viewDetail')" />
|
||||||
<!-- 编辑图标-->
|
<!-- 编辑图标-->
|
||||||
|
|||||||
Reference in New Issue
Block a user