From 4d56b4733adabd8fc3f26d6d583587598aad87db Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期一, 22 七月 2024 18:19:54 +0800
Subject: [PATCH] 1

---
 src/pages/academicSchools/index.vue |  147 +++++++++++++++++++++++++++++++++---------------
 1 files changed, 101 insertions(+), 46 deletions(-)

diff --git a/src/pages/academicSchools/index.vue b/src/pages/academicSchools/index.vue
index 620dd0d..f7cb004 100644
--- a/src/pages/academicSchools/index.vue
+++ b/src/pages/academicSchools/index.vue
@@ -6,7 +6,7 @@
     <!-- 楂樼骇鎼滅储 -->
     <view
       style="
-        margin-left: 0.6rem;
+        padding-left: 0.6rem;
         margin-top: 0.1rem;
         display: flex;
         position: relative;
@@ -43,12 +43,86 @@
           </li>
         </ul>
       </view>
-      <view v-if="isAdvancedSearch">
-        <h3>楂樼骇鎼滅储</h3>
-        <MyForm @submit="onSubmit" :from="searchFrom" />
+      <view v-if="isAdvancedSearch" class="searchDialog">
+        <h3 style="margin-bottom: 0.2rem">楂樼骇鎼滅储</h3>
+        <el-form  label-width="100px" :model="formData" size="mini">
+          <el-row>
+            <el-col :span="8">
+              <el-form-item label="濮撳悕/鍒悕锛�">
+                <el-input v-model="formData.name"></el-input>
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="娲诲姩鍦帮細">
+                <el-select
+                  style="width: 100%"
+                  v-model="formData.actively"
+                  placeholder="璇烽�夋嫨娲诲姩鍦�"
+                >
+                  <!-- <el-option label="鍖哄煙涓�" value="shanghai"></el-option> -->
+                  <!-- <el-option label="鍖哄煙浜�" value="beijing"></el-option> -->
+                </el-select>
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="浣滃搧锛�">
+                <el-input v-model="formData.works"></el-input>
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <el-row>
+            <el-col :span="8">
+              <el-form-item label="浜虹墿鏍囩锛�">
+                <el-select
+                  style="width: 100%"
+                  v-model="formData.personTags"
+                  placeholder="璇烽�夋嫨浜虹墿鏍囩"
+                >
+                  <!-- <el-option label="鍖哄煙涓�" value="shanghai"></el-option> -->
+                  <!-- <el-option label="鍖哄煙浜�" value="beijing"></el-option> -->
+                </el-select>
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="绀句細韬唤锛�">
+                <el-select
+                  style="width: 100%"
+                  v-model="formData.socialIdentity"
+                  placeholder="璇烽�夋嫨绀句細韬唤"
+                >
+                  <!-- <el-option label="鍖哄煙涓�" value="shanghai"></el-option> -->
+                  <!-- <el-option label="鍖哄煙浜�" value="beijing"></el-option> -->
+                </el-select>
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="鏃舵湡锛�">
+                <el-select
+                  style="width: 100%"
+                  v-model="formData.period"
+                  placeholder="璇烽�夋嫨鏃舵湡"
+                >
+                  <!-- <el-option label="鍖哄煙涓�" value="shanghai"></el-option> -->
+                  <!-- <el-option label="鍖哄煙浜�" value="beijing"></el-option> -->
+                </el-select>
+              </el-form-item>
+            </el-col>
+          </el-row>
+        </el-form>
+        <div style="text-align: right">
+          <el-button type="primary" size="mini">鎼滅储</el-button>
+          <el-button size="mini">閲嶇疆</el-button>
+        </div>
       </view>
       <div v-if="showPerson" class="personDialog">
-        <i class="el-icon-circle-close closeBtn" @click="()=>{showPerson = false}"></i>
+        <i
+          class="el-icon-circle-close closeBtn"
+          @click="
+            () => {
+              showPerson = false;
+            }
+          "
+        ></i>
         <el-table :data="personList" style="width: 100%">
           <el-table-column prop="name" label="濮撳悕">
             <template slot-scope="scope">
@@ -157,44 +231,14 @@
         name: ""
       },
       isAdvancedSearch: false,
-      searchFrom: [
-        {
-          type: "input",
-          label: "濮撳悕/鍒悕",
-          name: "name",
-          value: ""
-        },
-        {
-          type: "input",
-          label: "娲诲姩鍦�",
-          name: "address",
-          value: ""
-        },
-        {
-          type: "input",
-          label: "浣滃搧",
-          name: "address",
-          value: ""
-        },
-        {
-          type: "input",
-          label: "浜虹墿鏍囩",
-          name: "address",
-          value: ""
-        },
-        {
-          type: "input",
-          label: "绀句細韬唤",
-          name: "address",
-          value: ""
-        },
-        {
-          type: "input",
-          label: "鏃舵湡",
-          name: "address",
-          value: ""
-        }
-      ],
+      formData: {
+        name: "",
+        actively: "",
+        works: "",
+        personTags: "",
+        socialIdentity: "",
+        period: ""
+      },
       showPerson: false,
       personList: [],
       personPageInfo: {
@@ -482,7 +526,7 @@
           // const p = personData.filter((item) => item.category == 4);
           // const s = personData.filter((item) => item.category == 5);
           // const nodesList = [...k, ...t, ...l, ...o, ...p, ...s];
-          
+
           personData.forEach((item) => {
             let exists1 = this.nodes.some(
               (node) =>
@@ -904,6 +948,17 @@
   }
 }
 
+.searchDialog {
+  position: absolute;
+  top: 0.68rem;
+  left: 0;
+  right: 0;
+  z-index: 999;
+  padding: 0.1rem 0.4rem;
+  background: #fff;
+  min-height: 2rem;
+}
+
 .personDialog {
   position: absolute;
   top: 0.68rem;
@@ -912,7 +967,7 @@
   background: #fff;
   border-radius: 6px;
   box-shadow: 0 0 10px -3px #000;
-  .closeBtn{
+  .closeBtn {
     position: absolute;
     right: -10px;
     top: -10px;
@@ -921,7 +976,7 @@
     font-size: 24px;
     background-color: #fff;
     border-radius: 50%;
-    color: #F56C6C;
+    color: #f56c6c;
     cursor: pointer;
   }
 }

--
Gitblit v1.9.1