guoxiaohuan před 4 roky
rodič
revize
b93ba2a138

+ 4 - 4
src/components/editLengend.vue

@@ -31,17 +31,17 @@
                                             :content='`当前图例 ${row.Name} 与平面图中的不一致,平面图中为${row.RealNum}`'
                                             placement='top'
                                         >
-                                            <el-input @change='changeTable(row)' v-model='row.Num' size='mini'></el-input>
+                                            <el-input @keyup.enter.native='changeTable(row)' v-model='row.Num' size='mini'></el-input>
                                         </el-tooltip>
                                     </div>
                                     <div v-else-if='row.Num==null||row.RealNum==null'>
-                                        <el-input @change='changeTable(row)' v-model='row.Num' size='mini'></el-input>
+                                        <el-input @keyup.enter.native='changeTable(row)' v-model='row.Num' size='mini'></el-input>
                                     </div>
                                     <div v-else-if='!row.Num' class='nullData'>
-                                        <el-input @change='changeTable(row)' v-model='row.Num' size='mini'></el-input>
+                                        <el-input @keyup.enter.native='changeTable(row)' v-model='row.Num' size='mini'></el-input>
                                     </div>
                                     <div v-else style='width:50px'>
-                                        <el-input @change='changeTable(row)' v-model='row.Num' size='mini'></el-input>
+                                        <el-input @keyup.enter.native='changeTable(row)' v-model='row.Num' size='mini'></el-input>
                                     </div>
                                 </div>
 

+ 2 - 2
src/views/equipment/table/djspTable.vue

@@ -5,7 +5,7 @@
             <el-input
                 placeholder='搜索电井间'
                 size='small'
-                @change='getList'
+                @keyup.enter.native='getList'
                 prefix-icon='el-icon-search'
                 v-model='welldes'
                 clearable
@@ -14,7 +14,7 @@
             <el-input
                 placeholder='搜索商铺编号'
                 size='small'
-                @change='getList'
+                @keyup.enter.native='getList'
                 prefix-icon='el-icon-search'
                 v-model='shopsnum'
                 clearable

+ 2 - 2
src/views/equipment/table/eqDetaileDialog.vue

@@ -11,7 +11,7 @@
                 prefix-icon='el-icon-search'
                 v-model='sbjc'
                 clearable
-                @blur='queryTableList'
+                @keyup.enter.native='queryTableList'
             ></el-input>
             <Select v-model='sbglgs' width='180' tipPlace='top' caption='管理归属:' size='small' :selectdata='sbglgsOption' @change='queryTableList'></Select>
             <Select
@@ -31,7 +31,7 @@
                 clearable
                 prefix-icon='el-icon-search'
                 v-model='brand'
-                @blur='queryTableList'
+                @keyup.enter.native='queryTableList'
             ></el-input>
             <Select
                 width='150'

+ 3 - 3
src/views/equipment/table/eqListTable.vue

@@ -5,7 +5,7 @@
             <el-input
                 placeholder='搜索设备名称'
                 size='small'
-                @blur='getList'
+                @keyup.enter.native='getList'
                 prefix-icon='el-icon-search'
                 v-model='sbjc'
                 clearable
@@ -14,7 +14,7 @@
             <el-input
                 placeholder='搜索品牌型号'
                 size='small'
-                @blur='getList'
+                @keyup.enter.native='getList'
                 clearable
                 prefix-icon='el-icon-search'
                 v-model='keyword'
@@ -34,7 +34,7 @@
                 placeholder='搜索生产厂商'
                 clearable
                 size='small'
-                @blur='getList'
+                @keyup.enter.native='getList'
                 prefix-icon='el-icon-search'
                 v-model='manufacturer'
                 style='width:192px;'

+ 1 - 1
src/views/equipment/table/lookPageTable.vue

@@ -5,7 +5,7 @@
             <el-input
                 placeholder='搜索文件名'
                 size='small'
