xjc 4 éve
szülő
commit
bc18cfbf04

+ 1 - 1
src/views/Home.vue

@@ -6,7 +6,7 @@
 	<el-container>
 	<el-container>
 		<el-header>
 		<el-header>
 			<div class="header">
 			<div class="header">
-				<img class="logo" src="../assets/logo.png" alt="">
+				<!-- <img class="logo" src="../assets/logo.png" alt=""> -->
 				期刊微信公众号管理系统
 				期刊微信公众号管理系统
 			</div>	
 			</div>	
 			<div class="nav">
 			<div class="nav">

+ 2 - 1
src/views/message/InnerSurvey.vue

@@ -77,7 +77,7 @@ a {
 }
 }
 .qrcode_dialog {
 .qrcode_dialog {
   .el-dialog {
   .el-dialog {
-    width: 30%;
+    width: 25%;
   }
   }
   img {
   img {
     width: 100%;
     width: 100%;
@@ -601,6 +601,7 @@ export default {
       this.dialogVisible3 = true;
       this.dialogVisible3 = true;
     },
     },
     analyseData(type, message_id) {
     analyseData(type, message_id) {
+      this.form1 = {}
       let parm = this.form1;
       let parm = this.form1;
       parm.type = type;
       parm.type = type;
       parm.message_id = message_id;
       parm.message_id = message_id;

+ 1 - 0
src/views/message/Notice.vue

@@ -385,6 +385,7 @@ export default {
         this.dialogVisible3 = true
         this.dialogVisible3 = true
     },
     },
     analyseData(type,message_id) {
     analyseData(type,message_id) {
+      this.form1 = {}
       let parm = this.form1
       let parm = this.form1
       parm.type = type
       parm.type = type
       parm.id = message_id
       parm.id = message_id

+ 30 - 3
src/views/message/OutSurvey.vue

@@ -75,6 +75,14 @@ a {
     font-weight: 600;
     font-weight: 600;
   }
   }
 }
 }
+.qrcode_dialog {
+  .el-dialog {
+    width: 25%;
+  }
+  img {
+    width: 100%;
+  }
+}
 </style>
 </style>
 <template>
 <template>
   <section>
   <section>
@@ -129,8 +137,7 @@ a {
             >
             >
             <a
             <a
               v-if="scope.row.template_qrcode"
               v-if="scope.row.template_qrcode"
-              :href="scope.row.template_qrcode"
-              target="_blank"
+              @click="showQrcode(scope.row)"
               ><span> | 生成二维码</span></a
               ><span> | 生成二维码</span></a
             >
             >
           </template>
           </template>
@@ -410,6 +417,17 @@ a {
         <div v-if="Object.keys(postResult).length == 0">暂无数据</div>
         <div v-if="Object.keys(postResult).length == 0">暂无数据</div>
       </div>
       </div>
     </el-dialog>
     </el-dialog>
+    <!-- 展示二维码 -->
+    <el-dialog
+      :title="dialogTitle4"
+      :close-on-click-modal="false"
+      :visible.sync="dialogVisible4"
+      class="qrcode_dialog"
+    >
+      <div class="content">
+        <img :src="qrcodeUrl" alt="" />
+      </div>
+    </el-dialog>
   </section>
   </section>
 </template>
 </template>
 <script>
 <script>
@@ -421,6 +439,7 @@ export default {
   data() {
   data() {
     return {
     return {
       //   checked: [],
       //   checked: [],
+      qrcodeUrl: "",
       cur_message_id: null,
       cur_message_id: null,
       cur_post_type: null,
       cur_post_type: null,
       postResult: {},
       postResult: {},
@@ -435,13 +454,15 @@ export default {
       list: [{ name: "2333" }],
       list: [{ name: "2333" }],
       loading: false,
       loading: false,
       input: "",
       input: "",
-      dialogVisible: false,
+      dialogVisible:false,
       dialogVisible1: false,
       dialogVisible1: false,
       dialogVisible2: false,
       dialogVisible2: false,
       dialogVisible3: false,
       dialogVisible3: false,
+      dialogVisible4: false,
       dialogTitle: "",
       dialogTitle: "",
       dialogTitle2: "",
       dialogTitle2: "",
       dialogTitle3: "",
       dialogTitle3: "",
+      dialogTitle4: "",
       defaultProps: {},
       defaultProps: {},
       data: [],
       data: [],
       templateList: [],
       templateList: [],
@@ -515,6 +536,11 @@ export default {
   },
   },
   // computed() {},
   // computed() {},
   methods: {
   methods: {
+    showQrcode(row) {
+      this.dialogTitle4 = "生成二维码";
+      this.dialogVisible4 = true;
+      this.qrcodeUrl = row.template_qrcode;
+    },
     showMessageAnalyse(row) {
     showMessageAnalyse(row) {
       this.$router.push({
       this.$router.push({
         path: "/message/outSurvey/analyse",
         path: "/message/outSurvey/analyse",
@@ -552,6 +578,7 @@ export default {
       this.dialogVisible3 = true;
       this.dialogVisible3 = true;
     },
     },
     analyseData(type, message_id) {
     analyseData(type, message_id) {
+      this.form1 = {}
       let parm = this.form1;
       let parm = this.form1;
       parm.type = type;
       parm.type = type;
       parm.message_id = message_id;
       parm.message_id = message_id;