|
@@ -13,14 +13,17 @@
|
|
|
@command="openStatsDialog"
|
|
|
/>
|
|
|
<div style="display: inline-block;float:right">
|
|
|
- <el-dropdown placement="bottom">
|
|
|
+ <span class="newBtn" @click="getToDetails()"><i class="el-icon-document" /> 查看详情</span>
|
|
|
+ <span class="newBtn" style="padding: 0 10px" @click="openQueryDialog()"><i class="el-icon-document-copy" /> 复制</span>
|
|
|
+ <span class="newBtn" @click="openDeleteDialog()"><i class="el-icon-delete" /> 删除</span>
|
|
|
+ <!-- <el-dropdown placement="bottom">
|
|
|
<el-button size="small" plain class="button_delete" style="padding:5px"> ··· </el-button>
|
|
|
<el-dropdown-menu slot="dropdown" style="text-align: center;">
|
|
|
- <el-dropdown-item @click.native="openQueryDialog()">复制</el-dropdown-item>
|
|
|
- <el-dropdown-item @click.native="getToDetails()">查看详情</el-dropdown-item>
|
|
|
- <el-dropdown-item @click.native="openDeleteDialog()">删除</el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="openQueryDialog()">复制 </el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="getToDetails()">查看详情 </el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="openDeleteDialog()">删除 </el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
+ </el-dropdown> -->
|
|
|
<div style="display: inline-block;margin-left: 10px;margin-right: 15px;" @mouseover="iconName = 'float_反馈_icon_close_蓝色'" @mouseleave="iconName = 'float_反馈_icon_close'" @mousedown="closeDrawer();">
|
|
|
<el-button size="medium" type="text" style="margin-top:-5px;">
|
|
|
<svg-icon :icon-class="iconName" />
|
|
@@ -795,18 +798,19 @@ export default {
|
|
|
this.bugGetEnum()
|
|
|
this.$nextTick(() => {
|
|
|
this.bugGet(this.id, false).then(res => {
|
|
|
- this.assignerOptions = []
|
|
|
- for (const i in this.bug.assignerList.length) {
|
|
|
- this.searchUser(this.bug.assigner[i]).then(res => {
|
|
|
- this.assignerOptions = res.data
|
|
|
- })
|
|
|
- }
|
|
|
- this.currentHandlerOptions = []
|
|
|
- for (const i in this.bug.currentHandlerList.length) {
|
|
|
- this.searchUser(this.bug.currentHandler[i]).then(res => {
|
|
|
- this.currentHandlerOptions = res.data
|
|
|
- })
|
|
|
- }
|
|
|
+ // this.assignerOptions = []
|
|
|
+ // for (const i in this.bug.assignerList.length) {
|
|
|
+ // this.searchUser(this.bug.assigner[i]).then(res => {
|
|
|
+ // this.assignerOptions = res.data
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // this.currentHandlerOptions = []
|
|
|
+ // for (const i in this.bug.currentHandlerList.length) {
|
|
|
+ // this.searchUser(this.bug.currentHandler[i]).then(res => {
|
|
|
+ // this.currentHandlerOptions = res.data
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ this.PersonnelData()
|
|
|
this.changeWidthOnBlur()
|
|
|
releaseList().then(res => {
|
|
|
this.appClientList = res.data.appClient // 客户端
|
|
@@ -829,18 +833,7 @@ export default {
|
|
|
this.formHeight = ''
|
|
|
this.formHeight1 = ''
|
|
|
this.bugGet(this.id, false).then(res => {
|
|
|
- this.assignerOptions = []
|
|
|
- for (const i in this.bug.assignerList.length) {
|
|
|
- this.searchUser(this.bug.assigner[i]).then(res => {
|
|
|
- this.assignerOptions = res.data
|
|
|
- })
|
|
|
- }
|
|
|
- this.currentHandlerOptions = []
|
|
|
- for (const i in this.bug.currentHandlerList.length) {
|
|
|
- this.searchUser(this.bug.currentHandler[i]).then(res => {
|
|
|
- this.currentHandlerOptions = res.data
|
|
|
- })
|
|
|
- }
|
|
|
+ this.PersonnelData()
|
|
|
this.changeWidthOnBlur()
|
|
|
this.getCommentList()
|
|
|
releaseList().then(res => {
|
|
@@ -850,6 +843,20 @@ export default {
|
|
|
this.editor.txt.html(this.bugDescribe === null ? '' : this.bugDescribe)
|
|
|
})
|
|
|
},
|
|
|
+ PersonnelData() {
|
|
|
+ this.assignerOptions = []
|
|
|
+ for (const i in this.bug.assignerList.length) {
|
|
|
+ this.searchUser(this.bug.assigner[i]).then(res => {
|
|
|
+ this.assignerOptions = res.data
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.currentHandlerOptions = []
|
|
|
+ for (const i in this.bug.currentHandlerList.length) {
|
|
|
+ this.searchUser(this.bug.currentHandler[i]).then(res => {
|
|
|
+ this.currentHandlerOptions = res.data
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
listen(event) {
|
|
|
event.preventDefault() // 阻止浏览器默认换行操作
|
|
|
return false
|
|
@@ -1007,7 +1014,6 @@ export default {
|
|
|
if (this.num === 0) {
|
|
|
document.getElementsByClassName('scop')[0].scrollTop = 0
|
|
|
}
|
|
|
-
|
|
|
// if (this.type !== 'page') {
|
|
|
// if (res.data.bizId !== Number(localStorage.getItem('bizId'))) {
|
|
|
// Utils.$emit('demo', res.data.bizId)
|
|
@@ -1118,9 +1124,9 @@ export default {
|
|
|
return bugUpdate(objData).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.changeWidthOnBlur()
|
|
|
- this.init()
|
|
|
this.bugModel = JSON.parse(JSON.stringify(this.bug))
|
|
|
this.$emit('update', false)
|
|
|
+ this.init()
|
|
|
} else {
|
|
|
this.bug = JSON.parse(JSON.stringify(this.bugModel))
|
|
|
}
|
|
@@ -1199,9 +1205,6 @@ export default {
|
|
|
statusDialogCancel() {
|
|
|
this.statusDialogVisible = false
|
|
|
},
|
|
|
- blurAss() {
|
|
|
- alert('ddds')
|
|
|
- },
|
|
|
statusDialogConfirm() {
|
|
|
if (this.statusDialogTitle === '删除确认') {
|
|
|
this.bugDelete().then(res => {
|
|
@@ -1512,10 +1515,15 @@ border-color: #DCDFE6;
|
|
|
</style>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
- .str {
|
|
|
- border: '1px solid red';
|
|
|
- border-radius: '4px'
|
|
|
- }
|
|
|
+.newBtn {
|
|
|
+ font-size: 14px;
|
|
|
+ color: rgb(51, 59, 74);
|
|
|
+ font-weight: 500;
|
|
|
+}
|
|
|
+.newBtn:hover {
|
|
|
+ color: #409EFF;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
.current:hover{
|
|
|
border-radius: 4px;
|
|
|
border: 1px solid #DCDFE6;
|