|
@@ -71,7 +71,7 @@
|
|
|
<el-form-item label="信息内容:" prop="content">
|
|
|
<el-input
|
|
|
v-model="formData.content"
|
|
|
- :rows="4"
|
|
|
+ :rows="6"
|
|
|
type="textarea"
|
|
|
disabled
|
|
|
placeholder="请输入信息内容"
|
|
@@ -79,11 +79,11 @@
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="查看附件:">
|
|
|
- <ul>
|
|
|
- <li v-for="(file, index) in formData.attachs" :key="index" @click="viewFile(file)">
|
|
|
- {{ file.name }}
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
+ <div>
|
|
|
+ <div v-for="(file, index) in formData.attachs" :key="index" @click="viewFile(file)" style="color: #2C81FF;text-decoration: underline;cursor:pointer">
|
|
|
+ {{ index+1 }}、{{ file.name }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<h4>推送配置</h4>
|
|
@@ -92,14 +92,14 @@
|
|
|
><span class="highlight-text">已选择{{ formData.user_count }}人</span>
|
|
|
</el-form-item>
|
|
|
<el-row :gutter="18">
|
|
|
- <el-col :span="6">
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="发布时间:" prop="publish_time">
|
|
|
- <el-button disabled @click="publishNow">立即发布</el-button>
|
|
|
+ <el-button disabled type="default" @click="publishNow">立即发布</el-button>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col :span="10">
|
|
|
<el-form-item label="定时发布:" prop="publish_time">
|
|
|
- <el-date-picker v-model="formData.publish_time" type="datetime" disabled placeholder="选择发布时间"></el-date-picker>
|
|
|
+ <el-date-picker v-model="formData.publish_time" type="datetime" disabled placeholder="选择发布时间" style="width: 400px;"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -110,14 +110,14 @@
|
|
|
<h4 class="common-dialog-title">审核配置</h4>
|
|
|
<div class="box1">
|
|
|
<el-form-item label="审核材料:" prop="examine_attachs">
|
|
|
- <ul>
|
|
|
- <li v-for="(file, index) in formData.examine_attachs" :key="index" @click="viewFile(file)">
|
|
|
- {{ file.name }}
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
+ <div>
|
|
|
+ <div v-for="(file, index) in formData.examine_attachs" :key="index" @click="viewFile(file)" style="color: #2C81FF;text-decoration: underline;cursor:pointer">
|
|
|
+ {{ index+1 }}、{{ file.name }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="审核人:" prop="examine_by">
|
|
|
- <el-input v-model="formData.examine_by" disabled placeholder="请输入审核人姓名" style="width: 368px !important" />
|
|
|
+ <el-input v-model="formData.examine_user" disabled placeholder="请输入审核人姓名" style="width: 368px !important" />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</el-form>
|
|
@@ -136,10 +136,10 @@
|
|
|
<div>
|
|
|
<p v-if="processingTime">已用时:{{ processingTime }}</p>
|
|
|
</div>
|
|
|
- <el-timeline style="width: 100%">
|
|
|
+ <el-timeline style="width: 100%;">
|
|
|
<template v-for="(item, index) in formData.examines" :key="index">
|
|
|
<el-timeline-item placement="top">
|
|
|
- <el-card>
|
|
|
+ <el-card style="margin-top:-10px;">
|
|
|
<h4>{{ item.examine_type }}</h4>
|
|
|
<p v-if="item.nick_name">
|
|
|
处理人:<span>{{ item.nick_name }}</span
|
|
@@ -158,9 +158,11 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<div class="common-dialog-footer">
|
|
|
- <el-button @click="$emit('close')">返回</el-button>
|
|
|
+ <el-button type="primary" @click="$emit('close')">返回</el-button>
|
|
|
+ <!--
|
|
|
<el-button :disabled="true">编辑</el-button>
|
|
|
<el-button :disabled="true">提交</el-button>
|
|
|
+ -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -173,6 +175,8 @@ import { reactive, ref } from 'vue';
|
|
|
import { getInformationView, getTemplateList } from '@/api/informationissue/informationissue';
|
|
|
import { ElMessage } from 'element-plus';
|
|
|
import SendDetail from './sendDetail.vue';
|
|
|
+import { download2 } from '@/utils/request';
|
|
|
+
|
|
|
const processingTime = '1小时 6分22秒';
|
|
|
const props = defineProps({
|
|
|
eventId: {
|
|
@@ -194,6 +198,7 @@ const formData = ref({
|
|
|
publish_type: '',
|
|
|
response_type: '',
|
|
|
examine_by: '',
|
|
|
+ examine_user: '',
|
|
|
publish_time: '',
|
|
|
materials: '',
|
|
|
add_time: '',
|
|
@@ -204,6 +209,9 @@ const formData = ref({
|
|
|
examine_attachs: []
|
|
|
});
|
|
|
|
|
|
+const baseUrl = import.meta.env.VITE_APP_BASE_API;
|
|
|
+const downLoadApi = import.meta.env.VITE_APP_BASE_DOWNLOAD_API;
|
|
|
+
|
|
|
const rules = ref({});
|
|
|
const presetTemplates = ref([]);
|
|
|
const feedbackTextMap = {
|
|
@@ -227,8 +235,9 @@ let sendDetailState = reactive({
|
|
|
const handleCancel = () => {
|
|
|
sendDetailState.show = false;
|
|
|
};
|
|
|
-const viewFile = (file) => {
|
|
|
- window.open(file.url, '_blank'); // 打开新标签页
|
|
|
+
|
|
|
+const viewFile = (file: any) => {
|
|
|
+ download2(baseUrl + downLoadApi + file.url, file.name);
|
|
|
};
|
|
|
const showSendDetails = () => {
|
|
|
sendDetailState.info_id = props.eventId; // 假设eventId是id字段
|
|
@@ -256,7 +265,7 @@ const fetchInformation = async () => {
|
|
|
onMounted(() => {
|
|
|
getTemplateList({}).then((res) => {
|
|
|
res.data.forEach((item, index) => {
|
|
|
- presetTemplates.value.push({ value: item.name, label: item.name, content: item.content });
|
|
|
+ presetTemplates.value.push({ value: item.id+"", label: item.name, content: item.content });
|
|
|
});
|
|
|
});
|
|
|
fetchInformation();
|