@ -1,34 +1,20 @@
< template >
< template >
< section class = "page-container padding border" >
< el -row class = "page-main" >
< section >
< el -row >
<!-- 列表 XmQuestionHandle xm_question_handle -- >
<!-- 列表 XmQuestionHandle xm_question_handle -- >
< el -table ref = "table" :height ="tableHeight" :data ="xmQuestionHandles" @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 ="tableHeight" :data ="xmQuestionHandles" @sort-change ="sortChange" highlight -current -row v-loading ="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;" >
< el -table -column sortable type = "index" width = "60" > < / e l - t a b l e - c o l u m n >
< el -table -column prop = "handlerUsername" label = "指派" min -width = " 80 " >
< template slot -scope = " scope " >
< div v-if ="scope.row.targetUserid==scope.row.handlerUserid" >
{ { scope . row . handlerUsername } } & nbsp ; & nbsp ; 提交 \ 保存
< / div >
< div v-if ="scope.row.targetUserid!=scope.row.handlerUserid" >
{ { scope . row . handlerUsername } } & nbsp ; & nbsp ; 指派给 & nbsp ; & nbsp ; { { scope . row . targetUsername } }
< / div >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "receiptMessage" label = "处理意见" min -width = " 80 " > < / e l - t a b l e - c o l u m n >
< el -table -column prop = "receiptTime" label = "时间" min -width = " 80 " > < / e l - t a b l e - c o l u m n >
< el -table -column prop = "handleStatus" label = "状态" min -width = " 80 " >
< el -table -column prop = "handleStatus" label = "bug状态" width = "100" >
< template slot -scope = " scope " >
< template slot -scope = " scope " >
< el -tag type = "info" v-if ="scope.row.handleStatus=='create' " > 创建 < / el -tag >
< el -tag type = "primary" v -else -if = " scope.row.handleStatus = = ' active ' " > 已激活 < / e l - t a g >
< el -tag type = "warning" v -else -if = " scope.row.handleStatus = = ' confirm ' " > 确认 < / e l - t a g >
< el -tag type = "warning" v -else -if = " scope.row.handleStatus = = ' confirmed ' " > 已确认 < / e l - t a g >
< el -tag type = "success" v -else -if = " scope.row.handleStatus = = ' solve ' " > 解决 < / e l - t a g >
< el -tag type = "success" v -else -if = " scope.row.handleStatus = = ' resolved ' " > 已解决 < / e l - t a g >
< el -tag type = "success" v -else -if = " scope.row.handleStatus = = ' close ' " > 关闭 < / e l - t a g >
< el -tag type = "success" v -else -if = " scope.row.handleStatus = = ' closed ' " > 已关闭 < / e l - t a g >
< el -tag v-else > {{ scope.row.handleStatus }} < / el -tag >
< el -tag v-for ="(item,index) in formatDictsWithClass(dicts,'bugStatus',scope.row.handleStatus)" :key="index" :type="item.className" > {{ item.name }} < / el -tag >
< / template >
< / template >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "receiptMessage" label = "处理意见" min -width = " 150 " >
< template slot -scope = " scope " >
< div style = "max-height:100px;overflow:auto;" v-html ="scope.row.receiptMessage" > < / div >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "receiptTime" label = "时间" width = "100" > < / e l - t a b l e - c o l u m n >
< / e l - t a b l e >
< / e l - t a b l e >
< 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;" > < / e l - p a g i n a t i o n >
< 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;" > < / e l - p a g i n a t i o n >
< / e l - r o w >
< / e l - r o w >
@ -38,7 +24,7 @@
< script >
< script >
import util from '@/common/js/util' ; / / 全 局 公 共 库
import util from '@/common/js/util' ; / / 全 局 公 共 库
/ / i m p o r t S t i c k y f r o m ' @ / c o m p o n e n t s / S t i c k y ' / / 粘 性 h e a d e r 组 件
/ / i m p o r t S t i c k y f r o m ' @ / c o m p o n e n t s / S t i c k y ' / / 粘 性 h e a d e r 组 件
/ / i m p o r t { i n i t S i m p l e D i c t s } f r o m ' @ / a p i / m d p / m e t a / i t e m ' ; / / 下 拉 框 数 据 查 询
import { initSimpleDicts } from '@/api/mdp/meta/item' ; / / 下 拉 框 数 据 查 询
import { listXmQuestionHandle , delXmQuestionHandle , batchDelXmQuestionHandle } from '@/api/xm/core/xmQuestionHandle' ;
import { listXmQuestionHandle , delXmQuestionHandle , batchDelXmQuestionHandle } from '@/api/xm/core/xmQuestionHandle' ;
import { mapGetters } from 'vuex'
import { mapGetters } from 'vuex'
@ -73,7 +59,9 @@
} ,
} ,
load : { list : false , edit : false , del : false , add : false } , / / 查 询 中 . . .
load : { list : false , edit : false , del : false , add : false } , / / 查 询 中 . . .
sels : [ ] , / / 列 表 选 中 数 据
sels : [ ] , / / 列 表 选 中 数 据
dicts : { } , / / 下 拉 选 择 框 的 所 有 静 态 数 据 p a r a m s = [ { c a t e g o r y I d : ' 0 0 0 1 ' , i t e m C o d e : ' s e x ' } ] 返 回 结 果 { ' s e x ' : [ { o p t i o n V a l u e : ' 1 ' , o p t i o n N a m e : ' 男 ' , s e q O r d e r : ' 1 ' , f p : ' ' , i s D e f a u l t : ' 0 ' } , { o p t i o n V a l u e : ' 2 ' , o p t i o n N a m e : ' 女 ' , s e q O r d e r : ' 2 ' , f p : ' ' , i s D e f a u l t : ' 0 ' } ] }
dicts : {
bugStatus : [ ] ,
} , / / 下 拉 选 择 框 的 所 有 静 态 数 据 p a r a m s = [ { c a t e g o r y I d : ' 0 0 0 1 ' , i t e m C o d e : ' s e x ' } ] 返 回 结 果 { ' s e x ' : [ { o p t i o n V a l u e : ' 1 ' , o p t i o n N a m e : ' 男 ' , s e q O r d e r : ' 1 ' , f p : ' ' , i s D e f a u l t : ' 0 ' } , { o p t i o n V a l u e : ' 2 ' , o p t i o n N a m e : ' 女 ' , s e q O r d e r : ' 2 ' , f p : ' ' , i s D e f a u l t : ' 0 ' } ] }
addFormVisible : false , / / 新 增 x m Q u e s t i o n H a n d l e 界 面 是 否 显 示
addFormVisible : false , / / 新 增 x m Q u e s t i o n H a n d l e 界 面 是 否 显 示
/ / 新 增 x m Q u e s t i o n H a n d l e 界 面 初 始 化 数 据
/ / 新 增 x m Q u e s t i o n H a n d l e 界 面 初 始 化 数 据
@ -93,6 +81,7 @@
}
}
} , / / e n d d a t a
} , / / e n d d a t a
methods : {
methods : {
... util ,
handleSizeChange ( pageSize ) {
handleSizeChange ( pageSize ) {
this . pageInfo . pageSize = pageSize ;
this . pageInfo . pageSize = pageSize ;
this . getXmQuestionHandles ( ) ;
this . getXmQuestionHandles ( ) ;
@ -230,6 +219,11 @@
mounted ( ) {
mounted ( ) {
this . $nextTick ( ( ) => {
this . $nextTick ( ( ) => {
initSimpleDicts ( 'all' , [ 'bugStatus' ] ) . then ( res => {
if ( res . data . tips . isOk ) {
this . dicts = res . data . data
}
} ) ;
this . tableHeight = util . calcTableMaxHeight ( this . $refs . table . $el ) ;
this . tableHeight = util . calcTableMaxHeight ( this . $refs . table . $el ) ;
this . getXmQuestionHandles ( ) ;
this . getXmQuestionHandles ( ) ;
} ) ;
} ) ;