MicroCommunityWeb/public/pages/property/questionAnswerManage/questionAnswerManage.html

160 lines
9.3 KiB
HTML
Executable File

<div>
<div class="row">
<div class="col-lg-12">
<div class="ibox ">
<div class="ibox-title">
<h5>
<span><vc:i18n name="查询条件" namespace="questionAnswerManage"></vc:i18n></span>
</h5>
<div class="ibox-tools" style="top:10px;">
</div>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-sm-3">
<div class="form-group">
<input type="text" :placeholder="vc.i18n('请输入问卷ID','questionAnswerManage')"
v-model="questionAnswerManageInfo.conditions.qaId" class=" form-control">
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<input type="text" :placeholder="vc.i18n('请输入问卷名称','questionAnswerManage')"
v-model="questionAnswerManageInfo.conditions.qaName" class=" form-control">
</div>
</div>
<div class="col-sm-3">
<select class="custom-select" v-model="questionAnswerManageInfo.conditions.qaType">
<option selected value="">{{vc.i18n('请选择问卷类型','questionAnswerManage')}}</option>
<option value="1001">{{vc.i18n('业主问卷','questionAnswerManage')}}</option>
<!-- <option value="2002">{{vc.i18n('员工自评','questionAnswerManage')}}</option> -->
<option value="3003">{{vc.i18n('业主投票','questionAnswerManage')}}</option>
<option value="4004">{{vc.i18n('员工投票','questionAnswerManage')}}</option>
</select>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-primary btn-sm"
v-on:click="_queryQuestionAnswerMethod()">
<i class="fa fa-search"></i>
<span><vc:i18n name="查询" namespace="questionAnswerManage"></vc:i18n></span>
</button>
<button type="button" class="btn btn-primary btn-sm"
v-on:click="_resetQuestionAnswerMethod()">
<i class="fa fa-repeat"></i>
<span><vc:i18n name="重置" namespace="questionAnswerManage"></vc:i18n></span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="ibox">
<div class="ibox-title">
<h5>
<span><vc:i18n name="问卷信息" namespace="questionAnswerManage"></vc:i18n></span>
</h5>
<div class="ibox-tools" style="top:10px;">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddQuestionAnswerModal()">
<i class="fa fa-plus"></i>
<span><vc:i18n name="添加" namespace="questionAnswerManage"></vc:i18n></span>
</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">
<span><vc:i18n name="问卷ID" namespace="questionAnswerManage"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="问卷类型" namespace="questionAnswerManage"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="问卷名称" namespace="questionAnswerManage"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="问卷内容" namespace="questionAnswerManage"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="开始时间" namespace="questionAnswerManage"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="结束时间" namespace="questionAnswerManage"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="备注" namespace="questionAnswerManage"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="问卷图片" namespace="questionAnswerManage"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="操作" namespace="questionAnswerManage"></vc:i18n></span>
</th>
</tr>
</thead>
<tbody>
<tr v-for="questionAnswer in questionAnswerManageInfo.questionAnswers">
<td class="text-center">{{questionAnswer.qaId}}</td>
<td class="text-center">{{questionAnswer.qaTypeName}}</td>
<td class="text-center">{{questionAnswer.qaName}}</td>
<td class="text-center">{{questionAnswer.content}}</td>
<td class="text-center">{{questionAnswer.startTime}}</td>
<td class="text-center">{{questionAnswer.endTime}}</td>
<td class="text-center">{{questionAnswer.remark}}</td>
<td class="text-center">
<div style="position: relative; display: inline-block;"
v-for="url in questionAnswer.fileUrlsShow">
<div v-on:click="showImg(url)">
<img width="50" height="50" v-bind:src="url"
onerror="this.src='/img/noPhoto.jpg';">
<img src="/img/icon-bigimg.png" style="position: absolute;right: 0;bottom: 0;"
width="50" height="50" alt="">
</div>
</div>
</td>
<td class="text-center">
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_toQuestionAnswerTitle(questionAnswer)">
<span><vc:i18n name="题目" namespace="questionAnswerManage"></vc:i18n></span>
</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openEditQuestionAnswerModel(questionAnswer)">
<span><vc:i18n name="修改" namespace="questionAnswerManage"></vc:i18n></span>
</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openDeleteQuestionAnswerModel(questionAnswer)">
<span><vc:i18n name="删除" namespace="questionAnswerManage"></vc:i18n></span>
</button>
</div>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="9">
<ul class="pagination float-right"></ul>
</td>
</tr>
</tfoot>
</table>
<!-- 分页 -->
<vc:create path="frame/pagination"></vc:create>
</div>
</div>
</div>
</div>
<vc:create path="property/addQuestionAnswer" callBackListener="" callBackFunction=""></vc:create>
<vc:create path="property/editQuestionAnswer"></vc:create>
<vc:create path="property/deleteQuestionAnswer"></vc:create>
<vc:create path="common/viewImage"></vc:create>
</div>