|
|
@ -1,25 +1,23 @@ |
|
|
<template> |
|
|
<template> |
|
|
<section> |
|
|
<section> |
|
|
<el-row class="xm-question"> |
|
|
<el-row class="xm-question"> |
|
|
<el-menu active-text-color="#00abfc" :default-active="filters.bugStatus" @select="changeBugStatus" class="el-menu-demo" mode="horizontal"> |
|
|
|
|
|
<el-menu-item class="showall" index="">全部状态</el-menu-item> |
|
|
|
|
|
<el-menu-item v-for="(b,index) in options['bugStatus']" :index="b.optionValue" :key="index">{{b.optionName}}</el-menu-item> |
|
|
|
|
|
<div style="line-height:50px;float:right;margin-right:10px;"> |
|
|
|
|
|
<el-button @click="showAdd" type="primary" icon="el-icon-plus">{{qtype=='risk'?'新建风险':'新建问题'}}</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-menu> |
|
|
|
|
|
<el-menu active-text-color="#00abfc" :default-active="filters.solution" @select="changeSolution" class="el-menu-demo" mode="horizontal"> |
|
|
|
|
|
<el-menu-item class="showall" index="">全部方案</el-menu-item> |
|
|
|
|
|
<el-menu-item v-for="(b,index) in options['bugSolution']" :index="b.optionValue" :key="index">{{b.optionName}}</el-menu-item> |
|
|
|
|
|
</el-menu> |
|
|
|
|
|
<el-menu active-text-color="#00abfc" :default-active="filters.bugSeverity" @select="changeBugSeverity" class="el-menu-demo" mode="horizontal"> |
|
|
|
|
|
<el-menu-item class="showall" index="">严重程度</el-menu-item> |
|
|
|
|
|
<el-menu-item v-for="(b,index) in options['bugSeverity']" :index="b.optionValue" :key="index">{{b.optionName}}</el-menu-item> |
|
|
|
|
|
</el-menu> |
|
|
|
|
|
<el-menu active-text-color="#00abfc" :default-active="filters.priority" @select="changePriority" class="el-menu-demo" mode="horizontal"> |
|
|
|
|
|
<el-menu-item class="showall" index="">紧急程度</el-menu-item> |
|
|
|
|
|
<el-menu-item v-for="(b,index) in options['urgencyLevel']" :index="b.optionValue" :key="index">{{b.optionName}}</el-menu-item> |
|
|
|
|
|
<div style="line-height:50px;float:right;margin-right:10px;"> |
|
|
|
|
|
|
|
|
<el-row class="app-container"> |
|
|
|
|
|
<el-select v-model="filters.bugStatus" placeholder="请选择状态" clearable @change="changeBugStatus"> |
|
|
|
|
|
<el-option v-for="(b,index) in options['bugStatus']" :value="b.optionValue" :key="index" :label="b.optionName">{{b.optionName}} |
|
|
|
|
|
</el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
<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> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
<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}} |
|
|
|
|
|
</el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
<el-select 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}} |
|
|
|
|
|
</el-option> |
|
|
|
|
|
</el-select> |
|
|
<el-tag v-if="filters.selProject && !selProject" closable @close="clearProject" @click="showProjectList(true)">{{ filters.selProject.name }}</el-tag> |
|
|
<el-tag v-if="filters.selProject && !selProject" closable @close="clearProject" @click="showProjectList(true)">{{ filters.selProject.name }}</el-tag> |
|
|
<el-tag v-if="!filters.selProject" @click="showProjectList(true)" type="success">未选项目,点我</el-tag> |
|
|
<el-tag v-if="!filters.selProject" @click="showProjectList(true)" type="success">未选项目,点我</el-tag> |
|
|
指派给:<el-tag v-if="!filters.handlerUsername" @click="showGroupUsers('handlerUsername')">未选,点我</el-tag><el-tag v-if="filters.handlerUsername" closable @close="clearHandler" @click="showGroupUsers('handlerUsername')">{{filters.handlerUsername}}</el-tag> |
|
|
指派给:<el-tag v-if="!filters.handlerUsername" @click="showGroupUsers('handlerUsername')">未选,点我</el-tag><el-tag v-if="filters.handlerUsername" closable @close="clearHandler" @click="showGroupUsers('handlerUsername')">{{filters.handlerUsername}}</el-tag> |
|
|
@ -31,10 +29,10 @@ |
|
|
</el-input> |
|
|
</el-input> |
|
|
|
|
|
|
|
|
<el-button @click="handleExport" type="primary" icon="el-icon-download">导出</el-button> |
|
|
<el-button @click="handleExport" type="primary" icon="el-icon-download">导出</el-button> |
|
|
</div> |
|
|
|
|
|
</el-menu> |
|
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row class="app-container"> |
|
|
<!--列表 XmQuestion xm_question--> |
|
|
<!--列表 XmQuestion xm_question--> |
|
|
<el-table max-height="750" :data="xmQuestions" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;"> |
|
|
|
|
|
|
|
|
<el-table max-height="650" :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 sortable type="index" width="45"></el-table-column> |
|
|
<el-table-column sortable type="index" width="45"></el-table-column> |
|
|
<el-table-column prop="name" label="问题名称" min-width="200"> |
|
|
<el-table-column prop="name" label="问题名称" min-width="200"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
@ -90,7 +88,7 @@ |
|
|
</el-table-column> |
|
|
</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-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> |
|
|
<!--编辑 XmQuestion xm_question界面--> |
|
|
<!--编辑 XmQuestion xm_question界面--> |
|
|
<el-dialog title="编辑问题" :visible.sync="editFormVisible" fullscreen width="100%" append-to-body :close-on-click-modal="false"> |
|
|
<el-dialog title="编辑问题" :visible.sync="editFormVisible" fullscreen width="100%" append-to-body :close-on-click-modal="false"> |
|
|
<xm-question-edit :sel-project=" {id:editForm.projectId,name:editForm.projectName} " :xm-question="editForm" :visible="editFormVisible" @cancel="editFormVisible=false" @submit="afterEditSubmit"></xm-question-edit> |
|
|
<xm-question-edit :sel-project=" {id:editForm.projectId,name:editForm.projectName} " :xm-question="editForm" :visible="editFormVisible" @cancel="editFormVisible=false" @submit="afterEditSubmit"></xm-question-edit> |
|
|
|