mirror of
https://gitee.com/maimengcloud/xm-ui-web.git
synced 2025-12-30 10:12:26 +00:00
优化
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<el-space wrap style="padding-top:5px;padding-left:5px;padding-right:5px;padding-bottom: 5px;">
|
||||
<content-wrap>
|
||||
<el-space wrap class="padding-bottom">
|
||||
<slot name="header">
|
||||
<slot name="topToolbar">
|
||||
|
||||
</slot>
|
||||
<el-input v-if="!hiddenCpd.filter" style="width:195px;" v-model="filterText" placeholder="名称" auto-complete="off" clearable/>
|
||||
|
||||
<el-popover placement="right-start" :title="title" width="200" trigger="hover" :show-after="200">
|
||||
</slot>
|
||||
|
||||
<el-popover placement="right-start" :title="title" width="200" trigger="hover" :show-after="200">
|
||||
<el-space wrap>
|
||||
<el-button type="primary" v-if="!hiddenCpd.addTop" @click="addTopNode_()" icon="plus" plain>{{'【'+title+'】'}}</el-button>
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
<el-button type="success" v-if="!hiddenCpd.importTop" @click="showImportTop()" icon="upload" plain>{{'批量导入'}}</el-button>
|
||||
<mdp-export excel word @excel="toExcel" @word="toWord"/>
|
||||
<el-button v-if="!hiddenCpd.batchDel" type="danger" @click="batchDel_()" icon="delete" :title="'批量删除'" plain/>
|
||||
<el-text type="info">鼠标在树节点中【停留】可以【增删改查】,节点支持【拖拽】</el-text>
|
||||
|
||||
<el-text type="info" size="small">鼠标在树节点中【停留】可以【增删改查】,节点支持【拖拽】</el-text>
|
||||
<el-input v-if="!hiddenCpd.filter" style="width:100%;" v-model="filterText" placeholder="本地搜索" auto-complete="off" clearable/>
|
||||
</el-space>
|
||||
<template #reference>
|
||||
<el-button type="primary" icon="more-filled" plain/>
|
||||
<el-button type="primary" icon="more-filled" plain />
|
||||
</template>
|
||||
</el-popover>
|
||||
</slot>
|
||||
@@ -29,8 +29,8 @@
|
||||
<el-button v-if="!hiddenCpd.changePid && idLinks.size>0" @click="cancelChangePid()" icon="close" :title="'取消保存'" plain>取消</el-button>
|
||||
<el-button v-if="showConfirm" type="warning" @click="confirm" icon="check" title="确认选择" />
|
||||
</el-space>
|
||||
<el-scrollbar v-adaptive="{bottom:32}" style="padding-left:5px;">
|
||||
<el-tree :data="treeData" v-if="treeVisible" v-loading="loading.list" :props="propsCpd" :filter-node-method="filterNode"
|
||||
<el-scrollbar v-adaptive>
|
||||
<el-tree :data="treeData" v-if="treeVisible" v-loading="loading.list" :props="propsCpd" :filter-node-method="filterNode"
|
||||
:show-checkbox="showCheckbox" :expand-on-click-node="expandOnClickNode" :indent="indent" :node-key="propsCpd.id"
|
||||
:default-expanded-keys="defaultExpandedKeys" :default-checked-keys="defaultCheckedKeys" auto-expand-parent
|
||||
highlight-current @check-change="handleCheckChange" @current-change="handleCurrentChange" accordion
|
||||
@@ -74,10 +74,10 @@
|
||||
</div>
|
||||
</template>
|
||||
</el-tree>
|
||||
</el-scrollbar>
|
||||
<el-pagination v-if="!hiddenCpd.page" layout="total, sizes" :page-size="pageInfo.pageSize" :total="pageInfo.total" />
|
||||
</el-scrollbar>
|
||||
|
||||
|
||||
</content-wrap>
|
||||
|
||||
</template>
|
||||
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
:draggable="true"
|
||||
:allow-drop="allowDrop"
|
||||
>
|
||||
<template #topToolbar>
|
||||
<xm-product-select width="250px"
|
||||
<template #topToolbar>
|
||||
<xm-product-select width="250px"
|
||||
:isTpl="isTpl"
|
||||
:clearable="!clearable?false:true"
|
||||
:clearable="clearable"
|
||||
v-model="filters.productId"
|
||||
v-if="!xmProduct || !xmProduct.id"
|
||||
ref="xmProductSelect1"
|
||||
@@ -36,11 +36,11 @@
|
||||
@clear="onProductClearSelect"
|
||||
:init-load="true"
|
||||
:display-load="true"
|
||||
/>
|
||||
/>
|
||||
</template>
|
||||
|
||||
<template #moreBtn>
|
||||
<el-button type="primary" @click="$refs['tplMenuDialog'].open()">从模板导入</el-button>
|
||||
<el-button type="primary" @click="$refs['tplMenuDialog'].open()" plain icon="plus">模板导入</el-button>
|
||||
</template>
|
||||
<template #nodeName="{ data }">
|
||||
<el-space v-if="data?.menuId">
|
||||
|
||||
@@ -56,10 +56,10 @@
|
||||
</el-space>
|
||||
</template>
|
||||
<template #moreBtn>
|
||||
<el-button type="warning" @click="initProjectPhasePlans">初始一级阶段计划</el-button>
|
||||
<el-button type="warning" @click="initProjectPhasePlans" plain icon="plus">一级阶段计划</el-button>
|
||||
|
||||
<el-button type="primary" @click="$refs['tplPhaseDialog'].open()">从模板项目导入</el-button>
|
||||
<el-button type="warning" @click="$refs['menuDialog'].open()">从需求中导入</el-button>
|
||||
<el-button type="primary" @click="$refs['tplPhaseDialog'].open()" plain icon="plus">模板导入</el-button>
|
||||
<el-button type="warning" @click="$refs['menuDialog'].open()" plain icon="plus">需求导入</el-button>
|
||||
</template>
|
||||
<template #nodeToolbar="{ data }">
|
||||
<el-button @click="calcProgress(data)" title="对当前节点及所有上级节点进行逐层进度统计" type="warning" plain>统计</el-button>
|
||||
|
||||
@@ -56,8 +56,8 @@
|
||||
</el-space>
|
||||
</template>
|
||||
<template #moreBtn>
|
||||
<el-button type="primary" @click="$refs['tplKpiDialog'].open()">从模板导入</el-button>
|
||||
<el-button type="warning" @click="$refs['dictKpiDialog'].open()">从指标库导入</el-button>
|
||||
<el-button type="primary" @click="$refs['tplKpiDialog'].open()" icon="plus" plain>从模板导入</el-button>
|
||||
<el-button type="warning" @click="$refs['dictKpiDialog'].open()" icon="plus" plain>指标库导入</el-button>
|
||||
</template>
|
||||
<template #nodeToolbar="{ data }">
|
||||
<el-button @click="calcProgress(data)" title="对当前节点及所有上级节点进行逐层进度统计" type="warning" plain>统计</el-button>
|
||||
|
||||
Reference in New Issue
Block a user