fix(UI自动化): 修复元素库导出不能勾选元素问题
--bug=1014991 --user=刘瑶 【UI测试】元素库-导出不能勾选导出 https://www.tapd.cn/55049933/s/1204083
This commit is contained in:
parent
6cf24a2418
commit
b69593ffb1
|
@ -8,4 +8,6 @@ public interface UiTaskRefreshMapper {
|
||||||
UiTaskRefresh getByTaskKey(@Param("taskKey") String taskKey);
|
UiTaskRefresh getByTaskKey(@Param("taskKey") String taskKey);
|
||||||
|
|
||||||
void insert(UiTaskRefresh uiTaskRefresh);
|
void insert(UiTaskRefresh uiTaskRefresh);
|
||||||
|
|
||||||
|
void update(@Param("refresh") UiTaskRefresh refresh);
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,4 +18,18 @@
|
||||||
#{id}, #{taskKey}, #{taskStatus}, #{createTime}
|
#{id}, #{taskKey}, #{taskStatus}, #{createTime}
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
<update id="update" parameterType="io.metersphere.base.domain.UiTaskRefresh">
|
||||||
|
UPDATE
|
||||||
|
ui_task_refresh
|
||||||
|
<set>
|
||||||
|
<if test="refresh.taskKey != null">
|
||||||
|
task_key = #{refresh.taskKey},
|
||||||
|
</if>
|
||||||
|
<if test="refresh.taskStatus != null">
|
||||||
|
task_status = #{refresh.taskStatus},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
WHERE id = #{refresh.id}
|
||||||
|
</update>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -266,7 +266,9 @@ public class ProjectService {
|
||||||
extModuleNodeMapper.insert(ProjectModuleDefaultNodeEnum.UI_SCENARIO_DEFAULT_NODE.getTableName(), record);
|
extModuleNodeMapper.insert(ProjectModuleDefaultNodeEnum.UI_SCENARIO_DEFAULT_NODE.getTableName(), record);
|
||||||
record.setId(UUID.randomUUID().toString());
|
record.setId(UUID.randomUUID().toString());
|
||||||
record.setName(ProjectModuleDefaultNodeEnum.UI_ELEMENT_DEFAULT_NODE.getNodeName());
|
record.setName(ProjectModuleDefaultNodeEnum.UI_ELEMENT_DEFAULT_NODE.getNodeName());
|
||||||
|
record.setModulePath("/" + record.getName());
|
||||||
extModuleNodeMapper.insertWithModulePath(ProjectModuleDefaultNodeEnum.UI_ELEMENT_DEFAULT_NODE.getTableName(), record);
|
extModuleNodeMapper.insertWithModulePath(ProjectModuleDefaultNodeEnum.UI_ELEMENT_DEFAULT_NODE.getTableName(), record);
|
||||||
|
record.setModulePath(null);
|
||||||
|
|
||||||
ApiModule apiRecord = new ApiModule();
|
ApiModule apiRecord = new ApiModule();
|
||||||
BeanUtils.copyBean(apiRecord, record);
|
BeanUtils.copyBean(apiRecord, record);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit a9abdd910d6ae37351e2ecec6dfd830bd20e24ad
|
Subproject commit 806edbbea6b2b3fffbb18b8fb83f4d293a1eed34
|
|
@ -1 +1 @@
|
||||||
Subproject commit 1bbac774ec8f5dec7b177ba84967c98b1140a56d
|
Subproject commit d357c326a70088b0827ba1ced1d9cc035866170d
|
|
@ -3291,6 +3291,7 @@ export default {
|
||||||
step_results: "Step results",
|
step_results: "Step results",
|
||||||
treatment_method: "Treatment method",
|
treatment_method: "Treatment method",
|
||||||
scenario_steps: "Scenario steps",
|
scenario_steps: "Scenario steps",
|
||||||
basic_information: "Basic information"
|
basic_information: "Basic information",
|
||||||
|
check_element: "Please select the elements"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -3347,6 +3347,7 @@ export default {
|
||||||
step_results: "步骤结果",
|
step_results: "步骤结果",
|
||||||
treatment_method: "处理方式",
|
treatment_method: "处理方式",
|
||||||
scenario_steps: "场景步骤",
|
scenario_steps: "场景步骤",
|
||||||
basic_information: "基础信息"
|
basic_information: "基础信息",
|
||||||
|
check_element: "请勾选元素"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -3294,6 +3294,7 @@ export default {
|
||||||
step_results: "步骤结果",
|
step_results: "步骤结果",
|
||||||
treatment_method: "處理方式",
|
treatment_method: "處理方式",
|
||||||
scenario_steps: "場景步驟",
|
scenario_steps: "場景步驟",
|
||||||
basic_information: "基礎信息"
|
basic_information: "基礎信息",
|
||||||
|
check_element: "請勾選元素"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue