[update] 修改企标选择左侧树查询第一页

This commit is contained in:
lideqin
2023-09-28 10:29:38 +08:00
parent df8359bcf6
commit 163eb1091f
@@ -85,29 +85,32 @@
@change="tableOnChange"> @change="tableOnChange">
<!-- 在混入里已经过滤过没有权限的按钮了 --> <!-- 在混入里已经过滤过没有权限的按钮了 -->
<template slot="operation" slot-scope="{text, record}"> <template slot="operation" slot-scope="{text, record}">
<a v-for="(operation, index) in operationList.slice(0, operateMaxNum)" :key="index" @click="operationClick(operation,record)"> <!-- 有查看详情权限 -->
<template v-if="operation.text === $t('enterpriseStandardLibrary.standard.collection')"> <template v-if="record.detailFlag">
<i class="iconfont icon-star1" v-show="record.collectionFlag" /> <a v-for="(operation, index) in operationList.slice(0, operateMaxNum)" :key="index" @click="operationClick(operation,record)">
<i class="iconfont icon-star" v-show="!record.collectionFlag" /> <template v-if="operation.text === $t('enterpriseStandardLibrary.standard.collection')">
</template> <i class="iconfont icon-star1" v-show="record.collectionFlag" />
</a> <i class="iconfont icon-star" v-show="!record.collectionFlag" />
<a-divider v-if="operationList.length >= operateMaxNum" type="vertical" /> </template>
<a-dropdown v-if="operationList.length >= operateMaxNum" placement="bottomCenter"> </a>
<a-icon type="more" class="operate-icon-btn operate-icon-more" /> <a-divider v-if="operationList.length >= operateMaxNum" type="vertical" />
<a-menu slot="overlay"> <a-dropdown v-if="operationList.length >= operateMaxNum" placement="bottomCenter">
<a-menu-item v-for="(operation, index) in operationList.slice(operateMaxNum)" :key="index"> <a-icon type="more" class="operate-icon-btn operate-icon-more" />
<a @click="operationClick(operation,record)"> <a-menu slot="overlay">
<!-- 编辑图标 --> <a-menu-item v-for="(operation, index) in operationList.slice(operateMaxNum)" :key="index">
<i class="iconfont icon-bianji operate-btn-icon" v-if="operation.text === $t('edit')" /> <a @click="operationClick(operation,record)">
<!-- 分享图标 --> <!-- 编辑图标 -->
<i class="iconfont icon-fangxingfenxiang operate-btn-icon" v-if="operation.text === $t('share')" /> <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')" /> <i class="iconfont icon-fangxingfenxiang operate-btn-icon" v-if="operation.text === $t('share')" />
{{ operation.text }} <!-- 删除图标 -->
</a> <i class="iconfont icon-shanchu_ operate-btn-icon" v-if="operation.text === $t('delete')" />
</a-menu-item> {{ operation.text }}
</a-menu> </a>
</a-dropdown> </a-menu-item>
</a-menu>
</a-dropdown>
</template>
</template> </template>
<!-- 企标编号 --> <!-- 企标编号 -->
@@ -260,7 +263,7 @@ export default {
this.currentTreeNode = [record.key] this.currentTreeNode = [record.key]
this.currentTreeNodeCode = [record.nodeCode] this.currentTreeNodeCode = [record.nodeCode]
this.searchParams.nodeCode = record.nodeCode this.searchParams.nodeCode = record.nodeCode
this.loadData() this.loadData(1)
}, },
// 左侧树点击新增 // 左侧树点击新增
handleTreeAdd (record) { handleTreeAdd (record) {