-                @change='getList'
+                @keyup.enter.native='getList'
                 clearable
                 prefix-icon='el-icon-search'
                 v-model='keyword'

+ 1 - 1
src/views/equipment/table/otherTable.vue

@@ -9,7 +9,7 @@
                 prefix-icon='el-icon-search'
                 v-model='keyword'
                 clearable
-                @blur='getList'
+                @keyup.enter.native='getList'
             ></el-input>
 
             <div class='picker-box'>

+ 3 - 3
src/views/equipment/table/standTable.vue

@@ -5,7 +5,7 @@
             <el-input
                 placeholder='搜索设备名称'
                 size='small'
-                @blur='getList'
+                @keyup.enter.native='getList'
                 prefix-icon='el-icon-search'
                 v-model='sbjc'
                 clearable
@@ -15,7 +15,7 @@
                 placeholder='搜索品牌型号'
                 size='small'
                 clearable
-                @blur='getList'
+                @keyup.enter.native='getList'
                 prefix-icon='el-icon-search'
                 v-model='keyword'
                 style='width:192px;margin-right:12px'
@@ -34,7 +34,7 @@
                 clearable
                 placeholder='搜索生产厂商'
                 size='small'
-                @blur='getList'
+                @keyup.enter.native='getList'
                 prefix-icon='el-icon-search'
                 v-model='manufacturer'
                 style='width:192px;'

+ 13 - 5
src/views/equipment/table/tjTable.vue

@@ -11,14 +11,22 @@
                 v-model='lb'
                 style='width:192px;margin-right:12px'
             ></el-input>
-            <el-input clearable placeholder='搜索品牌' size='small' @blur='getList' prefix-icon='el-icon-search' v-model='brand' style='width:192px'></el-input>
+            <el-input
+                clearable
+                placeholder='搜索品牌'
+                size='small'
+                @keyup.enter.native='getList'
+                prefix-icon='el-icon-search'
+                v-model='brand'
+                style='width:192px'
+            ></el-input>
         </div>
         <el-table :data='tableData' style='width: 100%' :border='true'>
-            <el-table-column type='index' label='序号' width='60' :index="indexMethod"></el-table-column>
-            <el-table-column prop='category' label='类别'  show-overflow-tooltip resizable>
+            <el-table-column type='index' label='序号' width='60' :index='indexMethod'></el-table-column>
+            <el-table-column prop='category' label='类别' show-overflow-tooltip resizable>
                 <template slot-scope='{row}'>{{row.category || '--'}}</template>
             </el-table-column>
-            <el-table-column prop='sl' label='数量' >
+            <el-table-column prop='sl' label='数量'>
                 <template slot-scope='{row}'>{{row.sl>=0?row.sl:'--'}}</template>
             </el-table-column>
             <el-table-column prop='brand' label='品牌'>
