fix:默认字段
This commit is contained in:
parent
6fe9101144
commit
cec4ff28c2
|
@ -244,7 +244,7 @@
|
||||||
return {
|
return {
|
||||||
type: API_SCENARIO_LIST,
|
type: API_SCENARIO_LIST,
|
||||||
headerItems: Api_Scenario_List,
|
headerItems: Api_Scenario_List,
|
||||||
tableLabel: [],
|
tableLabel: Api_Scenario_List,
|
||||||
loading: false,
|
loading: false,
|
||||||
screenHeight: document.documentElement.clientHeight - 280,//屏幕高度,
|
screenHeight: document.documentElement.clientHeight - 280,//屏幕高度,
|
||||||
condition: {
|
condition: {
|
||||||
|
|
|
@ -186,7 +186,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
type: API_CASE_LIST,
|
type: API_CASE_LIST,
|
||||||
headerItems: Api_Case_List,
|
headerItems: Api_Case_List,
|
||||||
tableLabel: [],
|
tableLabel: Api_Case_List,
|
||||||
condition: {
|
condition: {
|
||||||
components: API_CASE_CONFIGS
|
components: API_CASE_CONFIGS
|
||||||
},
|
},
|
||||||
|
|
|
@ -272,7 +272,7 @@
|
||||||
return {
|
return {
|
||||||
type: API_LIST,
|
type: API_LIST,
|
||||||
headerItems: Api_List,
|
headerItems: Api_List,
|
||||||
tableLabel: [],
|
tableLabel: Api_List,
|
||||||
condition: {
|
condition: {
|
||||||
components: API_DEFINITION_CONFIGS
|
components: API_DEFINITION_CONFIGS
|
||||||
},
|
},
|
||||||
|
|
|
@ -47,18 +47,14 @@ export default {
|
||||||
},
|
},
|
||||||
open(items) {
|
open(items) {
|
||||||
this.defaultCheckedKeys = []
|
this.defaultCheckedKeys = []
|
||||||
|
|
||||||
this.dialogTableVisible = true
|
this.dialogTableVisible = true
|
||||||
this.fieldSelected = items
|
|
||||||
if (items.size <= 0) {
|
|
||||||
this.optionalField = this.optionalFields
|
|
||||||
} else {
|
|
||||||
items.forEach(i => {
|
items.forEach(i => {
|
||||||
this.defaultCheckedKeys.push(i.id)
|
this.defaultCheckedKeys.push(i.id)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
|
||||||
console.log(this.defaultCheckedKeys)
|
console.log(this.defaultCheckedKeys)
|
||||||
|
console.log(this.optionalFields)
|
||||||
|
console.log(this.fieldSelected)
|
||||||
|
|
||||||
},
|
},
|
||||||
saveHeader() {
|
saveHeader() {
|
||||||
|
@ -83,7 +79,6 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 切换模式 现有树形穿梭框模式transfer 和通讯录模式addressList
|
// 切换模式 现有树形穿梭框模式transfer 和通讯录模式addressList
|
||||||
// changeMode() {
|
// changeMode() {
|
||||||
// if (this.mode == "transfer") {
|
// if (this.mode == "transfer") {
|
||||||
|
|
|
@ -105,13 +105,12 @@ export default {
|
||||||
this.testCaseForm.projectId = getCurrentProjectID();
|
this.testCaseForm.projectId = getCurrentProjectID();
|
||||||
this.testCaseForm.type = "";
|
this.testCaseForm.type = "";
|
||||||
this.testCaseForm.priority = "P0";
|
this.testCaseForm.priority = "P0";
|
||||||
this.testCaseForm.method = "manual";
|
if (this.currentModule !== undefined || this.currentModule !== null || this.currentModule !== 0 || this.currentModule !== "") {
|
||||||
if(this.currentModule!==undefined){
|
|
||||||
this.testCaseForm.nodePath = this.currentModule.path;
|
this.testCaseForm.nodePath = this.currentModule.path;
|
||||||
this.testCaseForm.nodeId = this.currentModule.id;
|
this.testCaseForm.nodeId = this.currentModule.id;
|
||||||
}else{
|
} else {
|
||||||
this.testCaseForm.nodePath="/全部用例"
|
this.testCaseForm.nodePath = "/全部用例"
|
||||||
this.testCaseForm.nodeId="root"
|
this.testCaseForm.nodeId = "root"
|
||||||
}
|
}
|
||||||
this.result = this.$post(path, this.testCaseForm, response => {
|
this.result = this.$post(path, this.testCaseForm, response => {
|
||||||
this.testCaseForm.id=response.data.id
|
this.testCaseForm.id=response.data.id
|
||||||
|
|
|
@ -259,7 +259,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
type: TEST_CASE_LIST,
|
type: TEST_CASE_LIST,
|
||||||
headerItems: Track_Test_Case,
|
headerItems: Track_Test_Case,
|
||||||
tableLabel: [],
|
tableLabel: Track_Test_Case,
|
||||||
result: {},
|
result: {},
|
||||||
deletePath: "/test/case/delete",
|
deletePath: "/test/case/delete",
|
||||||
condition: {
|
condition: {
|
||||||
|
|
|
@ -248,7 +248,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
type: TEST_PLAN_LIST,
|
type: TEST_PLAN_LIST,
|
||||||
headerItems: Test_Plan_List,
|
headerItems: Test_Plan_List,
|
||||||
tableLabel: [],
|
tableLabel: Test_Plan_List,
|
||||||
result: {},
|
result: {},
|
||||||
enableDeleteTip: false,
|
enableDeleteTip: false,
|
||||||
queryPath: "/test/plan/list",
|
queryPath: "/test/plan/list",
|
||||||
|
|
|
@ -192,7 +192,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
type: TEST_PLAN_API_CASE,
|
type: TEST_PLAN_API_CASE,
|
||||||
headerItems: Test_Plan_Api_Case,
|
headerItems: Test_Plan_Api_Case,
|
||||||
tableLabel: [],
|
tableLabel: Test_Plan_Api_Case,
|
||||||
condition: {},
|
condition: {},
|
||||||
selectCase: {},
|
selectCase: {},
|
||||||
result: {},
|
result: {},
|
||||||
|
|
|
@ -148,7 +148,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
type: TEST_PLAN_SCENARIO_CASE,
|
type: TEST_PLAN_SCENARIO_CASE,
|
||||||
headerItems: Test_Plan_Scenario_Case,
|
headerItems: Test_Plan_Scenario_Case,
|
||||||
tableLabel: [],
|
tableLabel: Test_Plan_Scenario_Case,
|
||||||
loading: false,
|
loading: false,
|
||||||
condition: {},
|
condition: {},
|
||||||
currentScenario: {},
|
currentScenario: {},
|
||||||
|
|
|
@ -312,7 +312,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
type: TEST_PLAN_FUNCTION_TEST_CASE,
|
type: TEST_PLAN_FUNCTION_TEST_CASE,
|
||||||
headerItems: Test_Plan_Function_Test_Case,
|
headerItems: Test_Plan_Function_Test_Case,
|
||||||
tableLabel: [],
|
tableLabel: Test_Plan_Function_Test_Case,
|
||||||
result: {},
|
result: {},
|
||||||
deletePath: "/test/case/delete",
|
deletePath: "/test/case/delete",
|
||||||
condition: {
|
condition: {
|
||||||
|
|
|
@ -154,7 +154,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
type: TEST_PLAN_LOAD_CASE,
|
type: TEST_PLAN_LOAD_CASE,
|
||||||
headerItems: Test_Plan_Load_Case,
|
headerItems: Test_Plan_Load_Case,
|
||||||
tableLabel: [],
|
tableLabel: Test_Plan_Load_Case,
|
||||||
condition: {},
|
condition: {},
|
||||||
result: {},
|
result: {},
|
||||||
tableData: [],
|
tableData: [],
|
||||||
|
|
Loading…
Reference in New Issue