|
|
|
@ -1,41 +1,23 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-drawer
|
|
|
|
<el-drawer :title="$route.meta.title" direction="rtl" size="68%" :visible.sync="visible" append-to-body
|
|
|
|
:title="$route.meta.title"
|
|
|
|
:before-close="handleClose" @close="$emit('update:isShow', false)">
|
|
|
|
direction="rtl"
|
|
|
|
|
|
|
|
size="68%"
|
|
|
|
|
|
|
|
:visible.sync="visible"
|
|
|
|
|
|
|
|
append-to-body
|
|
|
|
|
|
|
|
:before-close="handleClose"
|
|
|
|
|
|
|
|
@close="$emit('update:isShow', false)"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<section class="drawer-container">
|
|
|
|
<section class="drawer-container">
|
|
|
|
<el-form
|
|
|
|
<el-form class="drawer-container__form" ref="elForm" :model="form" :rules="rules" label-position="top"
|
|
|
|
class="drawer-container__form"
|
|
|
|
label-width="120px" size="small">
|
|
|
|
ref="elForm"
|
|
|
|
|
|
|
|
:model="form"
|
|
|
|
|
|
|
|
:rules="rules"
|
|
|
|
|
|
|
|
label-position="top"
|
|
|
|
|
|
|
|
label-width="120px"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<div class="form-layout">
|
|
|
|
<div class="form-layout">
|
|
|
|
<el-form-item label="名称" prop="name">
|
|
|
|
<el-form-item label="名称" prop="name">
|
|
|
|
<el-input
|
|
|
|
<el-input v-model="form['name']" clearable placeholder="请填写名称" style="width: 100%"></el-input>
|
|
|
|
v-model="form['name']"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
placeholder="请填写名称"
|
|
|
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="分组" prop="group">
|
|
|
|
<el-form-item label="分组" prop="group">
|
|
|
|
<el-input
|
|
|
|
<el-input v-model="form['group']" clearable placeholder="请填写分组" style="width: 100%"></el-input>
|
|
|
|
v-model="form['group']"
|
|
|
|
</el-form-item>
|
|
|
|
clearable
|
|
|
|
<el-form-item label="自主招生显示" prop="is_show">
|
|
|
|
placeholder="请填写分组"
|
|
|
|
<el-select v-model="form['is_show']">
|
|
|
|
style="width: 100%"
|
|
|
|
<el-option v-for="item in showList" :key="item.id" :label="item.value"
|
|
|
|
></el-input>
|
|
|
|
:value="item.id"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
@ -52,13 +34,22 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { save, show } from "@/api/area/area";
|
|
|
|
import {
|
|
|
|
import axios from "axios";
|
|
|
|
save,
|
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
|
show
|
|
|
|
import { uploadSize } from "@/settings";
|
|
|
|
} from "@/api/area/area";
|
|
|
|
import { formatFileSize } from "@/utils";
|
|
|
|
import axios from "axios";
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
getToken
|
|
|
|
|
|
|
|
} from "@/utils/auth";
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
uploadSize
|
|
|
|
|
|
|
|
} from "@/settings";
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
formatFileSize
|
|
|
|
|
|
|
|
} from "@/utils";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "AreaDrawer",
|
|
|
|
name: "AreaDrawer",
|
|
|
|
props: {
|
|
|
|
props: {
|
|
|
|
isShow: {
|
|
|
|
isShow: {
|
|
|
|
@ -73,10 +64,18 @@ export default {
|
|
|
|
action: process.env.VUE_APP_UPLOAD_API,
|
|
|
|
action: process.env.VUE_APP_UPLOAD_API,
|
|
|
|
loading: false,
|
|
|
|
loading: false,
|
|
|
|
visible: false,
|
|
|
|
visible: false,
|
|
|
|
|
|
|
|
showList: [{
|
|
|
|
|
|
|
|
id: 1,
|
|
|
|
|
|
|
|
value: '是'
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
id: 0,
|
|
|
|
|
|
|
|
value: '否'
|
|
|
|
|
|
|
|
}],
|
|
|
|
form: {
|
|
|
|
form: {
|
|
|
|
name: "",
|
|
|
|
name: "",
|
|
|
|
|
|
|
|
|
|
|
|
group: "",
|
|
|
|
group: "",
|
|
|
|
|
|
|
|
is_show: 1
|
|
|
|
},
|
|
|
|
},
|
|
|
|
rules: {},
|
|
|
|
rules: {},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
@ -161,22 +160,25 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.span2 {
|
|
|
|
.span2 {
|
|
|
|
grid-column: span 2;
|
|
|
|
grid-column: span 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
::v-deep .el-form-item > * {
|
|
|
|
|
|
|
|
|
|
|
|
::v-deep .el-form-item>* {
|
|
|
|
max-width: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.form-layout {
|
|
|
|
|
|
|
|
|
|
|
|
.form-layout {
|
|
|
|
display: grid;
|
|
|
|
display: grid;
|
|
|
|
grid-gap: 2%;
|
|
|
|
grid-gap: 2%;
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.drawer-container {
|
|
|
|
|
|
|
|
|
|
|
|
.drawer-container {
|
|
|
|
height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
padding: 20px;
|
|
|
|
padding: 20px;
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
@ -186,9 +188,10 @@ export default {
|
|
|
|
flex: 1;
|
|
|
|
flex: 1;
|
|
|
|
overflow-y: scroll;
|
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&__footer {
|
|
|
|
&__footer {
|
|
|
|
margin-top: 20px;
|
|
|
|
margin-top: 20px;
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
|