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 @@ +
+
+
+
+
+
简答题
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + +
问卷人内容时间
{{value.userName}}{{value.qaValue}}{{value.createTime}}
+
    +
    + + +
    +
    +
    +
    +
    \ 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 @@
    查询条件
    - + -->