@@ -63,7 +71,7 @@ export default {
     methods: {
         //序号的方法
         indexMethod(index) {
-            return (this.currentPage - 1) * this.size + index +1
+            return (this.currentPage - 1) * this.size + index + 1
         },
         pageChanged(page, size) {
             this.currentPage = page

+ 1 - 1
src/views/equipment/table/wbTable.vue

@@ -14,7 +14,7 @@
             <el-input
                 placeholder='搜索重要事项记录描述'
                 size='small'
-                @blur='getList'
+                @keyup.enter.native='getList'
                 clearable
                 prefix-icon='el-icon-search'
                 v-model='matters'

+ 2 - 2
src/views/equipment/table/wxTable.vue

@@ -5,7 +5,7 @@
             <el-input
                 placeholder='搜索设备名称编号'
                 size='small'
-                @blur='getList'
+                @keyup.enter.native='getList'
                 clearable
                 prefix-icon='el-icon-search'
                 v-model='sbjc'
@@ -15,7 +15,7 @@
                 placeholder='搜索重要事项记录描述'
                 size='small'
                 clearable
-                @blur='getList'
+                @keyup.enter.native='getList'
                 prefix-icon='el-icon-search'
                 v-model='matters'
                 style='width:192px;margin-right:12px'

+ 9 - 1
src/views/equipment/table/zwTable.vue

@@ -22,7 +22,15 @@
                 style='margin:0 12px'
                 @change='getList'
             ></Select>
-            <el-input placeholder='搜索实施方案说明' prefix-icon='el-icon-search' size='small' style='width:192px' v-model='ssfasm' clearable @blur='getList'></el-input>
+            <el-input
+                placeholder='搜索实施方案说明'
+                prefix-icon='el-icon-search'
+                size='small'
+                style='width:192px'
+                v-model='ssfasm'
+                clearable
+                @keyup.enter.native='getList'
+            ></el-input>
             <!-- 当前阶段 -->
             <Select
                 width='180'

+ 1 - 1
src/views/legendLibrary/index.vue

@@ -98,7 +98,7 @@
                 ></Select>
                 <el-input
                     size='small'
-                    @change='getTableList'
+                    @keyup.enter.native='getTableList'
                     prefix-icon='el-icon-search'
                     v-model='keyword'
                     clearable

+ 1 - 1
src/views/legendRules/addList.vue

@@ -3,7 +3,7 @@
         <div>
             <el-input
                 size='small'
-                @change='queryAll'
+                @keyup.enter.native='queryAll'
                 prefix-icon='el-icon-search'
                 v-model='keyword'
                 style='width:192px;margin-right:12px;margin-top:20px;margin-bottom:12px'

+ 1 - 1
src/views/other/gcfz2.vue

@@ -13,7 +13,7 @@
                 :placeholder='"选择楼层"'
             ></Select>
             <el-input
-                @change='changelc'
+                @keyup.enter.native='changelc'
                 placeholder='搜索区域'
                 size='small'
                 style='width:200px;margin-right:12px;'

+ 9 - 1
src/views/other/zhsxOtherTable1.vue

@@ -27,7 +27,15 @@
                 :selectdata='department'
                 :placeholder='"请选择"'
             ></Select>
-            <el-input clearable placeholder='搜索记录事项' @change='getZhjl' size='small' prefix-icon='el-icon-search' v-model='ssjlsx' style='width:200px'></el-input>
+            <el-input
+                clearable
+                placeholder='搜索记录事项'
+                @keyup.enter.native='getZhjl'
+                size='small'
+                prefix-icon='el-icon-search'
+                v-model='ssjlsx'
+                style='width:200px'
+            ></el-input>
         </div>
         <el-table
             border

+ 10 - 2
src/views/other/zhsxOtherTable2.vue

@@ -36,14 +36,22 @@
             ></Select>-->
             <el-input
                 clearable
-                @change='dsfjc'
+                @keyup.enter.native='dsfjc'
                 placeholder='搜索部门'
                 size='small'
                 prefix-icon='el-icon-search'
                 v-model='bmdsf'
                 style='width:200px;margin-right:12px'
             ></el-input>
-            <el-input clearable @change='dsfjc' placeholder='搜索检测结论' size='small' prefix-icon='el-icon-search' v-model='jcjldsf' style='width:200px'></el-input>
+            <el-input
+                clearable
+                @keyup.enter.native='dsfjc'
+                placeholder='搜索检测结论'
+                size='small'
+                prefix-icon='el-icon-search'
+                v-model='jcjldsf'
+                style='width:200px'
+            ></el-input>
             <!-- <Select
                 @change='dsfjc'
                 width='200'

+ 2 - 2
src/views/room/detail.vue

@@ -4,7 +4,7 @@
         <div class='gdqd-dialog-top'>
             <el-input
                 clearable
-                @change='queryDetail'
+                @keyup.enter.native='queryDetail'
                 placeholder='搜索设备名称编号'
                 style='width:196px;margin-right:12px'
                 size='small'
@@ -35,7 +35,7 @@
             ></Select>
             <el-input
                 clearable
-                @change='queryDetail'
+                @keyup.enter.native='queryDetail'
                 placeholder='搜索品牌型号'
                 style='width:196px;margin-right:12px'
                 size='small'

+ 13 - 13
src/views/room/index.vue

@@ -35,7 +35,7 @@
                             ></Select>
                             <el-input
                                 clearable
-                                @change='Index1'
+                                @keyup.enter.native='Index1'
                                 v-model='ctbhInput'
                                 placeholder='搜索抽屉编号'
                                 size='small'
@@ -44,7 +44,7 @@
                             ></el-input>
                             <el-input
                                 clearable
-                                @change='Index1'
+                                @keyup.enter.native='Index1'
                                 v-model='cxggInput'
                                 placeholder='搜索出线规格'
                                 size='small'
@@ -53,7 +53,7 @@
                             ></el-input>
                             <el-input
                                 clearable
-                                @change='Index1'
+                                @keyup.enter.native='Index1'
                                 v-model='djbhInput'
                                 placeholder='搜索电井编号'
                                 size='small'
@@ -62,7 +62,7 @@
                             ></el-input>
                             <el-input
                                 clearable
-                                @change='Index1'
+                                @keyup.enter.native='Index1'
                                 v-model='kzhlInput'
                                 placeholder='搜索控制回路'
                                 size='small'
@@ -88,12 +88,12 @@
                                 size='small'
                                 prefix-icon='el-icon-search'
                                 v-model='sbjcInput'
-                                @change='Index2'
+                                @keyup.enter.native='Index2'
                                 style='width:200px;margin-right:12px'
                             ></el-input>
                             <el-input
                                 clearable
-                                @change='Index2'
+                                @keyup.enter.native='Index2'
                                 placeholder='搜索品牌、型号'
                                 size='small'
                                 prefix-icon='el-icon-search'
@@ -112,7 +112,7 @@
                             ></Select>-->
                             <el-input
                                 clearable
-                                @change='Index2'
+                                @keyup.enter.native='Index2'
                                 placeholder='搜索生产厂商'
                                 size='small'
                                 prefix-icon='el-icon-search'
@@ -134,7 +134,7 @@
                         <div class='compute-center'>
                             <el-input
                                 clearable
-                                @change='Index3'
+                                @keyup.enter.native='Index3'
                                 placeholder='搜索设备名称、编号'
                                 size='small'
                                 prefix-icon='el-icon-search'
@@ -143,7 +143,7 @@
                             ></el-input>
                             <el-input
                                 clearable
-                                @change='Index3'
+                                @keyup.enter.native='Index3'
                                 placeholder='搜索重要事项记录、描述'
                                 size='small'
                                 prefix-icon='el-icon-search'
@@ -162,7 +162,7 @@
                             ></Select>
                             <el-input
                                 clearable
-                                @change='Index3'
+                                @keyup.enter.native='Index3'
                                 placeholder='搜索工单编号'
                                 size='small'
                                 prefix-icon='el-icon-search'
@@ -252,7 +252,7 @@
                     <el-tab-pane label='维保记录' name='5'>
                         <div class='compute-center'>
                             <el-input
-                                @change='Index4'
+                                @keyup.enter.native='Index4'
                                 clearable
                                 placeholder='搜索设备名称、编号'
                                 size='small'
@@ -261,7 +261,7 @@
                                 style='margin-right:12px;width:220px;'
                             ></el-input>
                             <el-input
-                                @change='Index4'
+                                @keyup.enter.native='Index4'
                                 clearable
                                 placeholder='搜索核心维保事项记录描述'
                                 size='small'
@@ -270,7 +270,7 @@
                                 style='margin-right:12px;width:220px;'
                             ></el-input>
                             <el-input
-                                @change='Index4'
+                                @keyup.enter.native='Index4'
                                 clearable
                                 placeholder='搜索任务编号'
                                 size='small'