diff --git a/lib/layui/lay/okmodules/okMock.js b/lib/layui/lay/okmodules/okMock.js index 9be7450..3aa893a 100644 --- a/lib/layui/lay/okmodules/okMock.js +++ b/lib/layui/lay/okmodules/okMock.js @@ -29,6 +29,9 @@ layui.define([], function(exprots) { task: { list: "https://www.easy-mock.com/mock/5d5d0dd46cfcbd1b8627bf1d/ok-admin-v2.0/task/list" }, + link: { + list: "https://www.easy-mock.com/mock/5d5d0dd46cfcbd1b8627bf1d/ok-admin-v2.0/link/list" + }, product: { list: "https://www.easy-mock.com/mock/5d5d0dd46cfcbd1b8627bf1d/ok-admin-v2.0/product/list" }, diff --git a/pages/often/link.html b/pages/often/link.html index 5a23050..5cea660 100644 --- a/pages/often/link.html +++ b/pages/often/link.html @@ -52,7 +52,7 @@ var articleTable = table.render({ elem: "#tableId", - url: okMock.api.article.list, + url: okMock.api.link.list, limit: 20, page: true, even: true, @@ -61,12 +61,11 @@ cols: [[ {type: "checkbox", fixed: "left"}, {field: "guid", title: "GUID", width: 280, sort: true}, - {field: "title", title: "标题", width: 350}, + {field: "name", title: "名称", width: 350}, + {field: "remarks", title: "备注", width: 350}, {field: "url", title: "链接", width: 250, templet: "#urlTpl"}, - {field: "publisher", title: "发布者", width: 100}, - {field: "readSize", title: "阅读量", width: 80}, - {field: "isTop", title: "是否置顶", width: 100, align: "center", templet: "#topTpl"}, - {field: "status", title: "发布状态", width: 110, align: "center", templet: "#statusTpl"}, + {field: "status", title: "状态", width: 110, align: "center", templet: "#statusTpl"}, + {field: "createTime", title: "创建时间", width: 150}, {title: "操作", width: 100, align: "center", fixed: "right", templet: "#operationTpl"} ]], done: function (res, curr, count) { @@ -189,34 +188,26 @@ - + + + - - - + + - - +