Ver código fonte

12/22 学生考勤列表优化

mo 4 anos atrás
pai
commit
d1982c9399
2 arquivos alterados com 31 adições e 12 exclusões
  1. 29 10
      src/views/stuRecodeManager/index.vue
  2. 2 2
      vue.config.js

+ 29 - 10
src/views/stuRecodeManager/index.vue

@@ -83,7 +83,10 @@
             <template slot-scope="scope">
               <div>
                 {{ scope.row.username }}
-                <p  style="color: #f56c6c">({{ scope.row.userId }})</p >
+                <p style="color: #f56c6c">
+                  (<copy-text>{{ scope.row.userId }}</copy-text
+                  >)
+                </p>
               </div>
             </template>
           </el-table-column>
@@ -93,20 +96,36 @@
             label="老师姓名"
           >
             <template slot-scope="scope">
-                  {{ scope.row.courseSchedule.teacherName }}
-                <p style="color: #f56c6c">({{ scope.row.teacherId }})</p>
+              {{ scope.row.courseSchedule.teacherName }}
+              <p style="color: #f56c6c">
+                (<copy-text>{{ scope.row.teacherId }}</copy-text
+                >)
+              </p>
             </template>
           </el-table-column>
           <el-table-column
             align="center"
-            prop="courseScheduleId"
-            label="课程编号"
-          ></el-table-column>
-          <el-table-column
-            align="center"
             prop="musicGroupId"
             label="乐团编号"
-          ></el-table-column>
+          >
+          <template slot-scope="scope">
+            <div>
+              <copy-text>{{ scope.row.musicGroupId }}</copy-text>
+            </div>
+          </template>
+          </el-table-column>
+          <el-table-column
+            align="center"
+            prop="courseScheduleId"
+            label="课程编号"
+          >
+              <template slot-scope="scope">
+            <div>
+              <copy-text>{{ scope.row.courseScheduleId }}</copy-text>
+            </div>
+          </template>
+          </el-table-column>
+
           <el-table-column
             align="center"
             prop="courseSchedule.name"
@@ -220,7 +239,7 @@ export default {
   data() {
     return {
       searchForm: {
-        studentID: '',
+        studentID: "",
         groupType: "MUSIC",
         musicGroupId: "",
         courseScheduleId: "",

+ 2 - 2
vue.config.js

@@ -20,8 +20,8 @@ const name = defaultSettings.title || '管乐迷后台管理系统' // page titl
 // let target = 'http://dyme.utools.club' //test环境
 // let target = 'http://192.168.3.139:8000' // 箭河
 // let target = 'http://192.168.3.38:8000' //邹璇
-let target = 'http://192.168.3.57:8000' //勇哥
-// let target = 'http://dev.dayaedu.com' // 测试服
+// let target = 'http://192.168.3.57:8000' //勇哥
+let target = 'http://dev.dayaedu.com' // 测试服
 // let target = 'http://192.168.3.196' // 乔
 // All configuration item explanations can be find in https://cli.vuejs.org/config/
 module.exports = {