7.16日任务

dev
lion 1 year ago
parent 83e7f89731
commit f7161d5c69

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

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

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

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

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

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

Loading…
Cancel
Save