This commit is contained in:
2025-02-25 11:27:48 +08:00
parent f42c8c52d0
commit 99f09efc0f
3 changed files with 36 additions and 12 deletions
@@ -1,11 +1,13 @@
package io.v.nutz.zhgh.question.model;
import io.v.nutz.sys.models.Sys_file;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;
import org.nutz.integration.json4excel.annotation.J4EIgnore;
import java.io.Serializable;
import java.util.List;
/**
* 问卷调查问题答案
@@ -89,6 +91,11 @@ public class Question_wor implements Serializable {
@ColDefine(type = ColType.FLOAT)
private Integer price;
@Column
@Comment("附件")
@ColDefine(type = ColType.MYSQL_JSON)
private List<Sys_file> files;
@One(field = "wiid", key = "iid")
private Question_issue issue;
@@ -223,6 +223,11 @@ layout("/mobile/platform.html"){
<van-col span="16" v-if="wor.wsm">
{{ wor.wsm }}
</van-col>
<van span="24" v-if="wor.files&&wor.files.length>0">
<div v-for="file in wor.files">
<div @click="fileClick(file)"> {{file.filename}}</div>
</div>
</van>
</van-row>
</div>
</div>
@@ -304,6 +309,9 @@ layout("/mobile/platform.html"){
}
},
methods: {
fileClick(file){
preview(file.filename, file.id)
},
async getQuestionData() {
const resp = await $.get('/mobile/question/h5/questionInfo/' + this.id)
this.questionData = resp.data
@@ -183,7 +183,8 @@ layout("/layouts/platform.html"){
<span style="color: #F56C6C" v-if="scope.row.qflag==3">已关闭</span>
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="操作" width="560px">
<el-table-column align="center" header-align="center" label="操作"
width="560px">
<template scope="scope">
<el-button @click="openCode(scope.row)" size="mini" type="primary">
二维码
@@ -235,7 +236,8 @@ layout("/layouts/platform.html"){
</el-form-item>
<el-form-item class="is-required" label="标题" prop="qtitle">
<el-input placeholder="请填写标题" v-model="formData.qtitle" maxlength="200"></el-input>
<el-input placeholder="请填写标题" v-model="formData.qtitle"
maxlength="200"></el-input>
</el-form-item>
<el-form-item label="参加人员" prop="activityUserScopeId">
@@ -773,7 +775,8 @@ layout("/layouts/platform.html"){
</span>
</el-dialog>
<el-dialog :close-on-click-modal="false" :visible.sync="cakeDialog" id="cakeDialog" title="编辑说明"
<el-dialog :close-on-click-modal="false" :visible.sync="cakeDialog" id="cakeDialog"
title="编辑说明"
width="50%">
<div id="cakeEditor"></div>
<span class="dialog-footer" slot="footer">
@@ -965,16 +968,22 @@ layout("/layouts/platform.html"){
</el-button>
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="链接"
property="wlj" width="150px">
<!-- <el-table-column align="center" header-align="center" label="链接"
property="wlj" width="150px">
<template slot-scope="scope">
<el-input
autosize
placeholder="请输入链接"
max="100"
type="textarea"
v-model="scope.row.wlj">
</el-input>
</template>
</el-table-column>-->
<el-table-column align="center" header-align="center" label="附件"
property="files" width="150px">
<template slot-scope="scope">
<el-input
autosize
placeholder="请输入链接"
max="100"
type="textarea"
v-model="scope.row.wlj">
</el-input>
<file-upload :files.sync="scope.row.files" :type="['pdf']" :max="1"></file-upload>
</template>
</el-table-column>
<!--<el-table-column align="center" header-align="center" label="允许填空" property="wistk" width="80px">