From b05640960d38a08def00a44b44aa11ef216f911f Mon Sep 17 00:00:00 2001
From: liuchengxin <13104445455@163.com>
Date: 星期二, 17 五月 2022 16:13:09 +0800
Subject: [PATCH] 样式修改
---
src/views/basics/school/index.vue | 53 ++++++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 48 insertions(+), 5 deletions(-)
diff --git a/src/views/basics/school/index.vue b/src/views/basics/school/index.vue
index 0ce859a..1f38640 100644
--- a/src/views/basics/school/index.vue
+++ b/src/views/basics/school/index.vue
@@ -137,9 +137,23 @@
<dict-tag :options="dict.type.DICT106" :value="scope.row.disciplineScope"/>
</template>
</el-table-column>
- <el-table-column label="澶囨敞" align="center" prop="remarks"/>
- <el-table-column label="鎿嶄綔" fixed="right" width="120" align="center" class-name="small-padding fixed-width">
+<!-- <el-table-column label="澶囨敞" align="center" prop="remarks"/>-->
+ <el-table-column label="鎿嶄綔" fixed="right" width="220" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-wind-power"
+ @click="handleOrganization(scope.row)"
+ >鏈烘瀯
+ </el-button>
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-office-building"
+ @click="handleBuild(scope.row)"
+ >寤虹瓚
+ </el-button>
<el-button
size="mini"
type="text"
@@ -170,7 +184,7 @@
/>
<!-- 娣诲姞鎴栦慨鏀瑰鏍″璇濇 -->
- <el-dialog :title="title" :close-on-click-modal="false" :visible.sync="open" width="500px" append-to-body>
+ <Dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="瀛︽牎浠g爜" prop="code">
<el-input v-model="form.code" placeholder="璇疯緭鍏ュ鏍′唬鐮�"/>
@@ -227,17 +241,33 @@
<el-button :loading="buttonLoading" type="primary" @click="submitForm">纭� 瀹�</el-button>
<el-button @click="cancel">鍙� 娑�</el-button>
</div>
- </el-dialog>
+ </Dialog>
+
+ <!-- 寤虹瓚 -->
+ <el-drawer title="寤虹瓚鍗曞厓" :visible.sync="buildOpen" size="50%" :append-to-body="true" :destroy-on-close="true">
+ <building :schoolId="id"></building>
+ </el-drawer>
+
+ <!-- 缁勭粐鏈烘瀯 -->
+ <el-drawer title="缁勭粐鏈烘瀯" :visible.sync="organizationOpen" size="50%" :append-to-body="true" :destroy-on-close="true">
+ <organization :schoolId="id"></organization>
+ </el-drawer>
</div>
</template>
<script>
import {listSchool, getSchool, delSchool, addSchool, updateSchool} from "@/api/oa/school";
import {listProvince, listCity} from "@/api/common/common";
+import building from '../building'
+import organization from '../organization'
export default {
name: "School",
dicts: ['DICT105', 'DICT106'],
+ components: {
+ building,
+ organization
+ },
data() {
return {
// 鎸夐挳loading
@@ -307,7 +337,10 @@
// 鐪佷唤
provinceFormList: [],
// 鍩庡競
- cityFormList: []
+ cityFormList: [],
+ buildOpen: false,
+ organizationOpen: false,
+ id: undefined
};
},
created() {
@@ -467,6 +500,16 @@
this.getCity(v).then(res => {
this.cityFormList = res
})
+ },
+ // 寤虹瓚
+ handleBuild(r) {
+ this.id = r.id;
+ this.buildOpen = true;
+ },
+ // 缁勭粐鏈烘瀯
+ handleOrganization(r) {
+ this.id = r.id;
+ this.organizationOpen = true;
}
}
};
--
Gitblit v1.9.1