fix: 表头修改

This commit is contained in:
wenyann 2021-03-26 18:12:25 +08:00
parent d12ec06066
commit 5ac89f8410
13 changed files with 11 additions and 29 deletions

View File

@ -374,7 +374,6 @@
},
methods: {
customHeader() {
getLabel(this, API_SCENARIO_LIST);
this.$refs.headerCustom.open(this.tableLabel)
},
selectByParam() {

View File

@ -264,11 +264,9 @@ export default {
this.$nextTick(() => {
this.$refs.caseTable.bodyWrapper.scrollTop = 5
})
getLabel(this, API_CASE_LIST);
},
watch: {
selectNodeIds() {
getLabel(this, API_CASE_LIST);
this.initTable();
},
currentProtocol() {
@ -294,11 +292,9 @@ export default {
},
methods: {
customHeader() {
getLabel(this, API_CASE_LIST);
this.$refs.headerCustom.open(this.tableLabel)
},
initTable() {
getLabel(this, API_CASE_LIST);
this.selectRows = new Set();
this.condition.status = "";
this.condition.moduleIds = this.selectNodeIds;

View File

@ -383,7 +383,6 @@
this.getSystemLabel(this.type)
this.initTable();
this.getMaintainerOptions();
getLabel(this, API_LIST);
},
watch: {
selectNodeIds() {
@ -413,7 +412,6 @@
})
},
customHeader() {
getLabel(this, API_LIST);
this.$refs.headerCustom.open(this.tableLabel)
},
handleBatchMove() {

View File

@ -309,7 +309,7 @@ export default {
this.condition.filters = {status: ["Prepare", "Pass", "UnPass"]};
}
this.initTableData();
getSystemLabel(this, this.type)
},
activated() {
if (this.trashEnable) {
@ -330,7 +330,6 @@ export default {
},
methods: {
customHeader() {
getLabel(this, TEST_CASE_LIST);
this.$refs.headerCustom.open(this.tableLabel)
},
getSelectDataRange() {
@ -352,6 +351,7 @@ export default {
this.condition.nodeIds = this.selectNodeIds;
}
getLabel(this, TEST_CASE_LIST);
this.getData();
},
getData() {

View File

@ -295,7 +295,6 @@ export default {
},
methods: {
inite() {
getLabel(this, TEST_PLAN_LIST);
this.initTableData()
},
calPassRate(scope) {
@ -303,7 +302,6 @@ export default {
return Number.parseInt(passRate, 10);
},
customHeader() {
getLabel(this, TEST_PLAN_LIST);
this.$refs.headerCustom.open(this.tableLabel)
},
initTableData() {

View File

@ -304,8 +304,6 @@ export default {
},
methods: {
customHeader() {
getLabel(this, TEST_PLAN_API_CASE);
this.$refs.headerCustom.open(this.tableLabel)
},
getMaintainerOptions() {

View File

@ -201,8 +201,6 @@ export default {
},
methods: {
customHeader() {
getLabel(this, TEST_PLAN_SCENARIO_CASE);
this.$refs.headerCustom.open(this.tableLabel)
},
search() {

View File

@ -429,7 +429,6 @@ export default {
},
methods: {
customHeader() {
getLabel(this, TEST_PLAN_FUNCTION_TEST_CASE);
this.$refs.headerCustom.open(this.tableLabel)
},

View File

@ -211,7 +211,6 @@ export default {
},
methods: {
customHeader() {
getLabel(this, TEST_PLAN_LOAD_CASE);
this.$refs.headerCustom.open(this.tableLabel)
},
initTable() {

View File

@ -183,7 +183,6 @@ export default {
},
methods: {
customHeader() {
getLabel(this, TEST_CASE_REVIEW_LIST);
this.$refs.headerCustom.open(this.tableLabel)
},

View File

@ -301,7 +301,6 @@ export default {
},
methods: {
customHeader() {
getLabel(this, TEST_CASE_REVIEW_CASE_LIST);
this.$refs.headerCustom.open(this.tableLabel)
},
initTableData() {

View File

@ -114,15 +114,14 @@ export function getLabel(vueObj, type) {
vueObj.result = vueObj.$post('/system/header/info', param, response => {
if (response.data != null) {
vueObj.tableLabel = eval(response.data.props);
}
})
}
export function getSystemLabel(vueObj, type) {
let param = {}
param.type=type
vueObj.result = vueObj.$post('/system/system/header',param, response => {
if (response.data != null) {
vueObj.tableLabel = eval(response.data.props);
}else{
let param = {}
param.type=type
vueObj.result = vueObj.$post('/system/system/header',param, response => {
if (response.data != null) {
vueObj.tableLabel = eval(response.data.props);
}
})
}
})
}

View File

@ -1193,7 +1193,7 @@ export default {
batch_delete_case: '批量删除',
batch_unlink: '批量取消关联',
project_name: '所属项目',
status: '评审状态',
status: '评审结果',
status_prepare: '未评审',
status_pass: '通过',
status_un_pass: '未通过',