SanHQin 2 days ago
parent
commit
cb39124706

+ 1 - 1
dist/index.html

@@ -27,7 +27,7 @@
     html,
     body{
       font-family: '黑体';
-    }</style><link href=./static/css/app.f9988f280e78c31ec015dcd1d801048b.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.b2299056e030e9dd4cb8.js></script><script type=text/javascript src=./static/js/app.47e193e7eff2a2ddc894.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.caf5aed2241c347b7ecb5bde4a14f397.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.b2299056e030e9dd4cb8.js></script><script type=text/javascript src=./static/js/app.bfd13562cfbe19c2115c.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.caf5aed2241c347b7ecb5bde4a14f397.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.caf5aed2241c347b7ecb5bde4a14f397.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.bfd13562cfbe19c2115c.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.bfd13562cfbe19c2115c.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 7 - 2
src/components/courseDetail.vue

@@ -211,7 +211,7 @@
             <div v-loading="elLoading" element-loading-text="小可正在努力生成中,请稍等..." ref="chatDialog" class="courseTd vditor-reset" v-html="brief"></div>
           </div>
           <div :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'">
-            <div v-if="tType == 1 || tType == 4" class="checkBox">
+            <div v-if="(tType == 1 || tType == 4) && courseDetail.state !=7" class="checkBox">
               <span :class="{ active: type == 2 }" @click="type = 2"
                 >阶段选择
                 <div v-show="false">
@@ -1100,6 +1100,7 @@
       </div>
       <div class="cancelDiy" @click="dialogVisibleSk = false">取消</div>
     </el-dialog>
+    <!-- <selectTeachingClass ref="selectTeachingClassRef"/> -->
   </div>
 </template>
 
@@ -1125,6 +1126,8 @@ let converter = OpenCC.Converter({
 		to:'cn'
 })
 
+// import selectTeachingClass from "./dialog/selectTeachingClass.vue";
+
 const getFile = (url) => {
   return new Promise((resolve, reject) => {
     var credentials = {
@@ -1181,7 +1184,8 @@ export default {
   components: {
     Heatmap,
     Group,
-    scoreZong
+    scoreZong,
+    // selectTeachingClass
   },
   data() {
     return {
@@ -1513,6 +1517,7 @@ export default {
     goToStudyOrDia(l) {
       if (l.length > 0) {
         this.dialogVisibleSk = true;
+        // this.$refs.selectTeachingClassRef.open()
 				this.insertMemorandum("点击<span class='btn'>以班级授课</span>")
       } else {
 				this.getCourseDetail1().then(_=>{

+ 165 - 0
src/components/dialog/selectTeachingClass.vue

@@ -0,0 +1,165 @@
+<template>
+	<div>
+		<el-dialog
+			:center="true"
+			:visible.sync="show"
+			:close-on-click-modal="false"
+			:modal="true"
+			width="auto"
+			top="2vh"
+			height="auto"
+			:append-to-body="true"
+			class="dialog"
+		>
+			<div class="box">
+				<div class="b_head">
+					<span>选择授课班级</span>
+					<svg
+						@click="close()"
+						t="1748587270371"
+						class="icon"
+						viewBox="0 0 1024 1024"
+						version="1.1"
+						xmlns="http://www.w3.org/2000/svg"
+						p-id="5023"
+						width="200"
+						height="200"
+					>
+						<path
+							d="M0 0h1024v1024H0z"
+							fill="#FF0033"
+							fill-opacity="0"
+							p-id="5024"
+						></path>
+						<path
+							d="M240.448 168l2.346667 2.154667 289.92 289.941333 279.253333-279.253333a42.666667 42.666667 0 0 1 62.506667 58.026666l-2.133334 2.346667-279.296 279.210667 279.274667 279.253333a42.666667 42.666667 0 0 1-58.005333 62.528l-2.346667-2.176-279.253333-279.253333-289.92 289.962666a42.666667 42.666667 0 0 1-62.506667-58.005333l2.154667-2.346667 289.941333-289.962666-289.92-289.92a42.666667 42.666667 0 0 1 57.984-62.506667z"
+							fill="#111111"
+							p-id="5025"
+						></path>
+					</svg>
+				</div>
+				<div class="b_main" v-loading="loading">
+
+				</div>
+				<div class="b_bottom">
+          <el-button size="small" @click="close()">取消</el-button>
+					<el-button size="small" type="primary" @click="submit()">确定</el-button>
+				</div>
+			</div>
+		</el-dialog>
+	</div>
+</template>
+
+<script>
+export default {
+	data() {
+		return {
+			loading: false,
+			show: false,
+			data: null,
+			value: "",
+		};
+	},
+	computed: {},
+	methods: {
+		open(data) {
+			this.data = data;
+			this.loading = false;
+			this.show = true;
+		},
+		close() {
+			this.show = false;
+			this.init();
+		},
+		init() {
+			this.data = null;
+			this.loading = false;
+		},
+	},
+};
+</script>
+
+<style scoped>
+.dialog >>> .el-dialog {
+	width: 800px;
+	border-radius: 8px;
+	padding: 0;
+	background-color: #fff;
+	overflow: hidden;
+}
+
+.dialog >>> .el-dialog__body {
+	width: 800px !important;
+	height: auto;
+	flex-shrink: 0;
+	padding: 0;
+	box-sizing: border-box;
+	overflow: auto;
+}
+
+.dialog >>> .el-dialog__header {
+	display: none !important;
+}
+
+.box {
+	width: 100%;
+	height: 500px;
+	background: #fafafa;
+	border-radius: 15px;
+	box-shadow: 0px 6px 30px 5px rgba(0, 0, 0, 0.05),
+		0px 16px 24px 2px rgba(0, 0, 0, 0.04), 0px 8px 10px -5px rgba(0, 0, 0, 0.08);
+}
+
+.b_head {
+	width: 100%;
+	height: 50px;
+	border-radius: 15px 15px 0 0;
+	background: #fff;
+	display: flex;
+	align-items: center;
+	justify-content: space-between;
+	box-sizing: border-box;
+	padding: 0 20px;
+}
+
+.b_head > span {
+	font-size: 18px;
+	font-weight: bold;
+	color: #000;
+}
+
+.b_head > img {
+	width: 20px;
+	height: 20px;
+	cursor: pointer;
+}
+
+.b_head > svg {
+	width: 20px;
+	height: 20px;
+	cursor: pointer;
+}
+
+.b_main {
+	width: 100%;
+	height: calc(100% - 70px - 50px);
+	background: #fafafa;
+	padding: 20px 20px 0 20px;
+	box-sizing: border-box;
+	display: flex;
+	flex-direction: column;
+	align-items: center;
+	justify-content: center;
+}
+
+.b_bottom {
+	width: 100%;
+	height: 70px;
+	display: flex;
+	align-items: center;
+	justify-content: flex-end;
+	box-sizing: border-box;
+	padding: 0 20px;
+}
+
+</style>

Some files were not shown because too many files changed in this diff