From b5fc1096fa6f5ab4ada2ec198891b33bbc34a4a4 Mon Sep 17 00:00:00 2001
From: 张钢 <floatgang@163.com>
Date: 星期六, 24 八月 2024 08:27:03 +0800
Subject: [PATCH] 改正了一些语法问题

---
 ruoyi-ui/src/views/selfeconomy/index.vue |   71 ++++++++++++-----------------------
 1 files changed, 25 insertions(+), 46 deletions(-)

diff --git a/ruoyi-ui/src/views/selfeconomy/index.vue b/ruoyi-ui/src/views/selfeconomy/index.vue
index 6cd6e4c..9b250f8 100644
--- a/ruoyi-ui/src/views/selfeconomy/index.vue
+++ b/ruoyi-ui/src/views/selfeconomy/index.vue
@@ -132,54 +132,30 @@
             </el-upload>
           </el-col>
 
-          <el-col :span="1.5">
-            <el-button
-              type="primary"
-              plain
-              icon="el-icon-top"
-              size="mini"
-              :disabled="multiple"
-              @click="handleShare"
+        <el-dropdown placement="鍒嗕韩鐩稿叧">
+            <el-button size="mini"   type="primary"
+                       plain
+                       icon="el-icon-top">鍒嗕韩鐩稿叧</el-button>
+             <template #dropdown>
+               <el-dropdown-menu>
+                 <el-dropdown-item     :disabled="multiple" icon="el-icon-top" style="height: 32px;width:240px;color: #0099ff;" @click.native="handleShare">鍒嗕韩</el-dropdown-item>
 
-            >鍒嗕韩</el-button>
-          </el-col>
+        		          <el-dropdown-item    icon="el-icon-top" @click.native="whoShare">鍒嗕韩缁欐垜鐨勬暟鎹�</el-dropdown-item>
+        		      <el-dropdown-item    icon="el-icon-top" @click.native="handleWho">鍒嗕韩缁欒皝浜嗕粈涔堟暟鎹�</el-dropdown-item>
+                 <el-dropdown-item    icon="el-icon-top" @click.native="showData">灞曠ず涓嬭浇鐨勫垎浜暟鎹�</el-dropdown-item>
+               </el-dropdown-menu>
+             </template>
+           </el-dropdown>
 
-          <el-col :span="1.5">
-            <el-button
-              type="primary"
-              plain
-              icon="el-icon-top"
-              size="mini"
-              @click="handleWho"
-            >鍒嗕韩缁欒皝浜嗕粈涔堟暟鎹�</el-button>
-          </el-col>
 
-          <el-col :span="1.5">
-            <el-button
-              type="primary"
-              plain
-              icon="el-icon-top"
-              size="mini"
-              @click="whoShare"
-            >鍒嗕韩缁欐垜鐨勬暟鎹�</el-button>
-          </el-col>
 
-          <el-col :span="1.5">
-            <el-button
-              type="primary"
-              plain
-              icon="el-icon-top"
-              size="mini"
-              @click="showData"
-            >灞曠ず涓嬭浇鐨勫垎浜暟鎹�</el-button>
-          </el-col>
+               <right-toolbar :parentValue.sync="valueFromParent" :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
 
-          <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
         </el-row>
       </div>
 
-      <el-table v-loading="loading" :data="selfeconomyList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
-        <el-table-column type="selection" :reserve-selection="true" width="55"  align="center" />
+      <el-table v-loading="loading" border :data="selfeconomyList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
+        <el-table-column type="selection" :reserve-selection="true" width="55" align="center" />
         <el-table-column fixed label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="60"/>
         <el-table-column label="鏃ユ湡" prop="happenTime" sortable width="100" align="center">
           <template slot-scope="scope">{{scope.row.happenTime? scope.row.happenTime: '鈥斺�斺�斺��'}}</template>
@@ -232,10 +208,10 @@
               ></div>
           </template>
         </el-table-column>
-        <el-table-column label="澶囨敞" prop="remark" sortable width="90" align="center">
+        <el-table-column label="澶囨敞" prop="remark" sortable align="center">
           <template slot-scope="scope">{{scope.row.remark? scope.row.remark: '鈥斺�斺�斺��'}}</template>
         </el-table-column>
-        <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width" v-if="userId != 2">
+        <el-table-column label="鎿嶄綔" align="center" width="220" class-name="small-padding fixed-width" v-if="userId != 2">
           <template slot-scope="scope" v-if="scope.row.roleId !== 1">
             <div class="button-container">
             <el-button
@@ -650,6 +626,7 @@
         multiple1: true,
         dateRange1: [],
 
+        selfeconomyList: [],
 
         userId: undefined,
         // 閬僵灞�
@@ -667,10 +644,12 @@
         showSearch: true,
         // 鎬绘潯鏁�
         total: 0,
+        total1: 0,
         // 鐧惧勾蹇冩効琛ㄦ牸鏁版嵁
         wishList: [],
         // 寮瑰嚭灞傛爣棰�
         title: "",
+		valueFromParent: "璐骇",
         // 鏄惁鏄剧ず寮瑰嚭灞�
         open: false,
         // 鏄惁鏄剧ず寮瑰嚭灞傦紙鏁版嵁鏉冮檺锛�
@@ -684,7 +663,7 @@
         // 鏁版嵁鑼冨洿閫夐」
     // 鏁版嵁鑼冨洿閫夐」
     fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx',
-      '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'],
+      '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng','.m4a'],
 
         fileList:[
         ],
@@ -813,10 +792,10 @@
       };
     },
     created() {
-      this.getList1()
+      this.getList1();
       this.getList();
-      this.getCateInfor()
-      this.getInfo()
+      //this.getCateInfor();
+      this.getInfo();
       // for (let i = 0; i < this.contactList.length; i++) {
       //   this.formDat[i] = this.contactList[i];
       // }

--
Gitblit v1.9.1