Browse Source

优化

master
陈裕财 3 years ago
parent
commit
9fd60a02df
  1. 8
      src/views/xm/core/xmMenu/XmEpicFeatures.vue
  2. 11
      src/views/xm/core/xmMenu/XmEpicFeaturesSelect.vue
  3. 6
      src/views/xm/core/xmMenu/XmMenuMng.vue
  4. 2
      src/views/xm/core/xmProduct/XmProductForLinkComplex.vue
  5. 4
      src/views/xm/core/xmProduct/index.vue
  6. 2
      src/views/xm/core/xmProduct/top-nav.vue
  7. 4
      src/views/xm/core/xmProject/index.vue
  8. 2
      src/views/xm/core/xmProject/top-nav.vue
  9. 5
      src/views/xm/core/xmQuestion/XmQuestionMng.vue
  10. 2
      src/views/xm/core/xmRecord/XmRecord.vue
  11. 4
      src/views/xm/core/xmTestCasedb/index.vue
  12. 2
      src/views/xm/core/xmTestCasedb/top-nav.vue

8
src/views/xm/core/xmMenu/XmEpicFeatures.vue

@ -1,9 +1,5 @@
<template> <template>
<section>
<el-row>
<el-col :span="24">
<section class="padding">
<el-row> <el-row>
<div style="display:flex;"> <div style="display:flex;">
<xm-product-select v-if=" !xmProduct || !xmProduct.id" ref="xmProductSelect1" style="display:inline;" :auto-select="true" :link-project-id="selProject?selProject.id:null" @row-click="onProductSelected" @clear="onProductClearSelect" ></xm-product-select> <xm-product-select v-if=" !xmProduct || !xmProduct.id" ref="xmProductSelect1" style="display:inline;" :auto-select="true" :link-project-id="selProject?selProject.id:null" @row-click="onProductSelected" @clear="onProductClearSelect" ></xm-product-select>
@ -144,8 +140,6 @@
<el-drawer title="需求模板" :visible.sync="menuTemplateVisible" size="80%" append-to-body :close-on-click-modal="false"> <el-drawer title="需求模板" :visible.sync="menuTemplateVisible" size="80%" append-to-body :close-on-click-modal="false">
<xm-menu-template-mng :is-select-menu="true" :visible="menuTemplateVisible" @cancel="menuTemplateVisible=false" @selected-menus="onSelectedMenuTemplates"></xm-menu-template-mng> <xm-menu-template-mng :is-select-menu="true" :visible="menuTemplateVisible" @cancel="menuTemplateVisible=false" @selected-menus="onSelectedMenuTemplates"></xm-menu-template-mng>
</el-drawer> </el-drawer>
</el-col>
</el-row>
<el-dialog append-to-body width="60%" top="20px" :visible.sync="parentMenuVisible"> <el-dialog append-to-body width="60%" top="20px" :visible.sync="parentMenuVisible">
<xm-epic-features-select v-if="parentMenuVisible" :xm-product="xmProduct?xmProduct:filters.product" @select="onParentMenuSelected"></xm-epic-features-select> <xm-epic-features-select v-if="parentMenuVisible" :xm-product="xmProduct?xmProduct:filters.product" @select="onParentMenuSelected"></xm-epic-features-select>
</el-dialog> </el-dialog>

11
src/views/xm/core/xmMenu/XmEpicFeaturesSelect.vue

@ -1,9 +1,6 @@
<template> <template>
<section>
<section class="padding">
<el-row > <el-row >
<el-col :span="24" class="padding-left">
<el-row >
<xm-product-select ref="xmProductSelect1" style="display:inline;" v-if="!xmProduct" :auto-select="false" :link-project-id="selProject?selProject.id:null" @row-click="onProductSelected" :iterationId="xmIteration?xmIteration.id:null" @clear="onProductClearSelect"></xm-product-select> <xm-product-select ref="xmProductSelect1" style="display:inline;" v-if="!xmProduct" :auto-select="false" :link-project-id="selProject?selProject.id:null" @row-click="onProductSelected" :iterationId="xmIteration?xmIteration.id:null" @clear="onProductClearSelect"></xm-product-select>
<el-input style="width:120px;" v-model="filters.key" placeholder="名称模糊查询" clearable></el-input> <el-input style="width:120px;" v-model="filters.key" placeholder="名称模糊查询" clearable></el-input>
@ -44,12 +41,8 @@
</el-table-column> </el-table-column>
</template> </template>
</el-table> </el-table>
<el-pagination layout="total, sizes, prev, next" @current-change="handleCurrentChange" @size-change="handleSizeChange" :page-sizes="[10,20, 50, 100, 500]" :current-page="pageInfo.pageNum" :page-size="pageInfo.pageSize" :total="pageInfo.total" style="float:right;"></el-pagination>
</el-row> </el-row>
</el-col>
</el-row>
<el-pagination layout="total, sizes, prev, next" @current-change="handleCurrentChange" @size-change="handleSizeChange" :page-sizes="[10,20, 50, 100, 500]" :current-page="pageInfo.pageNum" :page-size="pageInfo.pageSize" :total="pageInfo.total" style="float:right;"></el-pagination>
</section> </section>
</template> </template>

