diff --git a/public/json/list.json b/public/json/list.json new file mode 100644 index 00000000..2995eed9 --- /dev/null +++ b/public/json/list.json @@ -0,0 +1,31 @@ +{ + "code": 200, + "count": 85, + "data": [ + { + "id": "1", + "name": "Sakuya", + "audit": "1", + "date": "2021-04-01 13:56:38", + "yx": "81883387@qq.com", + "progress": 89.5 + }, + { + "id": "2", + "name": "John Martinez", + "audit": "1", + "date": "2020-10-14 17:21:20", + "yx": "k.luhkpev@zdgtfd.ma", + "progress": 65.5 + }, + { + "id": "3", + "name": "Karen Miller", + "audit": "0", + "date": "2020-07-05 09:30:00", + "yx": "h.hgvwmw@xjuf.pa", + "progress": 65.5 + } + ], + "message": "" +} diff --git a/src/api/index.js b/src/api/index.js index 1e9c10a5..6cc30afa 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -26,6 +26,15 @@ const api = { get: async function(data){ return await http.get(this.url, data); } + }, + demolist: { + list: { + url: `${config.apiUrl}/json/list.json`, + name: "列表数据", + get: async function(data){ + return await http.get(this.url, data); + } + } } } } diff --git a/src/components/scTable/index.vue b/src/components/scTable/index.vue index e3e60f01..2056b978 100644 --- a/src/components/scTable/index.vue +++ b/src/components/scTable/index.vue @@ -1,21 +1,21 @@ @@ -23,28 +23,63 @@ @@ -52,5 +87,5 @@ diff --git a/src/style/style.less b/src/style/style.less index 75983473..13775650 100644 --- a/src/style/style.less +++ b/src/style/style.less @@ -96,5 +96,5 @@ a,button,input,textarea{-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing: bo .el-header {background: #fff;border-bottom: 1px solid #e6e6e6;padding:13px 15px;} .el-footer {background: #fff;border-top: 1px solid #e6e6e6;padding:13px 15px;} .el-main {padding:15px;} -.el-pagination {margin-top: 20px;} .el-drawer__body {overflow: auto;} +.el-popconfirm__main {margin: 14px 0;} diff --git a/src/views/template/normallist.vue b/src/views/template/normallist.vue index 1fba63b8..fe42c2df 100644 --- a/src/views/template/normallist.vue +++ b/src/views/template/normallist.vue @@ -1,15 +1,73 @@