瀏覽代碼

修复甲方单位搜索栏按回车刷新的问题

余思翰 14 小時之前
父節點
當前提交
fa02e220db
共有 1 個檔案被更改,包括 20 行新增81 行删除
  1. 20
    81
      oa-ui/src/views/oa/partyA/index.vue

+ 20
- 81
oa-ui/src/views/oa/partyA/index.vue 查看文件

@@ -2,29 +2,9 @@
2 2
   <div class="app-container">
3 3
     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
4 4
       <el-form-item label="单位名称" prop="partyAName">
5
-        <el-input
6
-          v-model="queryParams.partyAName"
7
-          placeholder="请输入单位名称"
8
-          clearable
9
-          @keyup.enter.native="handleQuery"
10
-        />
5
+        <el-input v-model="queryParams.partyAName" placeholder="请输入单位名称" clearable @keyup.enter.native="handleQuery" />
11 6
       </el-form-item>
12
-      <!-- <el-form-item label="联系人" prop="aPerson">
13
-        <el-input
14
-          v-model="queryParams.aPerson"
15
-          placeholder="请输入联系人"
16
-          clearable
17
-          @keyup.enter.native="handleQuery"
18
-        />
19
-      </el-form-item>
20
-      <el-form-item label="联系电话" prop="aPhone">
21
-        <el-input
22
-          v-model="queryParams.aPhone"
23
-          placeholder="请输入联系电话"
24
-          clearable
25
-          @keyup.enter.native="handleQuery"
26
-        />
27
-      </el-form-item> -->
7
+      <el-form-item style="margin-bottom:0;display:none;"> <el-input></el-input> </el-form-item>
28 8
       <el-form-item>
29 9
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
30 10
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@@ -33,46 +13,20 @@
33 13
 
34 14
     <el-row :gutter="10" class="mb8">
35 15
       <el-col :span="1.5">
36
-        <el-button
37
-          type="primary"
38
-          plain
39
-          icon="el-icon-plus"
40
-          size="mini"
41
-          @click="handleAdd"
42
-          v-hasPermi="['oa:partyA:add']"
43
-        >新增</el-button>
16
+        <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
17
+          v-hasPermi="['oa:partyA:add']">新增</el-button>
44 18
       </el-col>
45 19
       <el-col :span="1.5">
46
-        <el-button
47
-          type="success"
48
-          plain
49
-          icon="el-icon-edit"
50
-          size="mini"
51
-          :disabled="single"
52
-          @click="handleUpdate"
53
-          v-hasPermi="['oa:partyA:edit']"
54
-        >修改</el-button>
20
+        <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
21
+          v-hasPermi="['oa:partyA:edit']">修改</el-button>
55 22
       </el-col>
56 23
       <el-col :span="1.5">
57
-        <el-button
58
-          type="danger"
59
-          plain
60
-          icon="el-icon-delete"
61
-          size="mini"
62
-          :disabled="multiple"
63
-          @click="handleDelete"
64
-          v-hasPermi="['oa:partyA:remove']"
65
-        >删除</el-button>
24
+        <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
25
+          v-hasPermi="['oa:partyA:remove']">删除</el-button>
66 26
       </el-col>
67 27
       <el-col :span="1.5">
68
-        <el-button
69
-          type="warning"
70
-          plain
71
-          icon="el-icon-download"
72
-          size="mini"
73
-          @click="handleExport"
74
-          v-hasPermi="['oa:partyA:export']"
75
-        >导出</el-button>
28
+        <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
29
+          v-hasPermi="['oa:partyA:export']">导出</el-button>
76 30
       </el-col>
77 31
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
78 32
     </el-row>
@@ -86,31 +40,16 @@
86 40
       <el-table-column label="备注说明" align="center" prop="remark" /> -->
87 41
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
88 42
         <template slot-scope="scope">
89
-          <el-button
90
-            size="mini"
91
-            type="text"
92
-            icon="el-icon-edit"
93
-            @click="handleUpdate(scope.row)"
94
-            v-hasPermi="['oa:partyA:edit']"
95
-          >修改</el-button>
96
-          <el-button
97
-            size="mini"
98
-            type="text"
99
-            icon="el-icon-delete"
100
-            @click="handleDelete(scope.row)"
101
-            v-hasPermi="['oa:partyA:remove']"
102
-          >删除</el-button>
43
+          <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
44
+            v-hasPermi="['oa:partyA:edit']">修改</el-button>
45
+          <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
46
+            v-hasPermi="['oa:partyA:remove']">删除</el-button>
103 47
         </template>
104 48
       </el-table-column>
105 49
     </el-table>
106
-    
107
-    <pagination
108
-      v-show="total>0"
109
-      :total="total"
110
-      :page.sync="queryParams.pageNum"
111
-      :limit.sync="queryParams.pageSize"
112
-      @pagination="getList"
113
-    />
50
+
51
+    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
52
+      @pagination="getList" />
114 53
 
115 54
     <!-- 添加或修改cmc业主单位对话框 -->
116 55
     <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
@@ -218,7 +157,7 @@ export default {
218 157
     // 多选框选中数据
219 158
     handleSelectionChange(selection) {
220 159
       this.ids = selection.map(item => item.partyAId)
221
-      this.single = selection.length!==1
160
+      this.single = selection.length !== 1
222 161
       this.multiple = !selection.length
223 162
     },
224 163
     /** 新增按钮操作 */
@@ -260,12 +199,12 @@ export default {
260 199
     /** 删除按钮操作 */
261 200
     handleDelete(row) {
262 201
       const partyAIds = row.partyAId || this.ids;
263
-      this.$modal.confirm('是否确认删除cmc业主单位编号为"' + partyAIds + '"的数据项?').then(function() {
202
+      this.$modal.confirm('是否确认删除cmc业主单位编号为"' + partyAIds + '"的数据项?').then(function () {
264 203
         return delPartyA(partyAIds);
265 204
       }).then(() => {
266 205
         this.getList();
267 206
         this.$modal.msgSuccess("删除成功");
268
-      }).catch(() => {});
207
+      }).catch(() => { });
269 208
     },
270 209
     /** 导出按钮操作 */
271 210
     handleExport() {

Loading…
取消
儲存