7.16日任务

dev
lion 1 year ago
parent 83e7f89731
commit f7161d5c69

@ -50,7 +50,7 @@
width: 100%; width: 100%;
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
background: #fff; // background: #fff;
text-align: center; text-align: center;
overflow: hidden; overflow: hidden;

@ -30,7 +30,7 @@
<el-table-column v-for="(column, index) in columns" :key="index" :prop="column.prop" :label="column.label" <el-table-column v-for="(column, index) in columns" :key="index" :prop="column.prop" :label="column.label"
:width="column.width"> :width="column.width">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="column.type === 'time'" @click="openTime(scope.$index,scope.row[column.prop])"> <div v-if="column.type === 'time'" class="subjectCell" @click="openTime(scope.$index,scope.row[column.prop])">
{{ formatTime(scope.row[column.prop]) }} {{ formatTime(scope.row[column.prop]) }}
</div> </div>
<div class="subjectCell" v-else @click="openSubject(scope.$index,column.prop,scope.row[column.prop])"> <div class="subjectCell" v-else @click="openSubject(scope.$index,column.prop,scope.row[column.prop])">
@ -137,6 +137,7 @@
}, },
{ {
time: ['11:15', '13:00'], time: ['11:15', '13:00'],
monday:{},
tuesday: {}, tuesday: {},
wednesday: {}, wednesday: {},
thursday: {}, thursday: {},
@ -146,6 +147,7 @@
}, },
{ {
time: ['13:00', '14:00'], time: ['13:00', '14:00'],
monday:{},
tuesday: {}, tuesday: {},
wednesday: {}, wednesday: {},
thursday: {}, thursday: {},
@ -155,6 +157,7 @@
}, },
{ {
time: ['14:15', '15:15'], time: ['14:15', '15:15'],
monday:{},
tuesday: {}, tuesday: {},
wednesday: {}, wednesday: {},
thursday: {}, thursday: {},
@ -170,6 +173,7 @@
addColum(index) { addColum(index) {
const obj = { const obj = {
time: [], time: [],
monday:{},
tuesday: {}, tuesday: {},
wednesday: {}, wednesday: {},
thursday: {}, thursday: {},

@ -53,6 +53,7 @@
</template> </template>
<script> <script>
import { deepCopy } from "@/utils";
export default { export default {
components: { components: {
@ -94,11 +95,12 @@
created() {}, created() {},
methods: { methods: {
setIndex(index, prop, form) { setIndex(index, prop, form) {
this.submitObj = form this.submitObj = deepCopy(form)
this.submitObj.prop = prop this.submitObj.prop = prop
this.submitObj.index = index this.submitObj.index = index
console.log("this.submitObj", this.submitObj) console.log("this.submitObj", this.submitObj)
}, },
changeTeacher(e) { changeTeacher(e) {
this.teacher_options.map(item => { this.teacher_options.map(item => {
if (item.id === e) { if (item.id === e) {
@ -139,7 +141,7 @@
return return
} }
console.log("this.form111", this.submitObj) console.log("this.form111", this.submitObj)
this.$emit("@refresh", this.submitObj) this.$emit("refresh", this.submitObj)
this.isShow = false this.isShow = false
} }
}, },

@ -54,7 +54,7 @@
} }
}, },
submit() { submit() {
if (!this.range) { if (!this.range || this.range.length<1) {
this.$message({ this.$message({
type: 'warning', type: 'warning',
message: '请选择上课时间' message: '请选择上课时间'

@ -29,9 +29,9 @@
<div> <div>
<el-button type="primary" size="small">查询</el-button> <el-button type="primary" size="small">查询</el-button>
</div> </div>
<div> <!-- <div>
<el-button type="primary" size="small" @click="editCourse('add')"></el-button> <el-button type="primary" size="small" @click="editCourse('add')"></el-button>
</div> </div> -->
</div> </div>
</div> </div>

@ -25,7 +25,7 @@ module.exports = {
* Detail: https://cli.vuejs.org/config/#publicpath * Detail: https://cli.vuejs.org/config/#publicpath
*/ */
publicPath: process.env.ENV === 'staging' ? '/admin_test' : '/admin', publicPath: process.env.ENV === 'staging' ? '/admin_test' : '/admin',
outputDir: './dist', outputDir: '/Users/mac/Documents/朗业/2024/s-苏州科技商学院/suzhoukeji/public/admin',
assetsDir: 'static', assetsDir: 'static',
css: { css: {
loaderOptions: { // 向 CSS 相关的 loader 传递选项 loaderOptions: { // 向 CSS 相关的 loader 传递选项

Loading…
Cancel
Save