6
src/views/xm/core/xmMenu/XmMenuMng.vue

@ -1,7 +1,5 @@
<template> <template>
<section>
<el-row>
<el-col :span="24">
<section class="padding">
<el-row> <el-row>
<xm-product-select ref="xmProductSelect1" style="display:inline;" v-if="(!xmProduct||!xmProduct.id)&&(!xmIteration||!xmIteration.id)" :auto-select="false" :link-project-id="selProject?selProject.id:null" @row-click="onProductSelected" :iterationId="xmIteration?xmIteration.id:null" @clear="onProductClearSelect"></xm-product-select> <xm-product-select ref="xmProductSelect1" style="display:inline;" v-if="(!xmProduct||!xmProduct.id)&&(!xmIteration||!xmIteration.id)" :auto-select="false" :link-project-id="selProject?selProject.id:null" @row-click="onProductSelected" :iterationId="xmIteration?xmIteration.id:null" @clear="onProductClearSelect"></xm-product-select>
@ -386,8 +384,6 @@
size="80%"> size="80%">
<xm-task-mng :sel-project="selProject" :menu-id="editForm.menuId" :menu-name="editForm.menuName"></xm-task-mng> <xm-task-mng :sel-project="selProject" :menu-id="editForm.menuId" :menu-name="editForm.menuName"></xm-task-mng>
</el-drawer> </el-drawer>
</el-col>
</el-row>
<tag-dialog ref="tagDialog" :tagIds="filters.tags?filters.tags.map(i=>i.tagId):[]" :jump="true" @select-confirm="onTagSelected"> <tag-dialog ref="tagDialog" :tagIds="filters.tags?filters.tags.map(i=>i.tagId):[]" :jump="true" @select-confirm="onTagSelected">
</tag-dialog> </tag-dialog>

2
src/views/xm/core/xmProduct/XmProductForLinkComplex.vue

@ -497,7 +497,7 @@ export default {
if (window.history.length > 0) { if (window.history.length > 0) {
this.$router.back(-1); this.$router.back(-1);
} else { } else {
this.$router.push({ path: "/xm/core/xmProduct/XmProductMng" });
this.$router.push({ path: "/xm/core/product/mng" });
} }
}, },

4
src/views/xm/core/xmProduct/index.vue

@ -45,14 +45,14 @@ export default {
}else{ }else{
this.$message.error("产品不存在,请确保产品编号正确") this.$message.error("产品不存在,请确保产品编号正确")
this.$router.push({ this.$router.push({
path:'/xm/core/xmProduct/XmProductMng'
path:'/xm/core/product/mng'
}) })
} }
}else{ }else{
this.$message.error(tips.msg) this.$message.error(tips.msg)
this.$router.push({ this.$router.push({
path:'/xm/core/xmProduct/XmProductMng'
path:'/xm/core/product/mng'
}) })
} }
}) })

2
src/views/xm/core/xmProduct/top-nav.vue

@ -126,7 +126,7 @@
<el-menu-item index="/helpCenter"> <el-menu-item index="/helpCenter">
<span slot="title"><i class="el-icon-date"></i>客服</span> <span slot="title"><i class="el-icon-date"></i>客服</span>
</el-menu-item> </el-menu-item>
<el-menu-item index="/xm/core/xmProduct/XmProductMng" >
<el-menu-item index="/xm/core/product/mng" >
<span slot="title" <span slot="title"
><i class="el-icon-back"></i>回到产品列表页</span ><i class="el-icon-back"></i>回到产品列表页</span
> >

4
src/views/xm/core/xmProject/index.vue

@ -44,14 +44,14 @@ export default {
}else{ }else{
this.$message.error("项目不存在,请确保项目编号正确") this.$message.error("项目不存在,请确保项目编号正确")
this.$router.push({ this.$router.push({
path:'/xm/core/project/mng'
path:'/xm/core/project/mng/me'
}) })
} }
}else{ }else{
this.$message.error(tips.msg) this.$message.error(tips.msg)
this.$router.push({ this.$router.push({
path:'/xm/core/project/mng'
path:'/xm/core/project/mng/me'
}) })
} }
}) })

2
src/views/xm/core/xmProject/top-nav.vue

@ -117,7 +117,7 @@
<el-menu-item index="/helpCenter"> <el-menu-item index="/helpCenter">
<span slot="title"><i class="el-icon-date"></i>客服</span> <span slot="title"><i class="el-icon-date"></i>客服</span>
</el-menu-item> </el-menu-item>
<el-menu-item index="/xm/core/project/mng">
<el-menu-item index="/xm/core/project/mng/me">
<span slot="title" <span slot="title"
><i class="el-icon-back"></i>回到项目列表页</span ><i class="el-icon-back"></i>回到项目列表页</span
> >

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

