From c7098641f79d745a6eacbfaa43e8b2e6e3fcde12 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: Fri, 24 Sep 2021 01:25:05 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../parkingAreaManage/parkingAreaManage.html | 7 ++
.../parkingAreaManage/parkingAreaManage.js | 3 +
.../parkingAreaText/parkingAreaText.html | 48 ++++++++++
.../parkingAreaText/parkingAreaText.js | 95 +++++++++++++++++++
4 files changed, 153 insertions(+)
create mode 100644 public/pages/property/parkingAreaText/parkingAreaText.html
create mode 100644 public/pages/property/parkingAreaText/parkingAreaText.js
diff --git a/public/pages/property/parkingAreaManage/parkingAreaManage.html b/public/pages/property/parkingAreaManage/parkingAreaManage.html
index 958e17225..6a067b344 100755
--- a/public/pages/property/parkingAreaManage/parkingAreaManage.html
+++ b/public/pages/property/parkingAreaManage/parkingAreaManage.html
@@ -83,6 +83,13 @@
v-on:click="_openDeleteParkingAreaModel(parkingArea)">删除
+
+
+
+
+
diff --git a/public/pages/property/parkingAreaManage/parkingAreaManage.js b/public/pages/property/parkingAreaManage/parkingAreaManage.js
index 5ba4f4e33..b3575a563 100755
--- a/public/pages/property/parkingAreaManage/parkingAreaManage.js
+++ b/public/pages/property/parkingAreaManage/parkingAreaManage.js
@@ -121,6 +121,9 @@
});
_call();
});
+ },
+ _openParkingAreaText:function(_parkingArea){
+ vc.jumpToPage('/admin.html#/pages/property/parkingAreaText?paId='+_parkingArea.paId)
}
}
});
diff --git a/public/pages/property/parkingAreaText/parkingAreaText.html b/public/pages/property/parkingAreaText/parkingAreaText.html
new file mode 100644
index 000000000..ca5ccd501
--- /dev/null
+++ b/public/pages/property/parkingAreaText/parkingAreaText.html
@@ -0,0 +1,48 @@
+
+
+
+
+
+
{{item.typeName}}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/pages/property/parkingAreaText/parkingAreaText.js b/public/pages/property/parkingAreaText/parkingAreaText.js
new file mode 100644
index 000000000..2b7bbcdf0
--- /dev/null
+++ b/public/pages/property/parkingAreaText/parkingAreaText.js
@@ -0,0 +1,95 @@
+/**
+ 权限组
+ **/
+(function (vc) {
+
+ vc.extends({
+ data: {
+ parkingAreaTextInfo: {
+ communityId: vc.getCurrentCommunity().communityId,
+ paId: '',
+ texts: []
+ }
+ },
+
+ _initMethod: function () {
+ $that.parkingAreaTextInfo.paId = vc.getParam('paId');
+ $that._initTexts();
+ $that._listParkAreaTexts();
+ },
+ _initEvent: function () {
+
+ },
+ methods: {
+
+ /**
+ * 初始化
+ * 类型:1001 月租车进场,2002 月租车出场,3003 月租车到期,4004 临时车进场 5005 临时车出场 6006 临时车未缴费
+ */
+ _initTexts: function () {
+
+ let _texts = [];
+ //与租车进场
+ _texts.push({
+ typeCd: '1001',
+ typeName: '月租车进场',
+ });
+ _texts.push({
+ typeCd: '2002',
+ typeName: '月租车出场',
+ });
+ _texts.push({
+ typeCd: '3003',
+ typeName: '月租车到期',
+ });
+ _texts.push({
+ typeCd: '4004',
+ typeName: '临时车进场',
+ });
+ _texts.push({
+ typeCd: '5005',
+ typeName: '临时车出场',
+ });
+ _texts.push({
+ typeCd: '6006',
+ typeName: '临时车未缴费',
+ });
+
+ _texts.forEach(item => {
+ item.voice = "";
+ item.text1 = "";
+ item.text2 = "";
+ item.text3 = "";
+ item.text4 = "";
+ });
+ $that.parkingAreaTextInfo.texts = _texts;
+ },
+ _listParkAreaTexts: function () {
+ var param = {
+ params: {
+ paId: $that.parkingAreaTextInfo.paId,
+ row: 10,
+ page: 1
+ }
+ };
+ //发送get请求
+ vc.http.apiGet('/parkingAreaText.listParkingAreaText', param,
+ function (json, res) {
+ var _parkingAreaTexts = JSON.parse(json);
+ _parkingAreaTexts = _parkingAreaTexts.data;
+ if(_parkingAreaTexts.lenth < 1){
+ return ;
+ }
+
+ },
+ function (errInfo, error) {
+ console.log('请求失败处理');
+ });
+ },
+ _saveParkingAreaText: function () {
+
+ }
+ }
+ });
+
+})(window.vc);
\ No newline at end of file