From b50d1fdd6b695494d561eb8428ad224661cc444d Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Thu, 6 Mar 2025 16:27:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E8=B5=84=E4=BA=A7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basic/basicProperty.js | 47 +- src/option/basic/basicProperty.js | 277 ++----- src/views/basic/property/basicProperty.vue | 716 +++++++++++------- .../basic/property/basicPropertyDetails.vue | 51 +- src/views/resource/attach.vue | 8 +- src/views/resource/oss.vue | 1 - 6 files changed, 594 insertions(+), 506 deletions(-) diff --git a/src/api/basic/basicProperty.js b/src/api/basic/basicProperty.js index be305dd8..143f9572 100644 --- a/src/api/basic/basicProperty.js +++ b/src/api/basic/basicProperty.js @@ -1,50 +1,45 @@ import request from '@/axios'; -export const getList = (current, size, params) => { +export const getList = params => { return request({ url: '/api/logpm-basic/property/list', method: 'get', - params: { - ...params, - current, - size, - } - }) -} + params, + }); +}; -export const getDetail = (id) => { +export const getDetail = id => { return request({ url: '/api/logpm-basic/property/detail', method: 'get', params: { - id - } - }) -} + id, + }, + }); +}; -export const remove = (ids) => { +export const remove = ids => { return request({ url: '/api/logpm-basic/property/remove', method: 'post', params: { ids, - } - }) -} + }, + }); +}; -export const add = (row) => { +export const add = row => { return request({ url: '/api/logpm-basic/property/save', method: 'post', - data: row - }) -} + data: row, + }); +}; -export const update = (row) => { +export const update = row => { return request({ url: '/api/logpm-basic/property/update', method: 'post', - data: row - }) -} - + data: row, + }); +}; diff --git a/src/option/basic/basicProperty.js b/src/option/basic/basicProperty.js index 148dd0dc..6d9168e1 100644 --- a/src/option/basic/basicProperty.js +++ b/src/option/basic/basicProperty.js @@ -1,194 +1,83 @@ -export default { - height:'auto', - calcHeight: 30, - tip: false, - searchShow: false, - searchMenuSpan: 6, - border: true, - index: true, - viewBtn: false, - editBtn: false, - selection: true, - addBtn:false, - dialogClickModal: false, - column: [ - { - label: "主键", - prop: "id", - type: "input", - addDisplay: false, - editDisplay: false, - viewDisplay: false, - hide: true, - }, - { - label: "租户号", - prop: "tenantId", - type: "input", - addDisplay: false, - editDisplay: false, - viewDisplay: false, - hide: true, - }, - { - label: "创建人", - prop: "createUser", - type: "input", - addDisplay: false, - editDisplay: false, - viewDisplay: false, - hide: true, - }, - { - label: "创建时间", - prop: "createTime", - type: "input", - addDisplay: false, - editDisplay: false, - viewDisplay: false, - hide: true, - }, - { - label: "更新人", - prop: "updateUser", - type: "input", - addDisplay: false, - editDisplay: false, - viewDisplay: false, - hide: true, - }, - { - label: "更新时间", - prop: "updateTime", - type: "input", - addDisplay: false, - editDisplay: false, - viewDisplay: false, - hide: true, - }, - { - label: "状态", - prop: "status", - type: "input", - addDisplay: false, - editDisplay: false, - viewDisplay: false, - hide: true, - }, - { - label: "是否已删除", - prop: "isDeleted", - type: "input", - addDisplay: false, - editDisplay: false, - viewDisplay: false, - hide: true, - }, - { - label: "创建部门", - prop: "createDept", - type: "input", - addDisplay: false, - editDisplay: false, - viewDisplay: false, - hide: true, - }, - { - label: "预留1", - prop: "reserve1", - type: "input", - addDisplay: false, - editDisplay: false, - viewDisplay: false, - hide: true, - }, - { - label: "预留2", - prop: "reserve2", - type: "input", - addDisplay: false, - editDisplay: false, - viewDisplay: false, - hide: true, - }, - { - label: "预留3", - prop: "reserve3", - type: "input", - addDisplay: false, - editDisplay: false, - viewDisplay: false, - hide: true, - }, - { - label: "预留4", - prop: "reserve4", - type: "input", - addDisplay: false, - editDisplay: false, - viewDisplay: false, - hide: true, - }, - { - label: "预留5", - prop: "reserve5", - type: "input", - addDisplay: false, - editDisplay: false, - viewDisplay: false, - hide: true, - }, - { - label: "资产类型", - prop: "assetType", - type: "select", - labelWidth:'150', - width:"280px", - align:'center', - span:11, - dicUrl: '/api/blade-system/dict-biz/dictionary?code=basic_property_type', - props: { - label: 'dictValue', - value: 'dictKey', - }, - search: true, - }, - { - label: "资产名称", - prop: "assetName", - type: "input", - labelWidth:'150', - width:"270px", - align:'center', - span:11, - search: true, - }, - { - label: "资产统一编号", - prop: "assetId", - type: "input", - labelWidth:'150', - width:"200px", - align:'center', - span:11, - }, - { - label: "资产现有数量", - prop: "assetNub", - type: "input", - labelWidth:'150', - width:"250px", - align:'center', - span:11, - }, - { - label: "备注", - prop: "node", - type: "input", - labelWidth:'150', - width:"360px", - align:'center', - span:11, - }, - ] -} +export const columnList = [ + { + prop: '', + label: '复选框', + type: 0, + width: 55, + fixed: true, + }, + { + prop: '', + label: '序号', + type: 12, + values: '', + width: 55, + fixed: true, + }, + { + label: '资产类型', + prop: 'assetTypeName', + type: 3, + values: '', + width: '200', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + label: '资产名称', + prop: 'assetName', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + label: '资产统一编号', + prop: 'assetId', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + label: '资产现有数量', + prop: 'assetNub', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + + { + label: '备注', + prop: 'remark', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: '', + label: '操作', + type: 6, + values: '', + width: '200', + checkarr: [], + fixed: 'right', + sortable: false, + }, +]; diff --git a/src/views/basic/property/basicProperty.vue b/src/views/basic/property/basicProperty.vue index 7d88e6a4..c86535d1 100644 --- a/src/views/basic/property/basicProperty.vue +++ b/src/views/basic/property/basicProperty.vue @@ -1,274 +1,480 @@ - - diff --git a/src/views/basic/property/basicPropertyDetails.vue b/src/views/basic/property/basicPropertyDetails.vue index 892f4be7..ccec10fc 100644 --- a/src/views/basic/property/basicPropertyDetails.vue +++ b/src/views/basic/property/basicPropertyDetails.vue @@ -354,7 +354,7 @@ export default { this.loading = true; const {} = this.query; let values = {}; - getList(1, 50, values).then(res => { + getList(values).then(res => { const data = res.data.data; // this.page.total = data.total; let activeTabId = data.records[0].id; @@ -638,48 +638,47 @@ export default { }; - diff --git a/src/views/resource/attach.vue b/src/views/resource/attach.vue index 1ad33853..96799660 100644 --- a/src/views/resource/attach.vue +++ b/src/views/resource/attach.vue @@ -19,7 +19,7 @@
删 除 @@ -73,7 +73,7 @@ 下 载 diff --git a/src/views/resource/oss.vue b/src/views/resource/oss.vue index 1ad281b3..ae69c226 100644 --- a/src/views/resource/oss.vue +++ b/src/views/resource/oss.vue @@ -250,7 +250,6 @@ import { mapGetters, useStore } from 'vuex'; /** 获取字典 */ import { getDictionary } from '@/api/system/dict'; import { getList, getDetail, add, update, remove, enable } from '@/api/resource/oss'; -import { getListName } from '@/api/basicdata/basicdataVehicle'; import { setNodeHeight, getHtmls,