Browse Source

优化

master
陈裕财 3 years ago
parent
commit
85d4abf07e
  1. 2
      src/styles/mdp.scss
  2. 14
      src/views/xm/core/xmMenuWorkItem/XmSubBugList.vue
  3. 14
      src/views/xm/core/xmMenuWorkItem/XmSubMenuList.vue
  4. 14
      src/views/xm/core/xmMenuWorkItem/XmSubTaskList.vue
  5. 19
      src/views/xm/core/xmTaskWorkItem/XmSubTaskList.vue

2
src/styles/mdp.scss

@ -272,7 +272,7 @@ table tr.hover-row{
.cell-bar{ .cell-bar{
z-index: 10000;
z-index: 500;
top: 50%; top: 50%;
right:5px; right:5px;
transform: translate(0%, -50%); transform: translate(0%, -50%);

14
src/views/xm/core/xmMenuWorkItem/XmSubBugList.vue

@ -6,21 +6,15 @@
<el-table-column prop="name" label="名称" min-width="350px"> <el-table-column prop="name" label="名称" min-width="350px">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="cell-box"> <div class="cell-box">
<div class="cell-text" >
<div class="icon" :style="{backgroundColor: '#F56C6C'}">
<div class="icon" :style="{backgroundColor: '#F56C6C'}">
<i style="width:20px;" class="el-icon-warning" ></i> <i style="width:20px;" class="el-icon-warning" ></i>
</div> </div>
<span >
{{scope.row.name}}
</span>
</div>
<el-link @click="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑任务" class="cell-input hidden-lg-and-up">{{scope.row.sortLevel}}&nbsp;{{scope.row.name}}</el-link>
<el-link @click="showEdit( scope.row,scope.$index)" title="编辑任务">{{scope.row.sortLevel}}&nbsp;{{scope.row.name}}</el-link>
<el-input type="textarea" autosize class="cell-input hidden-md-and-down" title="名称" style="width:85%;" placeholder="名称" v-model="scope.row.name" @change="editXmQuestionSomeFields(scope.row,'name',$event)"></el-input>
<div class="cell-bar"> <div class="cell-bar">
<el-button class="hidden-md-and-down" @click="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑任务" circle plain > </el-button>
<el-button @click="copyOne(scope.row,scope.$index)" icon="el-icon-document-copy" circle title="复制一行"></el-button>
<el-button @click="copyOne(scope.row,scope.$index)" icon="el-icon-document-copy" circle title="复制一行"></el-button>
</div> </div>
</div> </div>
</template> </template>

14
src/views/xm/core/xmMenuWorkItem/XmSubMenuList.vue

@ -7,8 +7,7 @@
<el-table-column prop="menuName" label="名称" min-width="350"> <el-table-column prop="menuName" label="名称" min-width="350">
<template slot-scope="scope" > <template slot-scope="scope" >
<div class="cell-box"> <div class="cell-box">
<div class="cell-text" >
<div v-if="scope.row.dclass=='1'" class="icon" style="background-color: rgb(255, 153, 51);">
<div v-if="scope.row.dclass=='1'" class="icon" style="background-color: rgb(255, 153, 51);">
<i class="el-icon-s-promotion"></i> <i class="el-icon-s-promotion"></i>
</div> </div>
<div v-if="scope.row.dclass=='2'" class="icon" style="background-color: rgb(0, 153, 51);"> <div v-if="scope.row.dclass=='2'" class="icon" style="background-color: rgb(0, 153, 51);">
@ -17,18 +16,11 @@
<div v-if="scope.row.dclass=='3'" class="icon" style="background-color: rgb(79, 140, 255);"> <div v-if="scope.row.dclass=='3'" class="icon" style="background-color: rgb(79, 140, 255);">
<i class="el-icon-document"></i> <i class="el-icon-document"></i>
</div> </div>
<span >
{{scope.row.seqNo}}&nbsp;&nbsp;{{scope.row.menuName}}
</span>
</div>
<el-link @click="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑" class="cell-input hidden-lg-and-up">{{scope.row.seqNo}}&nbsp;{{scope.row.menuName}}</el-link>
<el-link @click="showEdit( scope.row,scope.$index)" title="编辑" >{{scope.row.seqNo}}&nbsp;{{scope.row.menuName}}</el-link>
<el-input type="input" title="序号" class="cell-input hidden-md-and-down" style="width:10%;" v-model="scope.row.seqNo" placeholder="序号" @change="editXmMenuSomeFields(scope.row,'seqNo',$event)"></el-input>
<el-input type="textarea" autosize title="名称" class="cell-input hidden-md-and-down" placeholder="名称" v-model="scope.row.menuName" style="width:75%;" @change="editXmMenuSomeFields(scope.row,'menuName',$event)"></el-input>
<div class="cell-bar"> <div class="cell-bar">
<el-button class="hidden-md-and-down" @click="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑任务" circle plain > </el-button>
<el-button @click="copyOne(scope.row,scope.$index)" icon="el-icon-document-copy" circle title="复制一行"></el-button>
<el-button @click="copyOne(scope.row,scope.$index)" icon="el-icon-document-copy" circle title="复制一行"></el-button>
</div> </div>
</div> </div>
</template> </template>

14
src/views/xm/core/xmMenuWorkItem/XmSubTaskList.vue

@ -6,20 +6,12 @@
<el-table-column prop="name" label="名称" min-width="350"> <el-table-column prop="name" label="名称" min-width="350">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="cell-box"> <div class="cell-box">
<div class="cell-text" >
<div class="icon" :style="{backgroundColor: scope.row.ntype==='1'?'#E6A23C':'#1CC7EA'}"><i style="width:20px;" :class="scope.row.ntype==='1'?'el-icon-time':'el-icon-s-operation'" ></i>
<div class="icon" :style="{backgroundColor: scope.row.ntype==='1'?'#E6A23C':'#1CC7EA'}"><i style="width:20px;" :class="scope.row.ntype==='1'?'el-icon-time':'el-icon-s-operation'" ></i>
</div> </div>
<span >
{{scope.row.sortLevel}}&nbsp;{{scope.row.name}}
</span>
</div>
<el-link @click="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑任务" class="cell-input hidden-lg-and-up">{{scope.row.sortLevel}}&nbsp;{{scope.row.name}}</el-link>
<el-input type="input" autosize class="cell-input hidden-md-and-down" title="序号" style="width:10%;" placeholder="序号" v-model="scope.row.sortLevel" @change="editXmTaskSomeFields(scope.row,'sortLevel',$event)"></el-input>
<el-input type="textarea" autosize class="cell-input hidden-md-and-down" title="名称" style="width:75%;" placeholder="名称" v-model="scope.row.name" @change="editXmTaskSomeFields(scope.row,'name',$event)"></el-input>
<el-link @click="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑任务" >{{scope.row.sortLevel}}&nbsp;{{scope.row.name}}</el-link>
<div class="cell-bar"> <div class="cell-bar">
<el-button class="hidden-md-and-down" @click="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑任务" circle plain > </el-button>
<el-button @click="copyOne(scope.row,scope.$index)" icon="el-icon-document-copy" circle title="复制一行"></el-button>
<el-button @click="copyOne(scope.row,scope.$index)" icon="el-icon-document-copy" circle title="复制一行"></el-button>
</div> </div>
</div> </div>
</template> </template>

19
src/views/xm/core/xmTaskWorkItem/XmSubTaskList.vue

@ -4,25 +4,18 @@
<el-table :data="xmTasks" :max-height="400" v-loading="load.list" @selection-change="selsChange" @row-click="rowClick"> <el-table :data="xmTasks" :max-height="400" v-loading="load.list" @selection-change="selsChange" @row-click="rowClick">
<el-table-column type="selection" label="全选"></el-table-column> <el-table-column type="selection" label="全选"></el-table-column>
<el-table-column prop="name" label="名称" min-width="300"> <el-table-column prop="name" label="名称" min-width="300">
<template slot-scope="scope"> <div class="cell-box">
<div class="cell-text" >
<div class="icon" :style="{backgroundColor: scope.row.ntype==='1'?'#E6A23C':'#1CC7EA'}"><i style="width:20px;" :class="scope.row.ntype==='1'?'el-icon-time':'el-icon-s-operation'" ></i>
<template slot-scope="scope">
<div class="cell-box">
<div class="icon" :style="{backgroundColor: scope.row.ntype==='1'?'#E6A23C':'#1CC7EA'}"><i style="width:20px;" :class="scope.row.ntype==='1'?'el-icon-time':'el-icon-s-operation'" ></i>
</div> </div>
<span > <span >
{{scope.row.sortLevel}}&nbsp;{{scope.row.name}}
<el-link @click="showEdit(scope.row)">{{scope.row.sortLevel}}&nbsp;{{scope.row.name}}</el-link>
</span> </span>
</div>
<el-link @click="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑任务" class="cell-input hidden-lg-and-up">{{scope.row.sortLevel}}&nbsp;{{scope.row.name}}</el-link>
<el-input type="input" class="cell-input hidden-md-and-down" title="序号" style="width:10%;" placeholder="序号" v-model="scope.row.sortLevel" @change="editXmTaskSomeFields(scope.row,'sortLevel',$event)"></el-input>
<el-input type="textarea" autosize class="cell-input hidden-md-and-down" title="名称" style="width:75%;" placeholder="名称" v-model="scope.row.name" @change="editXmTaskSomeFields(scope.row,'name',$event)"></el-input>
<div class="cell-bar"> <div class="cell-bar">
<el-button class="hidden-md-and-down" @click="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑任务" circle plain > </el-button>
<el-button @click="copyOne(scope.row,scope.$index)" icon="el-icon-document-copy" circle title="复制一行"></el-button>
<el-button @click="copyOne(scope.row,scope.$index)" icon="el-icon-document-copy" circle title="复制一行"></el-button>
</div> </div>
</div> </div>
</template>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="状态" label="状态"

Loading…
Cancel
Save