fix: 接口自动化报错

This commit is contained in:
chenjianxing 2020-12-15 20:42:06 +08:00
parent 1344e94e94
commit 884fc213dd
7 changed files with 12 additions and 38 deletions

View File

@ -5,7 +5,7 @@
select select
<include refid="io.metersphere.base.mapper.ApiScenarioModuleMapper.Base_Column_List"/> <include refid="io.metersphere.base.mapper.ApiScenarioModuleMapper.Base_Column_List"/>
from api_scenario_module from api_scenario_module
where api_module.project_id = #{projectId} where api_scenario_module.project_id = #{projectId}
order by create_time asc order by create_time asc
</select> </select>
</mapper> </mapper>

@ -1 +1 @@
Subproject commit 61397c16728a63493507679f7e0940d9099f337f Subproject commit bb494fc68a2367359c9048fa7250c7618de4afb6

View File

@ -1,8 +1,6 @@
<template> <template>
<ms-container> <ms-container>
<ms-aside-container> <ms-aside-container>
<!--<ms-api-scenario-module @selectModule="selectModule" @getApiModuleTree="initTree"-->
<!--@refresh="refresh" @saveAsEdit="editScenario"/>-->
<ms-api-scenario-module <ms-api-scenario-module
@nodeSelectEvent="nodeChange" @nodeSelectEvent="nodeChange"
@refreshTable="refresh" @refreshTable="refresh"

View File

@ -95,9 +95,9 @@
this.visible = false; this.visible = false;
if (saveAs) { if (saveAs) {
this.scenarioForm.request = JSON.stringify(this.scenarioForm.request); this.scenarioForm.request = JSON.stringify(this.scenarioForm.request);
this.$parent.saveAsEdit(this.scenarioForm); this.$emit('saveAsEdit', this.httpForm);
} else { } else {
this.$parent.refresh(this.currentModule); this.$emit('refresh');
} }
}); });
} else { } else {

View File

@ -24,7 +24,10 @@
</ms-node-tree> </ms-node-tree>
<ms-add-basis-scenario ref="basisScenario"/> <ms-add-basis-scenario
@saveAsEdit="saveAsEdit"
@refresh="refresh"
ref="basisScenario"/>
</div> </div>
</template> </template>
@ -65,6 +68,9 @@
'condition.filterText'(val) { 'condition.filterText'(val) {
this.$refs.nodeTree.filter(val); this.$refs.nodeTree.filter(val);
}, },
'condition.trashEnable'() {
this.$emit('enableTrash', this.condition.trashEnable);
},
}, },
methods: { methods: {
@ -145,36 +151,7 @@
}, },
enableTrash() { enableTrash() {
this.condition.trashEnable = true; this.condition.trashEnable = true;
this.$emit('enableTrash', this.condition.trashEnable);
} }
// refresh(data) {
// this.$emit('refresh', data);
// },
// saveAsEdit(data) {
// this.$emit('saveAsEdit', data);
// },
// filterNode(value, data) {
// if (!value) return true;
// return data.name.indexOf(value) !== -1;
// },
// addScenario() {
// this.$refs.basisScenario.open(this.currentModule);
// },
// nodeExpand(data) {
// if (data.id) {
// this.expandedNode.push(data.id);
// }
// },
// nodeCollapse(data) {
// if (data.id) {
// this.expandedNode.splice(this.expandedNode.indexOf(data.id), 1);
// }
// },
// changeProtocol() {
// this.getApiModuleTree();
// this.$emit('changeProtocol', this.protocol);
// }
} }
} }
</script> </script>

View File

@ -61,7 +61,6 @@
import {REQ_METHOD} from "../../model/JsonData"; import {REQ_METHOD} from "../../model/JsonData";
import {getCurrentProjectID, getCurrentUser, getUUID} from "../../../../../../common/js/utils"; import {getCurrentProjectID, getCurrentUser, getUUID} from "../../../../../../common/js/utils";
import {createComponent, Request} from "../jmeter/components"; import {createComponent, Request} from "../jmeter/components";
import HeaderManager from "../jmeter/components/configurations/header-manager";
export default { export default {
name: "MsAddBasisApi", name: "MsAddBasisApi",

@ -1 +1 @@
Subproject commit aaeb324621dc3197c1bcbd3920600c0963fdea08 Subproject commit a22a3005d9bd254793fcf634d72539cbdf31be3a