提交 3853504f 编写于 作者: doc_wei's avatar doc_wei

小程序页面物理删除功能完成

上级 9c550f1c
......@@ -27,4 +27,8 @@ public interface SmProjectPageDao {
public int editSmProjectPageMationById(Map<String, Object> map) throws Exception;
public int deleteSmProjectPageMationById(Map<String, Object> map) throws Exception;
public int deleteSmProjectPageModeMationById(Map<String, Object> map) throws Exception;
}
......@@ -17,4 +17,6 @@ public interface SmProjectPageService {
public void editSmProjectPageMationById(InputObject inputObject, OutputObject outputObject) throws Exception;
public void deleteSmProjectPageMationById(InputObject inputObject, OutputObject outputObject) throws Exception;
}
......@@ -185,6 +185,23 @@ public class SmProjectPageServiceImpl implements SmProjectPageService{
Map<String, Object> map = inputObject.getParams();
smProjectPageDao.editSmProjectPageMationById(map);
}
/**
*
* @Title: deleteSmProjectPageMationById
* @Description: 删除小程序页面信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@Override
public void deleteSmProjectPageMationById(InputObject inputObject, OutputObject outputObject) throws Exception {
Map<String, Object> map = inputObject.getParams();
smProjectPageDao.deleteSmProjectPageMationById(map);//删除页面
smProjectPageDao.deleteSmProjectPageModeMationById(map);//删除页面绑定的小程序组件
}
......
......@@ -81,7 +81,7 @@ public class SmProjectPageController {
/**
*
* @Title: queryDsFormLimitRequirementMationToEditById
* @Title: querySmProjectPageMationToEditById
* @Description: 编辑小程序页面信息时进行回显
* @param @param inputObject
* @param @param outputObject
......@@ -97,7 +97,7 @@ public class SmProjectPageController {
/**
*
* @Title: editDsFormLimitRequirementMationById
* @Title: editSmProjectPageMationById
* @Description: 编辑小程序页面信息
* @param @param inputObject
* @param @param outputObject
......@@ -111,5 +111,21 @@ public class SmProjectPageController {
smProjectPageService.editSmProjectPageMationById(inputObject, outputObject);
}
/**
*
* @Title: deleteSmProjectPageMationById
* @Description: 删除小程序页面信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/SmProjectPageController/deleteSmProjectPageMationById")
@ResponseBody
public void deleteSmProjectPageMationById(InputObject inputObject, OutputObject outputObject) throws Exception{
smProjectPageService.deleteSmProjectPageMationById(inputObject, outputObject);
}
}
......@@ -128,5 +128,21 @@
WHERE id = #{id}
</update>
<delete id="deleteSmProjectPageMationById" parameterType="java.util.Map">
DELETE
FROM
sm_project_page
WHERE
id = #{id}
</delete>
<delete id="deleteSmProjectPageModeMationById" parameterType="java.util.Map">
DELETE
FROM
sm_project_page_mode
WHERE
sm_project_page_id = #{id}
</delete>
</mapper>
\ No newline at end of file
......@@ -316,6 +316,9 @@
<property id="filePath" name="filePath" ref="" var="文件将来的导出路径"/>
<property id="fileName" name="fileName" ref="" var="文件将来的导出名"/>
</url>
<url id="rmxcx035" path="/post/SmProjectPageController/deleteSmProjectPageMationById" val="删除小程序页面信息" allUse="1">
<property id="rowId" name="id" ref="required" var="页面id"/>
</url>
<!-- 小程序系列结束 -->
......
......@@ -72,7 +72,19 @@ layui.config({
},
'click .delPage':function(index, row){//删除
var msg = row ? '确认删除页面【' + row.name + '】吗?' : '确认删除选中数据吗?';
layer.confirm(msg, { icon: 3, title: '删除小程序页面' }, function (index) {
layer.close(index);
//向服务端发送删除指令
AjaxPostUtil.request({url:reqBasePath + "rmxcx035", params:{rowId: row.id}, type:'json', callback:function(json){
if(json.returnCode == 0){
top.winui.window.msg("删除成功", {icon: 1,time: 2000});
refreshGrid("pageList", {params:{rowId: proId}});
}else{
top.winui.window.msg(json.returnMessage, {icon: 2,time: 2000});
}
}});
});
}
},
ajaxSendAfter:function(json){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册