Ver código fonte

业务锁管理

lichao 3 anos atrás
pai
commit
8f70829e62
2 arquivos alterados com 67 adições e 0 exclusões
  1. 20 0
      src/api/lock/lock.js
  2. 47 0
      src/views/system/lock/config/mainList.json

+ 20 - 0
src/api/lock/lock.js

@@ -24,3 +24,23 @@ export function unLock(data) {
     params: data
   })
 }
+// 锁定列表查询
+export const lockList = (current, size, params) => {
+  return request({
+    url: '/api/blade-client/lock/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+// 删除锁
+export function lockRemove(data) {
+  return request({
+    url: '/api/blade-client/lock/remove',
+    method: 'post',
+    params: data
+  })
+}

+ 47 - 0
src/views/system/lock/config/mainList.json

@@ -0,0 +1,47 @@
+{
+  "searchShow": true,
+  "searchMenuSpan": 8,
+  "border": true,
+  "index": true,
+  "viewBtn": false,
+  "editBtn": false,
+  "delBtn": false,
+  "addBtn": false,
+  "align": "center",
+  "menuWidth": "120",
+  "menu": true,
+  "showSummary": true,
+  "searchIcon": true,
+  "searchIndex": 2,
+  "selection": true,
+  "tip":false,
+  "expand": false,
+  "expandWidth": 38,
+  "column": [
+    {
+      "label": "模块名称",
+      "prop": "moudleName",
+      "search": true,
+      "index": 2,
+      "minWidth": 80,
+      "overHidden": true,
+      "searchSpan": 8
+    },{
+      "label": "操作者",
+      "prop": "realName",
+      "search": false,
+      "index": 3,
+      "minWidth": 80,
+      "overHidden": true,
+      "searchSpan": 8
+    },{
+      "label": "业务锁时间",
+      "prop": "lockTime",
+      "search": false,
+      "index": 4,
+      "minWidth": 80,
+      "overHidden": true,
+      "searchSpan": 8
+    }
+  ]
+}