|
|
@@ -1,15 +1,124 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
- 公海客户
|
|
|
+ <div class="main_container">
|
|
|
+ <div class="page_item end_item">
|
|
|
+ <div class="page_search">
|
|
|
+ <div class="search_content">
|
|
|
+ <div class="content_left">
|
|
|
+ <SearchBlock :searchList="blockSearchList"></SearchBlock>
|
|
|
+ </div>
|
|
|
+ <div class="content_right">
|
|
|
+ <el-button class="button_refresh">批量导入</el-button>
|
|
|
+ <el-button class="button_background" @click="OpenSchoolFormDialog">新增学校</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <FormSearchGroup :searchList="formSearchList"></FormSearchGroup>
|
|
|
+ <Table :tableColumns="tableColumns" :tableData="tableData">
|
|
|
+ <template #operation="{row}">
|
|
|
+ <div class="table_row_option">
|
|
|
+ <span class="button_editor">认领</span>
|
|
|
+ <span class="button_editor" @click="OpenSchoolFormDialog(row)">编辑</span>
|
|
|
+ <span class="button_editor">详情</span>
|
|
|
+ <span class="el_button_delete">删除</span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </Table>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <SchoolFormDialog
|
|
|
+ :schoolTitle="schoolTitle"
|
|
|
+ v-model:visible="schoolVisible"
|
|
|
+ :defaultFormData="schoolDefaultFormData">
|
|
|
+ </SchoolFormDialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
+import { ref } from 'vue';
|
|
|
+import FormSearchGroup from '@/baseComponents/FormSearchGroup.vue';
|
|
|
+import {formSearchList} from './formSearchGroup';
|
|
|
+import SearchBlock from '@/baseComponents/SearchBlock.vue';
|
|
|
+import { blockSearchList } from './searchBlock';
|
|
|
+import Table from '@/baseComponents/Table.vue';
|
|
|
+import {tableColumns} from './table'
|
|
|
+
|
|
|
+import SchoolFormDialog from '@/components/SchoolFormDialog/index.vue'
|
|
|
+
|
|
|
+
|
|
|
+// 表格数据
|
|
|
+const tableData = ref([
|
|
|
+ {
|
|
|
+ index: '1',
|
|
|
+ schoolName: '流星花园学校',
|
|
|
+ schoolStage: 'primary',
|
|
|
+ schoolStageName: '小学',
|
|
|
+ province: '北京市',
|
|
|
+ district: '西城区',
|
|
|
+ poolTime: '2026-03-11',
|
|
|
+ idleDays: '3天',
|
|
|
+ detailAddress:'通州北苑'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: '2',
|
|
|
+ schoolName: '北京师达',
|
|
|
+ schoolStage: 'middle',
|
|
|
+ schoolStageName: '初中',
|
|
|
+ province: '北京市',
|
|
|
+ district: '西城区',
|
|
|
+ poolTime: '2026-03-11',
|
|
|
+ idleDays: '3天',
|
|
|
+ detailAddress:'通州北苑'
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: '3',
|
|
|
+ schoolName: '北京五十七中学',
|
|
|
+ schoolStage: 'senior',
|
|
|
+ schoolStageName: '高中',
|
|
|
+ province: '北京市',
|
|
|
+ district: '西城区',
|
|
|
+ poolTime: '2025-11-01',
|
|
|
+ idleDays: '10天',
|
|
|
+ detailAddress:'通州北苑'
|
|
|
+
|
|
|
+ }
|
|
|
+])
|
|
|
+
|
|
|
+
|
|
|
+// 学校弹窗有关数据
|
|
|
+const schoolVisible = ref(false)
|
|
|
+const schoolTitle = ref('')
|
|
|
+const schoolDefaultFormData = ref({})
|
|
|
+const OpenSchoolFormDialog = (row?:any)=>{
|
|
|
+ if(row){
|
|
|
+ schoolTitle.value = '编辑学校'
|
|
|
+ }else{
|
|
|
+ schoolTitle.value = '新增学校'
|
|
|
+ }
|
|
|
+
|
|
|
+ console.log('当前行',row)
|
|
|
+ schoolVisible.value = true
|
|
|
+ schoolDefaultFormData.value = {
|
|
|
+ ...row,
|
|
|
+ provinceArea:{
|
|
|
+ province:row.province,
|
|
|
+ district:row.district,
|
|
|
+ },
|
|
|
+
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+.end_item{
|
|
|
+ gap:16px;
|
|
|
+ .search_content{
|
|
|
+ align-items: flex-start;
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
</style>
|