From 06bf2df1a0135d5684ebb302a4e6d06b70d92614 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: Mon, 24 May 2021 13:06:30 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=97=AE=E5=8D=B7=E6=8A=95?=
=?UTF-8?q?=E7=A5=A8=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../questionAnswerTitleManage.html | 6 +-
.../questionAnswerTitleManage.js | 3 +
.../questionAnswerTitleValueManage.html | 45 +++++++++++++
.../questionAnswerTitleValueManage.js | 63 +++++++++++++++++++
.../reportQuestionAnswerDetail.html | 4 +-
5 files changed, 118 insertions(+), 3 deletions(-)
create mode 100644 public/pages/property/questionAnswerTitleValueManage/questionAnswerTitleValueManage.html
create mode 100644 public/pages/property/questionAnswerTitleValueManage/questionAnswerTitleValueManage.js
diff --git a/public/pages/property/questionAnswerTitleManage/questionAnswerTitleManage.html b/public/pages/property/questionAnswerTitleManage/questionAnswerTitleManage.html
index 3e0312f38..891ddf960 100755
--- a/public/pages/property/questionAnswerTitleManage/questionAnswerTitleManage.html
+++ b/public/pages/property/questionAnswerTitleManage/questionAnswerTitleManage.html
@@ -79,10 +79,14 @@
{{questionAnswerTitle.qaTitle}} |
{{questionAnswerTitle.seq}} |
-
+
+
+
+
diff --git a/public/pages/property/questionAnswerTitleManage/questionAnswerTitleManage.js b/public/pages/property/questionAnswerTitleManage/questionAnswerTitleManage.js
index fcbcc51f2..97639b360 100755
--- a/public/pages/property/questionAnswerTitleManage/questionAnswerTitleManage.js
+++ b/public/pages/property/questionAnswerTitleManage/questionAnswerTitleManage.js
@@ -104,6 +104,9 @@
},
_openQuestionValueModel:function(_questionAnswerTitle){
vc.emit('questionValue','openQuestionValueModel',_questionAnswerTitle);
+ },
+ _toQuestionValueModel:function(_questionAnswerTitle){
+ vc.jumpToPage('/admin.html#/pages/property/questionAnswerTitleValueManage?titleId='+_questionAnswerTitle.titleId)
}
diff --git a/public/pages/property/questionAnswerTitleValueManage/questionAnswerTitleValueManage.html b/public/pages/property/questionAnswerTitleValueManage/questionAnswerTitleValueManage.html
new file mode 100644
index 000000000..6905b3bb9
--- /dev/null
+++ b/public/pages/property/questionAnswerTitleValueManage/questionAnswerTitleValueManage.html
@@ -0,0 +1,45 @@
+
\ No newline at end of file
diff --git a/public/pages/property/questionAnswerTitleValueManage/questionAnswerTitleValueManage.js b/public/pages/property/questionAnswerTitleValueManage/questionAnswerTitleValueManage.js
new file mode 100644
index 000000000..61a4d3608
--- /dev/null
+++ b/public/pages/property/questionAnswerTitleValueManage/questionAnswerTitleValueManage.js
@@ -0,0 +1,63 @@
+/**
+ 入驻小区
+**/
+(function (vc) {
+ var DEFAULT_PAGE = 1;
+ var DEFAULT_ROWS = 10;
+ vc.extends({
+ data: {
+ questionAnswerTitleValueManageInfo: {
+ values: [],
+ total: 0,
+ records: 1,
+ moreCondition: false,
+ titleId: '',
+ }
+ },
+ _initMethod: function () {
+ let _titleId = vc.getParam('titleId');
+ $that.questionAnswerTitleValueManageInfo.titleId = _titleId;
+ vc.component._listQuestionAnswerTitles(DEFAULT_PAGE, DEFAULT_ROWS);
+ },
+ _initEvent: function () {
+ vc.on('pagination', 'page_event', function (_currentPage) {
+ vc.component._listQuestionAnswerTitles(_currentPage, DEFAULT_ROWS);
+ });
+ },
+ methods: {
+ _listQuestionAnswerTitles: function (_page, _rows) {
+ let param = {
+ params: {
+ page:_page,
+ row:_rows,
+ titleId:$that.questionAnswerTitleValueManageInfo.titleId,
+ communityId:vc.getCurrentCommunity().communityId
+ }
+ };
+
+ //发送get请求
+ vc.http.apiGet('/reportQuestionAnswer/queryUserQuestionAnswerValue',
+ param,
+ function (json, res) {
+ var _questionAnswerTitleValueManageInfo = JSON.parse(json);
+ vc.component.questionAnswerTitleValueManageInfo.total = _questionAnswerTitleValueManageInfo.total;
+ vc.component.questionAnswerTitleValueManageInfo.records = _questionAnswerTitleValueManageInfo.records;
+ vc.component.questionAnswerTitleValueManageInfo.values = _questionAnswerTitleValueManageInfo.data;
+ vc.emit('pagination', 'init', {
+ total: vc.component.questionAnswerTitleValueManageInfo.records,
+ dataCount: vc.component.questionAnswerTitleValueManageInfo.total,
+ currentPage: _page
+ });
+ }, function (errInfo, error) {
+ console.log('请求失败处理');
+ }
+ );
+ },
+
+ _goBack: function () {
+ vc.goBack();
+ }
+
+ }
+ });
+})(window.vc);
diff --git a/public/pages/property/reportQuestionAnswerDetail/reportQuestionAnswerDetail.html b/public/pages/property/reportQuestionAnswerDetail/reportQuestionAnswerDetail.html
index 185a43534..4c2d0ca33 100644
--- a/public/pages/property/reportQuestionAnswerDetail/reportQuestionAnswerDetail.html
+++ b/public/pages/property/reportQuestionAnswerDetail/reportQuestionAnswerDetail.html
@@ -5,10 +5,10 @@
查询条件
-
+ -->
|