许成详 6 years ago
parent
commit
0b1d96286d
2 changed files with 46 additions and 47 deletions
  1. 1
    1
      dist/index.html
  2. 45
    46
      src/pages/system/courseManager/courseList/index.vue

+ 1
- 1
dist/index.html View File

@@ -1 +1 @@
1
-<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel=stylesheet href=//at.alicdn.com/t/font_775069_dwqa9wy3lkh.css><link rel="shortcut icon" href=favorite.ico><title>城的空间后台管理系统</title><link href=./static/css/app.716ad2278248b4a8df5c21977ed2e460.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.992319e39e0ff64940a3.js></script><script type=text/javascript src=./static/js/app.24e7c3d97dc17a7e8e9a.js></script></body></html>
1
+<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel=stylesheet href=//at.alicdn.com/t/font_775069_dwqa9wy3lkh.css><link rel="shortcut icon" href=favorite.ico><title>城的空间后台管理系统</title><link href=./static/css/app.37bf117acf0136ecd09ddd44368577a7.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.992319e39e0ff64940a3.js></script><script type=text/javascript src=./static/js/app.6b74243060a3ebebe6d1.js></script></body></html>

+ 45
- 46
src/pages/system/courseManager/courseList/index.vue View File

@@ -57,14 +57,6 @@
57 57
         :data="courses.list"
58 58
         stripe
59 59
         style="width: 100%">
60
-        <!-- <el-table-column
61
-          prop="CourseName"
62
-          label="发布状态"
63
-          width="150">
64
-          <template slot-scope="scope">
65
-            <label>{{scope.row.Status===1?'已发布':'未发布'}}</label>
66
-          </template>
67
-        </el-table-column> -->
68 60
         <el-table-column
69 61
           prop="CourseName"
70 62
           label="课程名称"
@@ -110,45 +102,47 @@
110 102
         <el-table-column
111 103
           fixed="right"
112 104
           label="操作"
113
-          width="600">
105
+          min-width="300">
114 106
           <template slot-scope="scope">
115
-            <el-button
116
-              size="mini"
117
-              type="success"
118
-              @click="addDetail(scope.row)">添加课程详情</el-button>
119
-            <el-button
120
-              size="mini"
121
-              type="warning"
122
-              v-if="scope.row.Status===0"
123
-              @click="toSchedule(scope.row)"
124
-              >排课</el-button>
125
-            <el-button
126
-              size="mini"
127
-              type="primary"
128
-              @click="handleCopy(scope.row)"
129
-              >复制课程</el-button>
130
-            <el-button
131
-              size="mini"
132
-              type="warning"
133
-              @click="handlePublic(scope.row)"
134
-              v-if="scope.row.Status===0"
135
-              >发布</el-button>
136
-            <el-button
137
-              size="mini"
138
-              type="danger"
139
-              @click="handleUnPublic(scope.row)"
140
-              v-if="scope.row.Status===1"
141
-              >取消发布</el-button>
142
-            <el-button
143
-              size="mini"
144
-              type="warning"
145
-              v-if="scope.row.Status===0"
146
-              @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
147
-            <el-button
148
-              size="mini"
149
-              type="danger"
150
-              v-if="scope.row.Status===0"
151
-              @click="handleDelete(scope.$index, scope.row)">删除</el-button>
107
+            <div style="width: 100%" class="btnBox">
108
+              <el-button
109
+                size="mini"
110
+                type="success"
111
+                @click="addDetail(scope.row)">添加课程详情</el-button>
112
+              <el-button
113
+                size="mini"
114
+                type="warning"
115
+                v-if="scope.row.Status===0"
116
+                @click="toSchedule(scope.row)"
117
+                >排课</el-button>
118
+              <el-button
119
+                size="mini"
120
+                type="primary"
121
+                @click="handleCopy(scope.row)"
122
+                >复制课程</el-button>
123
+              <el-button
124
+                size="mini"
125
+                type="warning"
126
+                @click="handlePublic(scope.row)"
127
+                v-if="scope.row.Status===0"
128
+                >发布</el-button>
129
+              <el-button
130
+                size="mini"
131
+                type="danger"
132
+                @click="handleUnPublic(scope.row)"
133
+                v-if="scope.row.Status===1"
134
+                >取消发布</el-button>
135
+              <el-button
136
+                size="mini"
137
+                type="warning"
138
+                v-if="scope.row.Status===0"
139
+                @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
140
+              <el-button
141
+                size="mini"
142
+                type="danger"
143
+                v-if="scope.row.Status===0"
144
+                @click="handleDelete(scope.$index, scope.row)">删除</el-button>
145
+            </div>
152 146
           </template>
153 147
         </el-table-column>
154 148
       </el-table>
@@ -435,4 +429,9 @@ export default {
435 429
 <!-- Add "scoped" attribute to limit CSS to this component only -->
436 430
 <style lang="scss" scoped>
437 431
 @import "page.scss";
432
+.btnBox{
433
+  >*{
434
+    margin-bottom: 10px;
435
+  }
436
+}
438 437
 </style>