@ -1,5 +1,5 @@
<template> <template>
<section class="padding-left padding-right">
<section class="padding">
<el-row> <el-row>
<xm-product-select v-if="!xmProduct&&!xmIteration" style="display:inline;" :auto-select="false" :link-project-id="selProject?selProject.id:null" @row-click="onProductSelected" @clear="clearProduct"></xm-product-select> <xm-product-select v-if="!xmProduct&&!xmIteration" style="display:inline;" :auto-select="false" :link-project-id="selProject?selProject.id:null" @row-click="onProductSelected" @clear="clearProduct"></xm-product-select>
<xm-project-select v-if="!selProject" style="display:inline;" ref="xmProjectSelect" :auto-select="false" :link-product-id="xmProduct?xmProduct.id:null" @row-click="onProjectConfirm" @clear="clearProject"></xm-project-select> <xm-project-select v-if="!selProject" style="display:inline;" ref="xmProjectSelect" :auto-select="false" :link-product-id="xmProduct?xmProduct.id:null" @row-click="onProjectConfirm" @clear="clearProject"></xm-project-select>
@ -195,8 +195,9 @@
</el-table-column> </el-table-column>
<el-table-column prop="menuName" label="需求" width="100" show-overflow-tooltip></el-table-column> <el-table-column prop="menuName" label="需求" width="100" show-overflow-tooltip></el-table-column>
</el-table> </el-table>
<el-pagination layout="total, sizes, prev, pager, next" @current-change="handleCurrentChange" @size-change="handleSizeChange" :page-sizes="[10,20, 50, 100, 500]" :current-page="pageInfo.pageNum" :page-size="pageInfo.pageSize" :total="pageInfo.total" style="float:right;"></el-pagination>
</el-row> </el-row>
<el-pagination layout="total, sizes, prev, pager, next" @current-change="handleCurrentChange" @size-change="handleSizeChange" :page-sizes="[10,20, 50, 100, 500]" :current-page="pageInfo.pageNum" :page-size="pageInfo.pageSize" :total="pageInfo.total" style="float:right;"></el-pagination>
<!--编辑 XmQuestion xm_question界面--> <!--编辑 XmQuestion xm_question界面-->
<el-dialog title="编辑缺陷" :visible.sync="editFormVisible" fullscreen top="10px" :close-on-click-modal="false" append-to-body> <el-dialog title="编辑缺陷" :visible.sync="editFormVisible" fullscreen top="10px" :close-on-click-modal="false" append-to-body>
<xm-question-edit :sel-project=" {id:editForm.projectId,name:editForm.projectName} " :xm-product="filters.product" :xm-iteration="xmIteration" :xm-question="editForm" :visible="editFormVisible" @cancel="editFormVisible=false" @submit="afterEditSubmit" @edit-fields="onEditFields"></xm-question-edit> <xm-question-edit :sel-project=" {id:editForm.projectId,name:editForm.projectName} " :xm-product="filters.product" :xm-iteration="xmIteration" :xm-question="editForm" :visible="editFormVisible" @cancel="editFormVisible=false" @submit="afterEditSubmit" @edit-fields="onEditFields"></xm-question-edit>

2
src/views/xm/core/xmRecord/XmRecord.vue

@ -1,5 +1,5 @@
<template> <template>
<section class="page-container padding border">
<section class="padding border">
<el-row v-if="!simple"> <el-row v-if="!simple">
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询"></el-input> <el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询"></el-input>
<span v-if="!objType"><el-radio v-model="filters.objType" v-for="i in objTypeOptions" :label="i.key" :key="i.key">{{i.name}}</el-radio></span> <span v-if="!objType"><el-radio v-model="filters.objType" v-for="i in objTypeOptions" :label="i.key" :key="i.key">{{i.name}}</el-radio></span>

4
src/views/xm/core/xmTestCasedb/index.vue

@ -45,14 +45,14 @@ export default {
}else{ }else{
this.$message.error("测试用例库不存在,请确保测试用例库编号正确") this.$message.error("测试用例库不存在,请确保测试用例库编号正确")
this.$router.push({ this.$router.push({
path:'/xm/core/xmTestCasedb/XmTestCasedbMng'
path:'/xm/core/casedb/mng'
}) })
} }
}else{ }else{
this.$message.error(tips.msg) this.$message.error(tips.msg)
this.$router.push({ this.$router.push({
path:'/xm/core/xmTestCasedb/XmTestCasedbMng'
path:'/xm/core/casedb/mng'
}) })
} }
}) })

2
src/views/xm/core/xmTestCasedb/top-nav.vue

@ -77,7 +77,7 @@
<el-menu-item index="/helpCenter"> <el-menu-item index="/helpCenter">
<span slot="title"><i class="el-icon-date"></i>客服</span> <span slot="title"><i class="el-icon-date"></i>客服</span>
</el-menu-item> </el-menu-item>
<el-menu-item index="/xm/core/xmTestCasedb/XmTestCasedbMng" >
<el-menu-item index="/xm/core/casedb/mng" >
<span slot="title" <span slot="title"
><i class="el-icon-back"></i>回到测试库列表页</span ><i class="el-icon-back"></i>回到测试库列表页</span
> >

Loading…
Cancel
Save