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"
>
+