Your Name 4 yıl önce
ebeveyn
işleme
6e35d77439
2 değiştirilmiş dosya ile 18 ekleme ve 12 silme
  1. 6 0
      src/api.js
  2. 12 12
      src/views/message/Notice.vue

+ 6 - 0
src/api.js

@@ -186,6 +186,12 @@ export default {
 	delNotice: params => {
 		return axios.delete(`${baseURL}/api/admin/message/notice`, { params: params });
 	},
+	getNoticeAnalyse: params => {
+		return axios.get(`${baseURL}/api/admin/message/notice/analyse`, { params: params });
+	},
+	downloadNoticeAnalyse: params => {
+		return axios.get(`${baseURL}/api/admin/message/notice/analyse/download`, { params: params });
+	},
 	// 会议相关
 	getCityList: params => {
 		return axios.get(`${baseURL}/api/admin/common/city`, { params: params });

+ 12 - 12
src/views/message/Notice.vue

@@ -253,18 +253,18 @@ a {
           <el-table-column prop="journal_name" label="所属期刊"></el-table-column>
           <el-table-column prop="cname" label="状态">
             <template slot-scope="scope">
-              <span v-if="scope.row.post_status">已填报</span>
-              <span v-else>未填报</span>
+              <span v-if="scope.row.post_status">已阅读</span>
+              <span v-else>未阅读</span>
             </template>
           </el-table-column>
-          <!-- <el-table-column prop="post_time" label="填报时间"> </el-table-column> -->
-          <el-table-column prop="zip" width="80" label="操作">
-          <template slot-scope="scope">
-            <el-button class="edit" type="text" @click="showPostResult(scope.row)"
-              >查看</el-button
-            >
-          </template>
-        </el-table-column>
+          <el-table-column prop="post_time" label="查阅时间"> </el-table-column>
+          <!-- <el-table-column prop="zip" width="80" label="操作">
+            <template slot-scope="scope">
+              <el-button class="edit" type="text" @click="showPostResult(scope.row)"
+                >查看</el-button
+              >
+            </template>
+          </el-table-column> -->
         </el-table>
         <Page
           ref="pageButton"
@@ -346,7 +346,7 @@ export default {
           this.$router.push({path:'/message/message/analyse'})
     },
     downloadExcel(){
-      this.$api.downloadSurveyResult({message_id:this.cur_message_id,type:this.cur_post_type}).then((res)=>{
+      this.$api.downloadNoticeAnalyse({id:this.cur_message_id,type:this.cur_post_type}).then((res)=>{
           var elink = document.createElement('a');
           let blob=new Blob([res.data], {type: 'application/vnd.ms-excel,charset=UTF-8'});
           let objUrl=URL.createObjectURL(blob);
@@ -369,7 +369,7 @@ export default {
     analyseData(type,message_id) {
       this.dialogTitle2 = "统计结果"
       this.dialogVisible2 = true;
-      this.$api.getMessageSurveyAnalyse({type:type,message_id:message_id}).then((res)=>{
+      this.$api.getNoticeAnalyse({type:type,id:message_id}).then((res)=>{
           this.analyseDataList = res.data.data.list
           this.cur_message_id = message_id
           this.cur_post_type = type