diff --git a/src/api/search/equipment.js b/src/api/search/equipment.js index 124c4092..8886def8 100644 --- a/src/api/search/equipment.js +++ b/src/api/search/equipment.js @@ -27,6 +27,14 @@ export function getRentDetailApi(query) { }) } +// 获取出租装备列表 +export function getLeaseDevListApi(query) { + return request({ + url: '/material-mall/comprehensive/getLeaseDevList', + method: 'get', + params: query + }) +} diff --git a/src/main.js b/src/main.js index 26f48963..b3e94197 100644 --- a/src/main.js +++ b/src/main.js @@ -25,6 +25,7 @@ import { selectDictLabel, selectDictLabels, handleTree, + indexContinuation } from '@/utils/bonus' // 分页组件 import Pagination from '@/components/Pagination' @@ -58,6 +59,7 @@ Vue.prototype.selectDictLabels = selectDictLabels Vue.prototype.download = download Vue.prototype.handleTree = handleTree Vue.prototype.globalUrl = global_ +Vue.prototype.indexContinuation = indexContinuation // 全局组件挂载 Vue.component('DictTag', DictTag) Vue.component('Pagination', Pagination) diff --git a/src/utils/bonus.js b/src/utils/bonus.js index 36e2b1a0..de49f057 100644 --- a/src/utils/bonus.js +++ b/src/utils/bonus.js @@ -232,3 +232,8 @@ export function tansParams(params) { export function blobValidate(data) { return data.type !== 'application/json' } + +// 处理表格索引延续问题 +export function indexContinuation(num, size) { + return (num - 1) * size + 1 +} \ No newline at end of file diff --git a/src/views/leaseSearch/index.vue b/src/views/leaseSearch/index.vue new file mode 100644 index 00000000..db9f55ea --- /dev/null +++ b/src/views/leaseSearch/index.vue @@ -0,0 +1,168 @@ + + + + +