@ -1,132 +1,129 @@
< template >
< template >
< section class = "page-container padding" >
< el -row class = "page-main" >
<!-- 列表 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 -column prop = "name" label = "缺陷名称" min -width = " 200 " >
< template slot = "header" slot -scope = " scope " >
< el -row >
< el -select v-model ="filters.bugStatus" placeholder="请选择状态" style="width:15%;" clearable @change="changeBugStatus" >
< section class = "padding" >
< el -row >
< el -select v-model ="filters.bugStatus" placeholder="请选择状态" style="width:15%;" clearable @change="changeBugStatus" >
< el -option v-for ="(b,index) in options['bugStatus']" :value="b.optionValue" :key="index" :label="b.optionName" > {{ b.optionName }}
< / e l - o p t i o n >
< / e l - s e l e c t >
< el -select class = "hidden-md-and-down" v-model ="filters.priority" placeholder="紧急程度" style="width:15%;" clearable @change="changePriority" >
< el -option v-for ="(b,index) in options['urgencyLevel']" :value="b.optionValue" :key="index" :label="b.optionName" > {{ b.optionName }}
< / e l - o p t i o n >
< / e l - s e l e c t >
< el -select class = "hidden-md-and-down" v-model ="filters.bugSeverity" placeholder="请选择严重程度" clearable @change="changeBugSeverity" >
< el -option v-for ="(b,index) in options['bugSeverity']" :value="b.optionValue" :key="index" :label="b.optionName" > {{ b.optionName }}
< / e l - o p t i o n >
< / e l - s e l e c t >
< el -tag v-if =" filters.product " closable @close="clearProduct" > {{ this.filters.product.productName }} < / el -tag >
< el -button v -else @click ="showProductVisible" type = "plian" > 选产品 < / e l - b u t t o n >
< el -button v-if =" !filters.menus || filters.menus.length==0" @click="showMenu" > 选择故事 < / el -button >
< el -tag v -else closable @close ="clearFiltersMenu(filters.menus[0])" > {{ filters.menus [ 0 ] .menuName.substr ( 0 , 5 ) }} 等 ( {{ filters.menus.length }} ) 个 < / el -tag >
< el -input style = "width:200px;" v-model ="filters.key" placeholder="缺陷名称" >
< template slot = "append" >
< el -button @click ="searchXmQuestions" type = "primary" icon = "el-icon-search" > < / e l - b u t t o n >
< / template >
< / e l - i n p u t >
< el -button type = "primary" icon = "el-icon-plus" @click ="showAdd" >
< / e l - b u t t o n >
< el -popover
placement = "top-start"
title = "更多查询条件或操作"
width = "600"
trigger = "click" >
< el -row >
< el -col :span ="24" style = "padding-top:5px;" >
< font class = "more-label-font" > 产品 : < / font > < el -tag v-if =" filters.product " closable @close="clearProduct" > {{ this.filters.product.productName }} < / el -tag >
< el -button v -else @click ="showProductVisible" type = "plian" > 选产品 < / e l - b u t t o n >
< / e l - c o l >
< el -col :span ="24" style = "padding-top:12px;" v-if ="!selProject" >
< font class = "more-label-font" > 项目 : < / font >
< el -tag v-if ="filters.selProject && !selProject" closable @close="clearProject" @click="showProjectList(true)" > {{ filters.selProject.name }} < / el -tag >
< el -button v -else @click ="showProjectList(true)" > 选择项目 < / e l - b u t t o n >
< / e l - c o l >
< el -col :span ="24" style = "padding-top:12px;" >
< font class = "more-label-font" > 创建者 : < / font >
< el -button v-if ="!filters.createUser" @click="showGroupUsers('createUser')" > 选择创建人 < / el -button >
< el -tag v -else closable @close ="clearCreateUser" @click ="showGroupUsers('createUser')" > {{ filters.createUser.username }} < / el -tag >
< el -button v-if ="!filters.createUser||filters.createUser.userid!=userInfo.userid" @click="setFiltersCreateUserAsMySelf" > 我的 < / el -button >
< / e l - c o l >
< el -col :span ="24" style = "padding-top:12px;" >
< font class = "more-label-font" > 指派给 : < / font >
< el -button v-if ="!filters.handlerUsername" @click="showGroupUsers('handlerUser')" > 选择被指派人 < / el -button >
< el -tag v -else closable @close ="clearHandler" @click ="showGroupUsers('handlerUser')" > {{ filters.handlerUsername }} < / el -tag >
< el -button v-if ="filters.handlerUserid!=userInfo.userid" @click="setFiltersHandlerAsMySelf" > 我的 < / el -button >
< / e l - c o l >
< el -col :span ="24" style = "padding-top:12px;" >
曾经由 < el -button v-if ="!filters.hisHandler||!filters.hisHandler.userid" @click="showGroupUsers('hisHandler')" > 执行人 < / el -button >
< el -tag v -else closable @close ="clearHisHandler" @click ="showGroupUsers('hisHandler')" > {{ filters.hisHandler.username }} < / el -tag >
< el -button v-if ="!filters.hisHandler||filters.hisHandler.userid!=userInfo.userid" @click="setFiltersHisHandlerAsMySelf" > 我的 < / el -button >
变更状态为
< el -select v-model ="filters.hisHandleStatus" placeholder="请选择状态" clearable @change="changeHisHandleStatus" >
< el -option v-for ="(b,index) in options['bugStatus']" :value="b.optionValue" :key="index" :label="b.optionName" > {{ b.optionName }}
< el -option v-for ="(b,index) in options['bugStatus']" :value="b.optionValue" :key="index" :label="b.optionName" > {{ b.optionName }}
< / e l - o p t i o n >
< / e l - o p t i o n >
< / e l - s e l e c t >
< el -select class = "hidden-md-and-down" v-model ="filters.priority" placeholder="紧急程度" style="width:15%;" clearable @change="changePriority" >
< / e l - s e l e c t > 的 缺 陷
< / e l - c o l >
< el -col :span ="24" style = "padding-top:5px;" >
< font class = "more-label-font" > 故事 : < / font >
< font v-if =" filters.menus && filters.menus.length>0" >
< el -tag v-for ="(item,index) in filters.menus" :key="index" closable @close="clearFiltersMenu(item)" > {{ item.menuName.substr ( 0 , 10 ) }} < / el -tag >
< / font >
< el -button v -else @click ="showMenu" type = "plian" > 选故事 < / e l - b u t t o n >
< / e l - c o l >
< el -col :span ="24" class = "hidden-lg-and-up" style = "padding-top:12px;" >
< el -select v-model ="filters.priority" placeholder="请选择紧急程度" clearable @change="changePriority" >
< el -option v-for ="(b,index) in options['urgencyLevel']" :value="b.optionValue" :key="index" :label="b.optionName" > {{ b.optionName }}
< el -option v-for ="(b,index) in options['urgencyLevel']" :value="b.optionValue" :key="index" :label="b.optionName" > {{ b.optionName }}
< / e l - o p t i o n >
< / e l - o p t i o n >
< / e l - s e l e c t >
< / e l - s e l e c t >
< el -select class = "hidden-md-and-down" v-model ="filters.bugSeverity" placeholder="请选择严重程度" clearable @change="changeBugSeverity" >
< el -option v-for ="(b,index) in options['bugSeverity']" :value="b.optionValue" :key="index" :label="b.optionName" > {{ b.optionName }}
< / e l - c o l >
< el -col :span ="24" style = "padding-top:12px;" >
< el -select v-model ="filters.solution" placeholder="请选择解决方案" clearable @change="changeSolution" >
< el -option v-for ="(b,index) in options['bugSolution']" :value="b.optionValue" :key="index" :label="b.optionName" > {{ b.optionName }}
< / e l - o p t i o n >
< / e l - o p t i o n >
< / e l - s e l e c t >
< / e l - s e l e c t >
< el -tag v-if =" filters.product " closable @close="clearProduct" > {{ this.filters.product.productName }} < / el -tag >
< el -button v -else @click ="showProductVisible" type = "plian" > 选产品 < / e l - b u t t o n >
< el -button v-if =" !filters.menus || filters.menus.length==0" @click="showMenu" > 选择故事 < / el -button >
< el -tag v -else closable @close ="clearFiltersMenu(filters.menus[0])" > {{ filters.menus [ 0 ] .menuName.substr ( 0 , 5 ) }} 等 ( {{ filters.menus.length }} ) 个 < / el -tag >
< el -input style = "width:200px;" v-model ="filters.key" placeholder="缺陷名称" >
< template slot = "append" >
< el -button @click ="searchXmQuestions" type = "primary" icon = "el-icon-search" > < / e l - b u t t o n >
< / template >
< / e l - i n p u t >
< el -button type = "primary" icon = "el-icon-plus" @click ="showAdd" >
< / e l - b u t t o n >
< el -popover
placement = "top-start"
title = "更多查询条件或操作"
width = "600"
trigger = "click" >
< el -row >
< el -col :span ="24" style = "padding-top:5px;" >
< font class = "more-label-font" > 产品 : < / font > < el -tag v-if =" filters.product " closable @close="clearProduct" > {{ this.filters.product.productName }} < / el -tag >
< el -button v -else @click ="showProductVisible" type = "plian" > 选产品 < / e l - b u t t o n >
< / e l - c o l >
< el -col :span ="24" style = "padding-top:12px;" v-if ="!selProject" >
< font class = "more-label-font" > 项目 : < / font >
< el -tag v-if ="filters.selProject && !selProject" closable @close="clearProject" @click="showProjectList(true)" > {{ filters.selProject.name }} < / el -tag >
< el -button v -else @click ="showProjectList(true)" > 选择项目 < / e l - b u t t o n >
< / e l - c o l >
< el -col :span ="24" style = "padding-top:12px;" >
< font class = "more-label-font" > 创建者 : < / font >
< el -button v-if ="!filters.createUser" @click="showGroupUsers('createUser')" > 选择创建人 < / el -button >
< el -tag v -else closable @close ="clearCreateUser" @click ="showGroupUsers('createUser')" > {{ filters.createUser.username }} < / el -tag >
< el -button v-if ="!filters.createUser||filters.createUser.userid!=userInfo.userid" @click="setFiltersCreateUserAsMySelf" > 我的 < / el -button >
< / e l - c o l >
< el -col :span ="24" style = "padding-top:12px;" >
< font class = "more-label-font" > 指派给 : < / font >
< el -button v-if ="!filters.handlerUsername" @click="showGroupUsers('handlerUser')" > 选择被指派人 < / el -button >
< el -tag v -else closable @close ="clearHandler" @click ="showGroupUsers('handlerUser')" > {{ filters.handlerUsername }} < / el -tag >
< el -button v-if ="filters.handlerUserid!=userInfo.userid" @click="setFiltersHandlerAsMySelf" > 我的 < / el -button >
< / e l - c o l >
< el -col :span ="24" style = "padding-top:12px;" >
曾经由 < el -button v-if ="!filters.hisHandler||!filters.hisHandler.userid" @click="showGroupUsers('hisHandler')" > 执行人 < / el -button >
< el -tag v -else closable @close ="clearHisHandler" @click ="showGroupUsers('hisHandler')" > {{ filters.hisHandler.username }} < / el -tag >
< el -button v-if ="!filters.hisHandler||filters.hisHandler.userid!=userInfo.userid" @click="setFiltersHisHandlerAsMySelf" > 我的 < / el -button >
变更状态为
< el -select v-model ="filters.hisHandleStatus" placeholder="请选择状态" clearable @change="changeHisHandleStatus" >
< el -option v-for ="(b,index) in options['bugStatus']" :value="b.optionValue" :key="index" :label="b.optionName" > {{ b.optionName }}
< / e l - o p t i o n >
< / e l - s e l e c t > 的 缺 陷
< / e l - c o l >
< el -col :span ="24" style = "padding-top:5px;" >
< font class = "more-label-font" > 故事 : < / font >
< font v-if =" filters.menus && filters.menus.length>0" >
< el -tag v-for ="(item,index) in filters.menus" :key="index" closable @close="clearFiltersMenu(item)" > {{ item.menuName.substr ( 0 , 10 ) }} < / el -tag >
< / font >
< el -button v -else @click ="showMenu" type = "plian" > 选故事 < / e l - b u t t o n >
< / e l - c o l >
< el -col :span ="24" class = "hidden-lg-and-up" style = "padding-top:12px;" >
< el -select v-model ="filters.priority" placeholder="请选择紧急程度" clearable @change="changePriority" >
< el -option v-for ="(b,index) in options['urgencyLevel']" :value="b.optionValue" :key="index" :label="b.optionName" > {{ b.optionName }}
< / e l - o p t i o n >
< / e l - s e l e c t >
< / e l - c o l >
< el -col :span ="24" style = "padding-top:12px;" >
< el -select v-model ="filters.solution" placeholder="请选择解决方案" clearable @change="changeSolution" >
< el -option v-for ="(b,index) in options['bugSolution']" :value="b.optionValue" :key="index" :label="b.optionName" > {{ b.optionName }}
< / e l - o p t i o n >
< / e l - s e l e c t >
< / e l - c o l >
< el -col :span ="24" style = "padding-top:5px;" >
< font class = "more-label-font" > 创建时间 : < / font >
< el -date -picker
v - model = "dateRanger"
type = "daterange"
align = "right"
unlink - panels
range - separator = "至"
start - placeholder = "开始日期"
end - placeholder = "完成日期"
value - format = "yyyy-MM-dd"
: default - time = "['00:00:00','23:59:59']"
: picker - options = "pickerOptions"
> < / e l - d a t e - p i c k e r >
< / e l - c o l >
< el -col :span ="24" style = "padding-top:5px;" >
< font class = "more-label-font" > 最后更新时间 : < / font >
< el -date -picker
v - model = "ltimeRanger"
type = "daterange"
align = "right"
unlink - panels
range - separator = "至"
start - placeholder = "更新时间"
end - placeholder = "更新时间"
value - format = "yyyy-MM-dd"
: default - time = "['00:00:00','23:59:59']"
: picker - options = "pickerOptions"
> < / e l - d a t e - p i c k e r >
< / e l - c o l >
< el -col :span ="24" style = "padding-top:5px;" >
< el -button type = "primary" icon = "el-icon-search" @click ="searchXmQuestions" > 查询 < / el -button >
< el -button @click ="handleExport" icon = "el-icon-download" > 导出 < / e l - b u t t o n >
< / e l - c o l >
< / e l - r o w >
< el -button slot = "reference" icon = "el-icon-more" circle > < / e l - b u t t o n >
< / e l - p o p o v e r >
< / e l - r o w >
< / template >
< / e l - c o l >
< el -col :span ="24" style = "padding-top:5px;" >
< font class = "more-label-font" > 创建时间 : < / font >
< el -date -picker
v - model = "dateRanger"
type = "daterange"
align = "right"
unlink - panels
range - separator = "至"
start - placeholder = "开始日期"
end - placeholder = "完成日期"
value - format = "yyyy-MM-dd"
: default - time = "['00:00:00','23:59:59']"
: picker - options = "pickerOptions"
> < / e l - d a t e - p i c k e r >
< / e l - c o l >
< el -col :span ="24" style = "padding-top:5px;" >
< font class = "more-label-font" > 最后更新时间 : < / font >
< el -date -picker
v - model = "ltimeRanger"
type = "daterange"
align = "right"
unlink - panels
range - separator = "至"
start - placeholder = "更新时间"
end - placeholder = "更新时间"
value - format = "yyyy-MM-dd"
: default - time = "['00:00:00','23:59:59']"
: picker - options = "pickerOptions"
> < / e l - d a t e - p i c k e r >
< / e l - c o l >
< el -col :span ="24" style = "padding-top:5px;" >
< el -button type = "primary" icon = "el-icon-search" @click ="searchXmQuestions" > 查询 < / el -button >
< el -button @click ="handleExport" icon = "el-icon-download" > 导出 < / e l - b u t t o n >
< / e l - c o l >
< / e l - r o w >
< el -button slot = "reference" icon = "el-icon-more" circle > < / e l - b u t t o n >
< / e l - p o p o v e r >
< / e l - r o w >
< el -row class = "padding-top" >
<!-- 列表 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 -column prop = "name" label = "缺陷名称" min -width = " 200 " >
< template slot -scope = " scope " >
< template slot -scope = " scope " >
< div >
< div >
< span >
< span >
@ -173,7 +170,7 @@
< / e l - d r a w e r >
< / e l - d r a w e r >
<!-- 新增 XmQuestion xm_question界面 -- >
<!-- 新增 XmQuestion xm_question界面 -- >
< el -drawer title = "新增缺陷" :visible.sync ="addFormVisible" width = "100% " append -to -body :close-on-click-modal ="false" >
< el -drawer title = "新增缺陷" :visible.sync ="addFormVisible" :with-header ="false" :size ="750 " append -to -body :close-on-click-modal ="false" >
< xm -question -add :xm-test-case-exec ="xmTestCaseExec" :xm-test-case ="xmTestCase" :qtype ="qtype" : sel -project = " filters.selProject " :xm-question ="addForm" :visible ="addFormVisible" @cancel ="addFormVisible=false" @submit ="afterAddSubmit" > < / xm -question -add >
< xm -question -add :xm-test-case-exec ="xmTestCaseExec" :xm-test-case ="xmTestCase" :qtype ="qtype" : sel -project = " filters.selProject " :xm-question ="addForm" :visible ="addFormVisible" @cancel ="addFormVisible=false" @submit ="afterAddSubmit" > < / xm -question -add >
< / e l - d r a w e r >
< / e l - d r a w e r >
< el -drawer title = "选中用户" v-if =" filters.selProject " :visible.sync="selectUserVisible" size="80%" append-to-body :close-on-click-modal="false" >
< el -drawer title = "选中用户" v-if =" filters.selProject " :visible.sync="selectUserVisible" size="80%" append-to-body :close-on-click-modal="false" >
@ -905,6 +902,7 @@
var subHeight = 70 / 1000 * window . innerHeight ;
var subHeight = 70 / 1000 * window . innerHeight ;
this . tableHeight = window . innerHeight - clientRect . y - this . $refs . table . $el . offsetTop - subHeight ;
this . tableHeight = window . innerHeight - clientRect . y - this . $refs . table . $el . offsetTop - subHeight ;
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 => {
if ( res . data . tips . isOk ) {
if ( res . data . tips . isOk ) {
this . options [ 'bugSeverity' ] = res . data . data . bugSeverity
this . options [ 'bugSeverity' ] = res . data . data . bugSeverity
@ -914,8 +912,6 @@
this . options [ 'urgencyLevel' ] = res . data . data . urgencyLevel
this . options [ 'urgencyLevel' ] = res . data . data . urgencyLevel
}
}
} ) ;
} ) ;
} ) ;
}
}
}
}