refactor: 删除无用代码

This commit is contained in:
shiziyuan9527 2020-09-20 12:42:07 +08:00
parent 3751cebd7e
commit b9509e3725
3 changed files with 15 additions and 25 deletions

View File

@ -204,8 +204,7 @@ export default {
});
},
statusChange(status) {
this.form.status = status;
this.$forceUpdate();
},
close() {
removeGoBackListener(this.close);

View File

@ -220,9 +220,7 @@
<i class="el-icon-refresh" @click="getComments(testCase)"
style="margin-left:10px;font-size: 14px; cursor: pointer"/>
</template>
<tempalte slot="default">
<review-comment :comments="comments" :case-id="testCase.caseId" @getComments="getComments"/>
</tempalte>
<review-comment :comments="comments" :case-id="testCase.caseId" @getComments="getComments"/>
</el-card>
</el-col>
</div>
@ -365,7 +363,7 @@ export default {
}
},
saveReport(reportId) {
this.$post('/test/plan/case/edit', {id: this.testCase.id, reportId: reportId});
// this.$post('/test/plan/case/edit', {id: this.testCase.id, reportId: reportId});
},
getComments(testCase) {
let id = '';

View File

@ -354,7 +354,7 @@ export default {
let param = {};
param.id = this.reviewId;
param.updateTime = Date.now();
this.$post('/test/plan/edit', param);
// this.$post('/test/case/review/edit', param);
}
},
search() {
@ -456,14 +456,7 @@ export default {
this.$refs.testReportTemplateList.open(this.reviewId);
},
statusChange(param) {
this.$post('/test/plan/case/edit', param, () => {
for (let i = 0; i < this.tableData.length; i++) {
if (this.tableData[i].id == param.id) {
this.tableData[i].status = param.status;
break;
}
}
});
},
getTestReviewById() {
if (this.reviewId) {
@ -486,16 +479,16 @@ export default {
this.initTableData();
},
batchEdit(form) {
let param = {};
param[form.type] = form.value;
param.ids = Array.from(this.selectRows).map(row => row.id);
this.$post('/test/plan/case/batch/edit', param, () => {
this.selectRows.clear();
this.status = '';
this.$post('/test/plan/edit/status/' + this.reviewId);
this.$success(this.$t('commons.save_success'));
this.$emit('refresh');
});
// let param = {};
// param[form.type] = form.value;
// param.ids = Array.from(this.selectRows).map(row => row.id);
// this.$post('/test/plan/case/batch/edit', param, () => {
// this.selectRows.clear();
// this.status = '';
// this.$post('/test/plan/edit/status/' + this.reviewId);
// this.$success(this.$t('commons.save_success'));
// this.$emit('refresh');
// });
},
handleBatchEdit() {
this.getMaintainerOptions();