[fix][v]:全局修改config.year

master
Romesum 5 years ago
parent 91600169bf
commit 264286510b

@ -1,6 +1,6 @@
<template>
<div>
<el-dialog title="请填写以下申请信息" :visible="dialogVisable">
<el-dialog title="请确认以下申请信息" :visible="dialogVisable">
<el-form :model="form">
<el-form-item label="申请时间" prop="date"><el-input type="date" v-model="form.date"></el-input></el-form-item>
</el-form>

@ -129,6 +129,7 @@
import {closeLoading, showDialog, showDialogWithReject, showFail, showLoading, showSuccess} from "~/utils/dialog";
import setLabTime from "~/components/supManager/setLabTime";
import {item2html} from "~/utils/converter";
import config from "~/config";
export default {
components: {addLab, setLabTime, tb_courseDialog},
@ -138,7 +139,7 @@
setLabTimeDialog: false,
form: {},
time: {
year: '2019',
year: config.defyear,
semester: 2
},
search: '',

@ -49,6 +49,7 @@
import {get, post} from "~/utils";
import {showDialog, showSuccess} from "~/utils/dialog";
import {arr2shortString} from "~/utils/converter";
import config from "~/config";
export default {
components: {weekSelection, tb_course},
@ -70,24 +71,7 @@
courseDialog: false,
tableAlive: false, //
weekDialog: false,
selectOptions1: [
{
value: '2017',
label: '2017-2018年'
},
{
value: '2018',
label: '2018-2019年'
},
{
value: '2019',
label: '2019-2020年'
},
{
value: '2020',
label: '2020-2021年'
}
],
selectOptions1: config.year,
selectOptions2: [
{
value: 1,

@ -3,10 +3,9 @@
<el-form :model="time" :inline="true" style="width: 100%">
<el-form-item label="学年" style="width: 20% ;">
<el-select v-model="time.year" style="">
<el-option label="2017-2018" value="2017"></el-option>
<el-option label="2018-2019" value="2018"></el-option>
<el-option label="2019-2020" value="2019"></el-option>
<el-option label="2020-2021" value="2020"></el-option>
<div v-for="item in year">
<el-option :label="item.label" :value="item.value"></el-option>
</div>
</el-select>
</el-form-item>
<el-form-item label="学期" style="width: 20%">
@ -83,12 +82,14 @@
import userEditForm from "~/components/supManager/userEditForm";
import tb_courseDialog from "~/components/tb_courseDialog";
import {item2html} from "~/utils/converter";
import config from "~/config";
export default {
components: {userEditForm, tb_courseDialog},
data() {
return {
search: '',
year: config.year,
items: [],
tableData: [],
dialogFormVisible: false,

@ -1,30 +0,0 @@
<template>
<div id="app">
<img src="./assets/logo.png">
<div>
<el-button @click="startHacking">Start</el-button>
</div>
</div>
</template>
<script>
export default {
methods: {
startHacking () {
this.$notify({
title: 'It works!',
type: 'success',
message: 'We\'ve laid the ground work for you. It\'s time for you to build something epic!',
duration: 5000
})
}
}
}
</script>
<style>
#app {
font-family: Helvetica, sans-serif;
text-align: center;
}
</style>

@ -33,26 +33,15 @@
</template>
<script>
import config from "~/config";
export default {
name: "timeSelect",
data() {
return {
year: '2019',
semester: 2,
selectOptions1: [
{
value: '2017',
label: '2017-2018年'
},
{
value: '2018',
label: '2018-2019年'
},
{
value: '2019',
label: '2019-2020年'
}
],
selectOptions1: config.year,
selectOptions2: [
{
value: 1,

@ -3,7 +3,26 @@
const host = 'http://127.0.0.1:8080/'
const config = {
host
host,
defyear: '2019',
year:[
{
value: '2017',
label: '2017-2018年'
},
{
value: '2018',
label: '2018-2019年'
},
{
value: '2019',
label: '2019-2020年'
},
{
value: '2020',
label: '2020-2021年'
}
]
}
export default config

@ -117,6 +117,7 @@
import timeSelect from "~/components/timeSelect";
import {get, post} from "~/utils";
import {showDialog, showFail, showSuccess} from "~/utils/dialog";
import config from "~/config";
export default {
name: "courseManagement",
@ -149,20 +150,7 @@
ishavedocuments: 0,
remind: '',
},
selectOptions1: [
{
value: '2017',
label: '2017-2018年'
},
{
value: '2018',
label: '2018-2019年'
},
{
value: '2019',
label: '2019-2020年'
}
],
selectOptions1: config.year,
selectOptions2: [
{
value: 1,

@ -1,4 +1,4 @@
<template>
template>
<div id="app">
<img src="../assets/logo.png">
<div>

Loading…
Cancel
Save