diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 00000000..b58b603f
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,5 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
diff --git a/.idea/UniappTool.xml b/.idea/UniappTool.xml
new file mode 100644
index 00000000..c7920171
--- /dev/null
+++ b/.idea/UniappTool.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 00000000..8a364ce9
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/shop.iml b/.idea/shop.iml
new file mode 100644
index 00000000..24643cc3
--- /dev/null
+++ b/.idea/shop.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 00000000..35eb1ddf
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dist.zip b/dist.zip
deleted file mode 100644
index 37ef1f91..00000000
Binary files a/dist.zip and /dev/null differ
diff --git a/dist/index.html b/dist/index.html
deleted file mode 100644
index 1dac6ff1..00000000
--- a/dist/index.html
+++ /dev/null
@@ -1 +0,0 @@
-
秀湖网球中心
\ No newline at end of file
diff --git a/src/api/venue.js b/src/api/venue.js
index 4e90c300..9073d627 100644
--- a/src/api/venue.js
+++ b/src/api/venue.js
@@ -80,6 +80,11 @@ let VenueApi = {
/** 取消预定 */
cancelAdminReserve(data, errorback) {
return request._post('/shop/order.select/cancelGroundOrder', data, errorback);
+ },
+
+ /** 开关灯 */
+ lightStatus(data, errorback) {
+ return request._post('/shop/ground.groundRoom/lightStatus', data, errorback);
}
}
diff --git a/src/views/setting/store/index.vue b/src/views/setting/store/index.vue
index 019a51f5..cd5d1104 100644
--- a/src/views/setting/store/index.vue
+++ b/src/views/setting/store/index.vue
@@ -3,7 +3,7 @@
首页设置
-
+
@@ -22,6 +22,14 @@
class="el-icon-plus">
+
+
+
+
+
+
+
+
充值设置
@@ -159,6 +167,8 @@ export default {
privacy: '',
carousel: [],
notice: '',
+ pop: '', // 弹窗信息
+ pop_status: 0, // 弹窗状态
company: {
address: '',
longitude: '',
diff --git a/src/views/venue/room/index.vue b/src/views/venue/room/index.vue
index 6cc0e0a3..78b8f3e1 100644
--- a/src/views/venue/room/index.vue
+++ b/src/views/venue/room/index.vue
@@ -42,14 +42,18 @@
-
+
编辑
删除
使用率
+ v-auth="'/venue/room/data'">使用率
+
+ 开灯
+ 关灯
+
@@ -267,6 +271,34 @@ export default {
this.open_data = true;
this.venueModel = item;
},
+
+ openLight(id, status) {
+ this.$alert(`是否对该场地执行${status == 0 ? '开灯' : '关灯'}操作`, '提示', {
+ confirmButtonText: '确定',
+ callback: action => {
+ console.log("🚀 ~ action:", action)
+ if (action == 'confirm') {
+ VenueApi.lightStatus({
+ id,
+ lamp_status: status == 0 ? 1 : 0
+ }).then(res => {
+ this.$message({
+ message: res.msg,
+ type: res.code == 1 ? 'success' : 'error'
+ });
+ if (res.code == 1) {
+ this.getTableList();
+ }
+ })
+ }
+ }
+ });
+ // VenueApi.lightStatus({
+ // id,
+ // lamp_status: status == 0 ? 1 : 0
+ // })
+
+ }
}
};