diff --git a/src/api/basic/estate/index.js b/src/api/basic/estate/index.js index 58ad023..cdf10c8 100644 --- a/src/api/basic/estate/index.js +++ b/src/api/basic/estate/index.js @@ -9,6 +9,30 @@ export function buildingList(params) { params: params, }) } +// 楼栋新增 +export function buildInsert(params) { + return httpService({ + url: `/user/building/insert`, + method: 'post', + data: params, + }) +} +// 楼栋新增 +export function buildInfo(params) { + return httpService({ + url: `/user/building/findById`, + method: 'get', + params: params, + }) +} +// 楼栋修改 +export function buildUpdate(params) { + return httpService({ + url: `/user/building/updateBuilding`, + method: 'post', + data: params, + }) +} // 楼栋删除 export function buildingDel(params) { return httpService({ @@ -17,7 +41,32 @@ export function buildingDel(params) { data: params, }) } - +/** + * 单元 + * list update del + */ +export function unitAdd(params) { + return httpService({ + url: `/user/unit/insertUnit`, + method: 'post', + data: params, + }) +} +export function unitUpdate(params) { + return httpService({ + url: `/user/unit/updateUnit`, + method: 'post', + data: params, + }) +} +export function unitDel(params) { + return httpService({ + url: `/user/unit/deleteUnit`, + method: 'post', + data: params, + }) +} +// 房屋 // 房屋列表 export function houseList(params) { return httpService({ @@ -26,7 +75,7 @@ export function houseList(params) { params: params, }) } -// 房屋列表 +// 房屋新增 export function houseInsert(params) { return httpService({ url: `/user/estate/insert`, @@ -42,7 +91,7 @@ export function houseDel(params) { data: params, }) } -// 房屋租聘切换 +// 房屋租赁切换 export function isEnableLease(params) { return httpService({ url: `/user/estate/isEnableLease`, @@ -50,3 +99,35 @@ export function isEnableLease(params) { params: params, }) } +// 房屋设置 房屋类型 +export function estateType(params) { + return httpService({ + url: `/user/estateType/list`, + method: 'get', + params: params, + }) +} +// 类型新增 +export function estateTypeInsert(params) { + return httpService({ + url: `/user/estateType/insert`, + method: 'post', + data: params, + }) +} +// 类型修改 +export function estateTypeUpdate(params) { + return httpService({ + url: `/user/estateType/update`, + method: 'post', + data: params, + }) +} +// 类型删除 +export function estateTypeDel(params) { + return httpService({ + url: `/user/estateType/delete`, + method: 'post', + data: params, + }) +} \ No newline at end of file diff --git a/src/utils/util.js b/src/utils/util.js index 624c142..21d0dfb 100644 --- a/src/utils/util.js +++ b/src/utils/util.js @@ -1,10 +1,13 @@ import store from '@/store' export default { install: function (Vue) { - Vue.prototype.$upload = process.env.VUE_APP_URL + store.getters.getCommunityCode +'/manage/user/upload/uploadTestMinioImg' - Vue.prototype.ImgUrl = (src) => { - return process.env.VUE_APP_STATIC + src + // 上传 + Vue.prototype.$upload = process.env.VUE_APP_URL + store.getters.getCommunityCode + '/manage/user/upload/uploadImg' + // 静态地址 + Vue.prototype.$ImgUrl = (src) => { + return process.env.VUE_APP_STATIC + store.getters.getCommunityCode + '/' + src } + // 时间格式化 Vue.prototype.formatDate = (time, fmt) => { if (time > 0) { let date = new Date(time * 1000) diff --git a/src/views/Basic/Authority/depend/permissions.vue b/src/views/Basic/Authority/depend/permissions.vue index fd33b58..f168514 100644 --- a/src/views/Basic/Authority/depend/permissions.vue +++ b/src/views/Basic/Authority/depend/permissions.vue @@ -13,6 +13,20 @@ :key="index" :header="item.name" > + + +
{ roleDel({roleId:id}).then(res=>{ if(res.code === 200){ @@ -180,7 +194,7 @@ export default { title: "是否删除", // okText:'删除', // cancelText:'取消', - icon: "", + icon: "delete", onOk: function () { console.log(data); }, diff --git a/src/views/Basic/Authority/index.vue b/src/views/Basic/Authority/index.vue index 2e0e2e1..1eb175b 100644 --- a/src/views/Basic/Authority/index.vue +++ b/src/views/Basic/Authority/index.vue @@ -18,6 +18,20 @@ :key="index" :header="item.name" > + + +
-
所有角色
+
所有角色
+ + \ No newline at end of file diff --git a/src/views/Basic/EstateInfo/_houseManage/index.vue b/src/views/Basic/EstateInfo/_houseManage/index.vue index 2b1ff32..1bc7856 100644 --- a/src/views/Basic/EstateInfo/_houseManage/index.vue +++ b/src/views/Basic/EstateInfo/_houseManage/index.vue @@ -8,12 +8,15 @@ - 查 询 + 查 询 重 置 - 添加房屋 + + 添加房屋 + 房屋配置 +
@@ -70,8 +73,8 @@ - 编辑 - 删除 + 编辑 + 删除 @@ -82,7 +85,10 @@ - +
@@ -96,140 +102,7 @@
基本信息 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
房屋户型
-
- - - - - - - - - - - - - - - - - - -
- -
- Upload -
-
-
- - example - -
-
- - - - - -
-
+
+ + +
+ 房屋类型 + + + + + + {{item.name}} + + + + + + + 新增类型 + + +
+ +