update
This commit is contained in:
@ -70,8 +70,7 @@
|
||||
|
||||
<!-- 表格行工具栏 -->
|
||||
<script type="text/html" id="table-bar">
|
||||
<button class="pear-btn pear-btn-xs tool-btn" lay-event="research">重查</button>
|
||||
<button class="pear-btn pear-btn-xs tool-btn" lay-event="edit">编辑</button>
|
||||
<button class="pear-btn pear-btn-xs tool-btn" lay-event="edit">编辑</button>
|
||||
<button class="pear-btn pear-btn-xs tool-btn" lay-event="delete">删除</button>
|
||||
</script>
|
||||
|
||||
@ -84,7 +83,6 @@
|
||||
// 相关常量
|
||||
const PRIMARY_KEY = "id";
|
||||
|
||||
const RESEARCH_API = '/admin/api/keywords/monitor/research';
|
||||
const DELETE_API = '/admin/api/website/config/delete';
|
||||
const INDEX_API = '/admin/api/website/config';
|
||||
const VIEW_API = "/admin/api/website/config/view";
|
||||
@ -266,31 +264,6 @@
|
||||
});
|
||||
}
|
||||
|
||||
let research = function (obj) {
|
||||
layer.confirm("确定重查?", {
|
||||
icon: 3,
|
||||
title: "提示"
|
||||
}, function (index) {
|
||||
layer.close(index);
|
||||
let loading = layer.load();
|
||||
layui.$.ajax({
|
||||
url: RESEARCH_API,
|
||||
type: "POST",
|
||||
dateType: "json",
|
||||
data: {
|
||||
id: obj.data.id
|
||||
},
|
||||
success: function (res) {
|
||||
layer.close(loading);
|
||||
if (res.code) {
|
||||
return layui.popup.failure(res.msg);
|
||||
}
|
||||
return layui.popup.success("操作成功", refreshTable);
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
// 删除一行
|
||||
let remove = function (obj) {
|
||||
return doRemove(obj.data[PRIMARY_KEY]);
|
||||
|
Reference in New Issue
Block a user