Browse Source

优化

master
陈裕财 4 years ago
parent
commit
719a6a7d07
  1. 4
      src/views/xm/core/xmProjectGroup/XmProjectGroupMng.vue
  2. 6
      src/views/xm/core/xmQuestion/XmQuestionMng.vue

4
src/views/xm/core/xmProjectGroup/XmProjectGroupMng.vue

@ -7,7 +7,7 @@
<el-button @click="groupRoleDescVisible=true" icon="el-icon-document">角色说明</el-button> <el-button @click="groupRoleDescVisible=true" icon="el-icon-document">角色说明</el-button>
<font color="red">注意点击架构图进行操作</font> <font color="red">注意点击架构图进行操作</font>
</el-row> </el-row>
<el-row class="">
<el-row ref="table" :style="{overflowX:'auto',height:maxTableHeight+'px'}">
<vue-okr-tree :data="okrTreeData" v-loading="load.list" <vue-okr-tree :data="okrTreeData" v-loading="load.list"
show-collapsable show-collapsable
node-key="id" node-key="id"
@ -738,6 +738,8 @@ XmProductSelect,
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
//initSimpleDicts('all',['sex','gradeLvl']).then(res=>this.dicts=res.data.data); //initSimpleDicts('all',['sex','gradeLvl']).then(res=>this.dicts=res.data.data);
this.maxTableHeight = util.calcTableMaxHeight(this.$refs.table.$el);
this.initData() this.initData()
this.searchXmProjectGroups(); this.searchXmProjectGroups();

6
src/views/xm/core/xmQuestion/XmQuestionMng.vue

@ -124,7 +124,7 @@
</el-row> </el-row>
<el-row class="padding-top"> <el-row class="padding-top">
<!--列表 XmQuestion xm_question--> <!--列表 XmQuestion xm_question-->
<el-table ref="table" :height="tableHeight" :data="xmQuestions" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table ref="table" :height="maxTableHeight" :data="xmQuestions" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column prop="name" label="缺陷名称" min-width="150"> <el-table-column prop="name" label="缺陷名称" min-width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-link @click="showEdit(scope.row)" type="primary"> <el-link @click="showEdit(scope.row)" type="primary">
@ -298,7 +298,7 @@
selectProjectVisible:false, selectProjectVisible:false,
productSelectVisible:false, productSelectVisible:false,
nextAction:'', nextAction:'',
tableHeight:300,
maxTableHeight:300,
cloumns: [ cloumns: [
{ {
key: 'name', key: 'name',
@ -943,7 +943,7 @@
this.$nextTick(() => { this.$nextTick(() => {
this.tableHeight = util.calcTableMaxHeight(this.$refs.table.$el);
this.maxTableHeight = util.calcTableMaxHeight(this.$refs.table.$el);
this.getXmQuestions(); this.getXmQuestions();
}); });
listOption([{categoryId:'all',itemCode:'bugSeverity'},{categoryId:'all',itemCode:'bugSolution'},{categoryId:'all',itemCode:'bugStatus'},{categoryId:'all',itemCode:'bugType'},{categoryId:'all',itemCode:'urgencyLevel'}] ).then(res=>{ listOption([{categoryId:'all',itemCode:'bugSeverity'},{categoryId:'all',itemCode:'bugSolution'},{categoryId:'all',itemCode:'bugStatus'},{categoryId:'all',itemCode:'bugType'},{categoryId:'all',itemCode:'urgencyLevel'}] ).then(res=>{

Loading…
Cancel
Save