From a7cd5b2d39f856a72d901906a61af00b4e2039a6 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期五, 19 七月 2024 09:45:43 +0800
Subject: [PATCH] fix:科目下拉
---
src/views/education/department/edit.vue | 24 ++++++++++++++++++------
1 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/src/views/education/department/edit.vue b/src/views/education/department/edit.vue
index ab7efb8..cb7e90a 100644
--- a/src/views/education/department/edit.vue
+++ b/src/views/education/department/edit.vue
@@ -1,9 +1,9 @@
<template>
<div class="app-container">
- <el-form :model="form" ref="form" label-width="100px" v-loading="formLoading">
- <el-form-item label="閮ㄩ棬锛�" required>
- <el-input v-model="form.name"></el-input>
+ <el-form :model="form" ref="form" label-width="120px" label-position="top" v-loading="formLoading">
+ <el-form-item label="閮ㄩ棬鍚嶇О锛�" required>
+ <el-input v-model="form.name" style="width: 450px"></el-input>
</el-form-item>
<el-form-item label="涓婄骇閮ㄩ棬锛�">
<el-cascader
@@ -28,8 +28,18 @@
</el-option>
</el-select>
</el-form-item>
+ <el-form-item label="鍙鐞嗕笁绾у崟浣嶏細">
+ <el-switch
+ style="display: block"
+ v-model="form.special"
+ active-color="#13ce66"
+ inactive-color="#ff4949"
+ active-text="鍏佽"
+ inactive-text="绂佹">
+ </el-switch>
+ </el-form-item>
<el-form-item>
- <el-button type="primary" @click="submitForm">鎻愪氦</el-button>
+ <el-button type="primary" @click="submitForm">淇濆瓨</el-button>
<el-button @click="resetForm">閲嶇疆</el-button>
</el-form-item>
</el-form>
@@ -51,7 +61,8 @@
id: null,
name: '',
parentId: null,
- adminId: null
+ adminId: null,
+ special: false,
// level: 1,
// levelName: ''
},
@@ -149,7 +160,8 @@
name: '',
level: 1,
parentId: null,
- levelName: ''
+ levelName: '',
+ special: false
}
this.form.id = lastId
},
--
Gitblit v1.8.0