Browse Source

优化

master
陈裕财 3 years ago
parent
commit
a39184334f
  1. 44
      src/views/xm/core/xmMenuWorkItem/XmSubBugList.vue
  2. 40
      src/views/xm/core/xmMenuWorkItem/XmSubMenuList.vue
  3. 4
      src/views/xm/core/xmMenuWorkItem/XmSubTaskList.vue

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

@ -3,20 +3,26 @@
<el-row>
<el-table :data="xmBugs" :max-height="400" @selection-change="selsChange" @row-click="rowClick">
<el-table-column type="selection" label="全选"></el-table-column>
<el-table-column prop="name" label="名称" min-width="250px" show-overflow-tooltip>
<el-table-column prop="name" label="名称" min-width="350px">
<template slot-scope="scope">
<div class="icon" style="background-color: #F56C6C;">
<i class="el-icon-warning"></i>
<div class="cell-box">
<div class="cell-text" >
<div class="icon" :style="{backgroundColor: '#F56C6C'}">
<i style="width:20px;" class="el-icon-warning" ></i>
</div>
<span class="my-cell-text">
<span >
{{scope.row.name}}
</span>
<span class="my-cell-bar" >
<el-input title="名称" placeholder="名称" v-model="scope.row.name" style="width:98%;" @change="editXmQuestionSomeFields(scope.row,'name',$event)"></el-input>
<el-button @click="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑缺陷" circle plain > </el-button>
</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>
</span>
<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">
<el-button class="hidden-md-and-down" @click="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑任务" circle plain > </el-button>
<el-button type="warning" @click="copyOne(scope.row,scope.$index)" icon="el-icon-document-copy" circle title="复制一行"></el-button>
</div>
</div>
</template>
</el-table-column>
@ -309,6 +315,26 @@ export default {
this.getXmBugs();
},
copyOne(row,index){
var params={...row}
params.id=null;
params.createUserid=this.userInfo.userid
params.createUsername=this.userInfo.username
params.bugStatus="1"
params.name=row.name+'V'
addXmQuestion(params).then(res=>{
var tips = res.data.tips
if(tips.isOk){
var row2=res.data.data
this.xmBugs.splice(index+1,0,row2)
//this.pageInfo.total=this.pageInfo.total+1
this.$message.success("复制成功")
}else{
this.$message.error(tips.msg)
}
})
}
}, //end methods
components: {
XmGroupDialog,'xm-question-edit':()=>import('../xmQuestion/XmQuestionEdit'),MdpSelectUserXm,

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

@ -6,7 +6,8 @@
<el-table-column type="selection" label="全选"></el-table-column>
<el-table-column prop="menuName" label="名称" min-width="250" show-overflow-tooltip>
<template slot-scope="scope" >
<span style="display:inline;">
<div class="cell-box">
<div class="cell-text" >
<div v-if="scope.row.dclass=='1'" class="icon" style="background-color: rgb(255, 153, 51);">
<i class="el-icon-s-promotion"></i>
</div>
@ -16,15 +17,20 @@
<div v-if="scope.row.dclass=='3'" class="icon" style="background-color: rgb(79, 140, 255);">
<i class="el-icon-document"></i>
</div>
</span>
<span class="my-cell-text">
<span >
{{scope.row.seqNo}}&nbsp;&nbsp;{{scope.row.menuName}}
</span>
<span class="my-cell-bar">
<el-input title="序号" style="width:15%;" v-model="scope.row.seqNo" placeholder="序号" @change="editXmMenuSomeFields(scope.row,'seqNo',$event)"></el-input><el-input title="名称" placeholder="名称" v-model="scope.row.menuName" style="width:75%;" @change="editXmMenuSomeFields(scope.row,'menuName',$event)"></el-input>
<el-button @click="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑需求" circle plain > </el-button>
</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>
</span>
<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">
<el-button class="hidden-md-and-down" @click="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑任务" circle plain > </el-button>
<el-button type="warning" @click="copyOne(scope.row,scope.$index)" icon="el-icon-document-copy" circle title="复制一行"></el-button>
</div>
</div>
</template>
</el-table-column>
<el-table-column prop="status" label="状态" min-width="80" sortable>
@ -312,6 +318,26 @@ export default {
}).catch( err => this.load.del=false );
});
},
copyOne(row,index){
var params={...row}
params.menuId=null;
params.status="0"
params.menuName=row.menuName+'V'
addXmMenu(params).then(res=>{
var tips = res.data.tips
if(tips.isOk){
var row2=res.data.data
this.xmMenus.splice(index+1,0,row2)
this.pageInfo.total=this.pageInfo.total+1
this.$message.success("复制成功")
}else{
this.$message.error(tips.msg)
}
})
}
}, //end methods
components: {
TagDialog,

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

@ -14,8 +14,8 @@
</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="textarea" autosize class="cell-input hidden-md-and-down" title="名称" style="width:85%;" placeholder="名称" v-model="scope.row.name" @change="editXmTaskSomeFields(scope.row,'name',$event)"></el-input>
<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>
<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>

Loading…
Cancel
Save