ソースを参照

1112 17:07

11
mo 5 年 前
コミット
f617b8917e

ファイルの差分が大きいため隠しています
+ 0 - 0
dist/index.html


+ 1 - 1
dist/static/css/chunk-2485a652.143aa450.css → dist/static/css/chunk-67a67e2a.48e142f0.css

@@ -1 +1 @@
-.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.bannerImg[data-v-13db4bae],.bannerImg[data-v-60bd2106],.bannerImg[data-v-386f59a6]{height:60px}
+.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.bannerImg[data-v-5a0dd57e],.bannerImg[data-v-386f59a6],.bannerImg[data-v-aeae42b6]{height:60px}

ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/app.4b1312a2.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-67a67e2a.df0deae6.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-d1dd2788.5eed49c5.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-d1dd2788.af1cd758.js


+ 5 - 3
src/views/contentManager/components/activity.vue

@@ -45,7 +45,7 @@
   </div>
 </template>
 <script>
-import { newsList, newsUpdate } from '@/api/contentManager'
+import { newsList, newsUpdate, newsDel } from '@/api/contentManager'
 import pagination from '@/components/Pagination/index'
 import store from '@/store'
 export default {
@@ -77,7 +77,6 @@ export default {
         type: 1
       }
       newsList(params).then(res => {
-        console.log(res)
         if(res.code == 200) {
           this.tableList = res.data.rows
           this.pageInfo.total = res.data.total
@@ -102,6 +101,7 @@ export default {
         cancelButtonText: '取消',
         type: 'warning'
       }).then(() => {
+        console.log(true)
         newsDel({ id: row.id }).then(res => {
           console.log(res)
           if(res.code == 200) {
@@ -114,7 +114,9 @@ export default {
               this.$message.error(res.msg)
           }
         })
-      }).catch(() => { })
+      }).catch(() => {
+        console.log(false)
+      })
       
     },
     onStop(row, status) { // 停止

+ 1 - 1
src/views/contentManager/components/information.vue

@@ -45,7 +45,7 @@
   </div>
 </template>
 <script>
-import { newsList, newsUpdate } from '@/api/contentManager'
+import { newsList, newsUpdate, newsDel } from '@/api/contentManager'
 import pagination from '@/components/Pagination/index'
 import store from '@/store'
 export default {

+ 39 - 3
src/views/teamBuild/teamSeting/components/setImprovement.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="m-container">
     <h2>
-      <div class='squrt'></div>基础技能班报名详情
+      <div class='squrt'></div>基础技能班报名详情 <span @click="onCreateQRCode" style="font-size: 16px; padding-left: 20px; font-weight: 400;">查看报名连接</span>
     </h2>
     <div class='m-core'>
       <div class="tableWrap">
@@ -32,6 +32,18 @@
         </el-table>
       </div>
     </div>
+    <el-dialog title="报名二维码"
+               :visible.sync="qrcodeStatus"
+               width="300px">
+      <div class="left-code" style="display: flex; flex-direction: column; align-items: center;">
+        <h2>小班课报名连接</h2>
+        <div id="qrcode"
+             class="qrcode code"
+             ref="qrCodeUrl"></div>
+        <p class="code-url" style="width: 220px"
+           v-if="codeUrl">{{ codeUrl }}</p>
+      </div>
+    </el-dialog>
     <el-dialog title="添加学员"
                width="600px"
                :visible.sync="addStudentVisible">
@@ -110,6 +122,7 @@
 <script>
 import { highClassGroups, teamSoundStudent, resetHighClass } from '@/api/buildTeam'
 import { getClassAllStudent, addStudents, removeStudents } from '@/api/studentManager'
+import QRCode from 'qrcodejs2'
 export default {
   data () {
     return {
@@ -123,7 +136,11 @@ export default {
       activeClass: '',  // 选中的班级id
       classList: [],
       activeStudent: null,
-      studentRadio: '' // 学生新选择的班级
+      studentRadio: '', // 学生新选择的班级
+      qrcodeStatus: false, // 生成二维码
+      qrcodes: true,
+      qrcode: null,
+      codeUrl: null,
     }
   },
   mounted () {
@@ -136,9 +153,28 @@ export default {
         this.studentList = res.data;
       }
     })
-
   },
   methods: {
+    onCreateQRCode () { // 生成报名二维码
+      this.qrcodeStatus = true
+      let id = this.$route.query.id
+      let teamName = this.$route.query.name
+      if (this.qrcodes) {
+        this.qrcodes = false
+        setTimeout(() => {
+          this.qrcode = new QRCode('qrcode', {
+            width: 200,
+            height: 200,
+            colorDark: '#000000',
+            colorLight: '#ffffff',
+            correctLevel: QRCode.CorrectLevel.H
+          })
+          this.qrcode.makeCode('http://mstudev.dayaedu.com/#/smallLogin?musicGroupId=' + id)
+          this.codeUrl = 'http://mstudev.dayaedu.com/#/smallLogin?musicGroupId=' + id
+        }, 500)
+      }
+
+    },
     getList () {
       highClassGroups({ musicGroupId: this.teamid }).then(res => {
         if (res.code == 200) {

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません