This repository was archived by the owner on Mar 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +54
-39
lines changed
Expand file tree Collapse file tree 2 files changed +54
-39
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ onMounted(() => {
121121 filterable
122122 style =" width : 100% "
123123 value-key =" id"
124- :placeholder =" $t('element.namePlace')"
125124 @visible-change =" findByProjectIdAndEleType"
126125 >
127126 <template #prefix >
@@ -130,39 +129,55 @@ onMounted(() => {
130129 }}</span >
131130 </template >
132131 <template #empty >
133- <div style =" text-align : center ; margin : 5px 0 " >
134- <el-select v-model =" moduleId" size =" small" @change =" findByModule" >
135- <el-option
136- v-for =" item in moduleList"
137- :key =" item.name"
138- :value =" item.id"
139- :label =" item.name"
140- >
141- </el-option >
142- </el-select >
132+ <div style =" text-align : center ; margin : 5px " >
133+ <el-input
134+ v-model =" name"
135+ :placeholder =" $t('element.namePlace')"
136+ @input =" findByName"
137+ >
138+ <template #prepend >
139+ <el-select
140+ v-model =" moduleId"
141+ style =" width : 115px "
142+ size =" small"
143+ @change =" findByModule"
144+ >
145+ <el-option
146+ v-for =" item in moduleList"
147+ :key =" item.name"
148+ :value =" item.id"
149+ :label =" item.name"
150+ >
151+ </el-option >
152+ </el-select >
153+ </template >
154+ </el-input >
143155 </div >
144156 <el-empty />
145157 </template >
146- <div
147- style ="
148- display : flex ;
149- justify-content : center ;
150- align-items : center ;
151- margin : 5px 0 ;
152- "
153- >
154- <span style =" font-size : 14px ; color : #99a9bf ; margin : 0 10px " >{{
155- $t('element.modelFilter')
156- }}</span >
157- <el-select v-model =" moduleId" size =" small" @change =" findByModule" >
158- <el-option
159- v-for =" item in moduleList"
160- :key =" item.name"
161- :value =" item.id"
162- :label =" item.name"
163- >
164- </el-option >
165- </el-select >
158+ <div style =" text-align : center ; margin : 5px " >
159+ <el-input
160+ v-model =" name"
161+ :placeholder =" $t('element.namePlace')"
162+ @input =" findByName"
163+ >
164+ <template #prepend >
165+ <el-select
166+ v-model =" moduleId"
167+ style =" width : 115px "
168+ size =" small"
169+ @change =" findByModule"
170+ >
171+ <el-option
172+ v-for =" item in moduleList"
173+ :key =" item.name"
174+ :value =" item.id"
175+ :label =" item.name"
176+ >
177+ </el-option >
178+ </el-select >
179+ </template >
180+ </el-input >
166181 </div >
167182 <el-option
168183 v-for =" item in pageData['content']"
Original file line number Diff line number Diff line change @@ -140,13 +140,13 @@ const openHub = () => {
140140};
141141watch (dialogAgent, (newValue , oldValue ) => {
142142 if (! newValue) {
143- agent .value = {
144- id: 0 ,
145- name: ' ' ,
146- highTemp: 45 ,
147- highTempTime: 15 ,
148- robotSecret: ' ' ,
149- robotToken: ' ' ,
143+ agent .value = {
144+ id: 0 ,
145+ name: ' ' ,
146+ highTemp: 45 ,
147+ highTempTime: 15 ,
148+ robotSecret: ' ' ,
149+ robotToken: ' ' ,
150150 robotType: 1 ,
151151 };
152152 }
@@ -1013,7 +1013,7 @@ onUnmounted(() => {
10131013 </el-form-item >
10141014 <el-form-item prop =" alertRobotIds" :label =" $t('agent.ui.alertRobotIds')" >
10151015 <el-checkbox
1016- :label =" $t('agent.ui.defaultAlertRobotIds')"
1016+ :label =" $t('agent.ui.defaultAlertRobotIds')"
10171017 :checked =" agent.alertRobotIds == null"
10181018 class =" mb-2"
10191019 @change ="
You can’t perform that action at this time.
0 commit comments