|
@@ -53,6 +53,7 @@
|
|
|
</div>
|
|
|
<div class="display-messege-end">
|
|
|
<div class="divide-threeparts">reopen次数 : {{ form.reopenTimes }}</div>
|
|
|
+ <div class="divide-threeparts">reopen原因 : {{ form.reopenReason }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="block-end">
|
|
@@ -159,6 +160,17 @@
|
|
|
<el-button type="primary" @click="queryFormDataRepair">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog :visible.sync="dialogInReopen" width="40%">
|
|
|
+ <el-form ref="refeshReopenDialog" :model="pauseData" :rules="serviceDataRules">
|
|
|
+ <el-form-item label="reopen原因" prop="pauseReopenReason" label-width="30%">
|
|
|
+ <el-input v-model="pauseData.pauseReopenReason" type="textarea" autocomplete="off" rows="3" style="width:76%;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogInReopen = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="queryFormDataReopen">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -174,6 +186,7 @@ export default {
|
|
|
id: ''
|
|
|
},
|
|
|
fileList: [],
|
|
|
+ dialogInReopen: false,
|
|
|
uptataKey: [],
|
|
|
formUpdateValue: {},
|
|
|
dialogVisible: false,
|
|
@@ -183,13 +196,16 @@ export default {
|
|
|
bugTypePause: '',
|
|
|
pauseCurrentHandler: '',
|
|
|
pauseRepairResult: '',
|
|
|
- pauseReasonsAndSolutionForTheProblem: ''
|
|
|
+ pauseReasonsAndSolutionForTheProblem: '',
|
|
|
+ pauseReopenReason: ''
|
|
|
},
|
|
|
serviceDataRules: {
|
|
|
pauseCurrentHandler: [{ required: true, message: '处理人不能为空', trigger: 'blur' }],
|
|
|
reasonPause: [{ required: true, message: '问题原因不能为空', trigger: 'change' }],
|
|
|
bugTypePause: [{ required: true, message: 'bug类型不能为空', trigger: 'change' }],
|
|
|
- pauseRepairResult: [{ required: true, message: '修复结果不能为空', trigger: 'change' }]
|
|
|
+ pauseRepairResult: [{ required: true, message: '修复结果不能为空', trigger: 'change' }],
|
|
|
+ pauseReopenReason: [{ required: true, message: 'reopen原因不能为空', trigger: 'change' }]
|
|
|
+ // pauseReasonsAndSolutionForTheProblem: [{ required: true, message: '修复方式不能为空', trigger: 'change' }]
|
|
|
},
|
|
|
bizId: '',
|
|
|
optionsCurrentHandlerQA: [],
|
|
@@ -262,7 +278,7 @@ export default {
|
|
|
bugGet(this.$route.query.id).then(res => {
|
|
|
this.form = res.data
|
|
|
this.$nextTick(() => {
|
|
|
- document.getElementById('specialP').childNodes[0].style.cssText = 'margin-top:0'
|
|
|
+ if (document.getElementById('specialP').childNodes[0])document.getElementById('specialP').childNodes[0].style.cssText = 'margin-top:0'
|
|
|
if (document.getElementById('specialPAnother').childNodes[0])document.getElementById('specialPAnother').childNodes[0].style.cssText = 'margin-top:0'
|
|
|
})
|
|
|
this.fileList = []
|
|
@@ -311,6 +327,32 @@ export default {
|
|
|
cancelInput() {
|
|
|
this.pauseData.pauseCurrentHandler = ''
|
|
|
},
|
|
|
+ // reopen弹窗
|
|
|
+ queryFormDataReopen() {
|
|
|
+ this.$refs.refeshReopenDialog.validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ this.formUpdateValue.currentHandler = this.form.currentHandler
|
|
|
+ this.formUpdateValue.id = this.form.id
|
|
|
+ this.formUpdateValue.status = this.form.status
|
|
|
+ this.formUpdateValue.reopenReason = this.pauseData.pauseReopenReason
|
|
|
+ this.userData = { id: '', ename: this.userInformation, name: this.userNames }
|
|
|
+ this.objData = { bugBaseInfo: this.formUpdateValue, user: this.userData }
|
|
|
+ bugUpdate(this.objData).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.successFun()
|
|
|
+ this._initBegin()
|
|
|
+ if (this.$refs.refeshReopenDialog !== undefined) {
|
|
|
+ this.$refs.refeshReopenDialog.resetFields()
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.errorFun()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.dialogInReopen = false
|
|
|
+ this.formUpdateValue = {}
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
statusChange(e) {
|
|
|
if (e === 1) {
|
|
|
this.dialogInDevelopment = true
|
|
@@ -323,6 +365,8 @@ export default {
|
|
|
this.pauseData.bugTypePause = this.form.bugType
|
|
|
} else if (e === 3) {
|
|
|
this.dialogInRepairResult = true
|
|
|
+ } else if (e === 4) {
|
|
|
+ this.dialogInReopen = true
|
|
|
} else {
|
|
|
this.formUpdateValue.currentHandler = this.form.currentHandler
|
|
|
this.formUpdateValue.id = this.form.id
|