mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化问卷投票功能
This commit is contained in:
parent
32071978e0
commit
06bf2df1a0
@ -79,10 +79,14 @@
|
||||
<td class="text-center">{{questionAnswerTitle.qaTitle}}</td>
|
||||
<td class="text-center">{{questionAnswerTitle.seq}}</td>
|
||||
<td class="text-center">
|
||||
<div class="btn-group">
|
||||
<div class="btn-group" v-if="questionAnswerTitle.titleType != '3003'">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openQuestionValueModel(questionAnswerTitle)">结果</button>
|
||||
</div>
|
||||
<div class="btn-group" v-else>
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_toQuestionValueModel(questionAnswerTitle)">结果</button>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openEditQuestionAnswerTitleModel(questionAnswerTitle)">修改</button>
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,45 @@
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox">
|
||||
<div class="ibox-title">
|
||||
<h5>简答题</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
<button type="button" class="btn btn-primary btn-sm"
|
||||
v-on:click="_goBack()">
|
||||
返回
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
|
||||
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">问卷人</th>
|
||||
<th class="text-center">内容</th>
|
||||
<th class="text-center">时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="value in questionAnswerTitleValueManageInfo.values">
|
||||
<td class="text-center">{{value.userName}}</td>
|
||||
<td class="text-center">{{value.qaValue}}</td>
|
||||
<td class="text-center">{{value.createTime}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<ul class="pagination float-right"></ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<!-- 分页 -->
|
||||
<vc:create path="frame/pagination"></vc:create>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -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);
|
||||
@ -5,10 +5,10 @@
|
||||
<div class="ibox-title">
|
||||
<h5>查询条件</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
<button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
|
||||
<!-- <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
|
||||
v-on:click="_moreCondition()">{{reportQuestionAnswerDetailInfo.moreCondition ==
|
||||
true?'隐藏':'更多'}}
|
||||
</button>
|
||||
</button> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user