Merge branch 'master-V32-XuHaoJie' into 'master'
通用-端口侦测-端口侦测细节优化 See merge request !367
Showing
4 changed files
with
33 additions
and
6 deletions
@@ -162,7 +162,7 @@ export default { | @@ -162,7 +162,7 @@ export default { | ||
162 | let prePage = (val) => { | 162 | let prePage = (val) => { |
163 | // console.log(`当前页: ${val}`) | 163 | // console.log(`当前页: ${val}`) |
164 | // props.currentPage = val - 1; | 164 | // props.currentPage = val - 1; |
165 | - currentPage.value = val; | 165 | + currentPage.value = val-1; |
166 | callback(); | 166 | callback(); |
167 | } | 167 | } |
168 | 168 | ||
@@ -170,7 +170,7 @@ export default { | @@ -170,7 +170,7 @@ export default { | ||
170 | let nextPage = (val) => { | 170 | let nextPage = (val) => { |
171 | // console.log(`当前页: ${val}`) | 171 | // console.log(`当前页: ${val}`) |
172 | // props.currentPage = val + 1; | 172 | // props.currentPage = val + 1; |
173 | - currentPage.value = val; | 173 | + currentPage.value = val+1; |
174 | callback(); | 174 | callback(); |
175 | } | 175 | } |
176 | 176 |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | <el-row style="margin-bottom: 5px;margin-top: 5px"> | 5 | <el-row style="margin-bottom: 5px;margin-top: 5px"> |
6 | <el-col :span="24"> | 6 | <el-col :span="24"> |
7 | <div class="flex-div-start margin-top-bottom-10"> | 7 | <div class="flex-div-start margin-top-bottom-10"> |
8 | - <el-tooltip placement="right-end"> | 8 | + <el-tooltip > |
9 | <template #content>关键字检索包含<br />资源名称<br />IP地址</template> | 9 | <template #content>关键字检索包含<br />资源名称<br />IP地址</template> |
10 | <el-input style="width:160px;margin-left: 10px;float: left;" class="margin-right-10" | 10 | <el-input style="width:160px;margin-left: 10px;float: left;" class="margin-right-10" |
11 | v-model="keyWords" | 11 | v-model="keyWords" |
@@ -57,9 +57,12 @@ | @@ -57,9 +57,12 @@ | ||
57 | <template #default="{row,prop,column}"> | 57 | <template #default="{row,prop,column}"> |
58 | <div v-if="prop == 'resName'"> | 58 | <div v-if="prop == 'resName'"> |
59 | <!-- 资源名称点击事件 --> | 59 | <!-- 资源名称点击事件 --> |
60 | - <el-button type="text" size="small" @click.prevent="resourceClick(row)"> | ||
61 | - <span class="">{{row.resName}}</span> | ||
62 | - </el-button> | 60 | + <el-tooltip placement="top"> |
61 | + <el-button type="text" size="small" @click.prevent="resourceClick(row)"> | ||
62 | + <span class="">{{row.resName}}</span> | ||
63 | + </el-button> | ||
64 | + <template #content>{{row.resName}}</template> | ||
65 | + </el-tooltip> | ||
63 | </div> | 66 | </div> |
64 | </template> | 67 | </template> |
65 | <template #tools="{scope}"> | 68 | <template #tools="{scope}"> |
@@ -129,6 +129,22 @@ export default { | @@ -129,6 +129,22 @@ export default { | ||
129 | let onBtnSearch = () => { | 129 | let onBtnSearch = () => { |
130 | loadTableDataList({page: 1, limit: pageSize.value}); | 130 | loadTableDataList({page: 1, limit: pageSize.value}); |
131 | } | 131 | } |
132 | + // 切换页码 | ||
133 | + let prePage = (val) => { | ||
134 | + // console.log(`当前页: ${val}`) | ||
135 | + // props.currentPage = val - 1; | ||
136 | + currentPage.value = val; | ||
137 | + callback(); | ||
138 | + } | ||
139 | + | ||
140 | + // 切换页码 | ||
141 | + let nextPage = (val) => { | ||
142 | + // console.log(`当前页: ${val}`) | ||
143 | + // props.currentPage = val + 1; | ||
144 | + currentPage.value = val; | ||
145 | + callback(); | ||
146 | + } | ||
147 | + | ||
132 | // 重置 | 148 | // 重置 |
133 | let onReset = () => { | 149 | let onReset = () => { |
134 | keyWords.value = ''; | 150 | keyWords.value = ''; |
@@ -202,6 +202,14 @@ export default { | @@ -202,6 +202,14 @@ export default { | ||
202 | } else { | 202 | } else { |
203 | if (['protocolType', 'portDesc'].indexOf(e.prop) === -1 && !/^\d+$/.test(item[e.prop])) { | 203 | if (['protocolType', 'portDesc'].indexOf(e.prop) === -1 && !/^\d+$/.test(item[e.prop])) { |
204 | msg = e.label + '请输入数字'; | 204 | msg = e.label + '请输入数字'; |
205 | + }else{ | ||
206 | + if(['protocolType', 'portDesc'].indexOf(e.prop) === -1 && item[e.prop].length>=8){ | ||
207 | + msg = e.label + '不能超过8位'; | ||
208 | + }else{ | ||
209 | + if(['protocolType', 'portDesc'].indexOf(e.prop) === -1 && item[e.prop]<=0){ | ||
210 | + msg = e.label + '只能大于零'; | ||
211 | + } | ||
212 | + } | ||
205 | } | 213 | } |
206 | } | 214 | } |
207 | }) | 215 | }) |
-
Please register or login to post a comment