Browse Source

优化

master
陈裕财 3 years ago
parent
commit
3a7143ab7a
  1. 13
      src/views/xm/core/xmFunc/XmFuncSelect.vue
  2. 3
      src/views/xm/core/xmTask/XmPhase.vue

13
src/views/xm/core/xmFunc/XmFuncSelect.vue

@ -12,12 +12,12 @@
<el-table ref="xmFuncTable" element-loading-text="努力加载中" element-loading-spinner="el-icon-loading" :data="xmFuncsTreeData" :max-height="maxTableHeight" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;" current-row-key="id" row-key="id" :tree-props="{children: 'children'}" > <el-table ref="xmFuncTable" element-loading-text="努力加载中" element-loading-spinner="el-icon-loading" :data="xmFuncsTreeData" :max-height="maxTableHeight" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;" current-row-key="id" row-key="id" :tree-props="{children: 'children'}" >
<el-table-column prop="name" label="模块" min-width="150" > <el-table-column prop="name" label="模块" min-width="150" >
<template slot="header"> 模块 &nbsp;<slot name="title-bar"></slot><el-button type="text" @click="unselectRow()">取消选中状态</el-button></template>
<template slot="header"> 模块 &nbsp;<slot name="title-bar"></slot> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<span> {{scope.row.name}}</span> <span> {{scope.row.name}}</span>
<div class="tool-bar">
<el-popover :open-delay=500
<el-popover class="tool-bar" :open-delay=500
placement="top-start" placement="top-start"
title="增删改" title="增删改"
width="400" width="400"
@ -27,13 +27,10 @@
<el-button @click.stop="showEdit( scope.row,scope.$index )" icon="el-icon-edit" title="编辑">编辑</el-button> <el-button @click.stop="showEdit( scope.row,scope.$index )" icon="el-icon-edit" title="编辑">编辑</el-button>
<el-button type="danger" v-loading="load.del" @click="handleDel(scope.row,scope.$index)" icon="el-icon-delete" >删除</el-button> <el-button type="danger" v-loading="load.del" @click="handleDel(scope.row,scope.$index)" icon="el-icon-delete" >删除</el-button>
<el-button slot="reference" icon="el-icon-setting" @click.stop></el-button>
<el-button type="text" size="mini" circle plain slot="reference" icon="el-icon-setting" @click.stop></el-button>
</el-popover> </el-popover>
<el-button type="text" size="mini" circle plain v-if="editForm&&editForm.id==scope.row.id" @click.stop="unselectRow()" title="取消选中状态" icon="el-icon-circle-close"></el-button>
</div>
</template> </template>
</el-table-column> </el-table-column>
<template v-if="showSelect"> <template v-if="showSelect">

3
src/views/xm/core/xmTask/XmPhase.vue

@ -131,9 +131,6 @@
<template slot="header"> <template slot="header">
<div style="display:flex;"> <div style="display:flex;">
<div style="text-align: center;line-height: 32px;">计划名称</div> <div style="text-align: center;line-height: 32px;">计划名称</div>
&nbsp;&nbsp;
<el-button type="text" class="hidden-lg-and-up" icon="el-icon-circle-close" @click="unselectRow()" title="取消选中状态">取消选中状态</el-button>
<el-button type="text" class="hidden-md-and-down" icon="el-icon-circle-close" @click="unselectRow()" title="取消选中状态">取消选中状态</el-button>
<el-input v-if=" !selProject || !selProject.id" v-model="filters.key" style="width:50%;margin-left: auto;" placeholder="名称模糊查询" clearable></el-input> <el-input v-if=" !selProject || !selProject.id" v-model="filters.key" style="width:50%;margin-left: auto;" placeholder="名称模糊查询" clearable></el-input>
</div> </div>
</template> </template>

Loading…
Cancel
Save