Showing
4 changed files
with
30 additions
and
3 deletions
@@ -159,7 +159,7 @@ export default { | @@ -159,7 +159,7 @@ export default { | ||
159 | let prePage = (val) => { | 159 | let prePage = (val) => { |
160 | // console.log(`当前页: ${val}`) | 160 | // console.log(`当前页: ${val}`) |
161 | // props.currentPage = val - 1; | 161 | // props.currentPage = val - 1; |
162 | - currentPage.value = val; | 162 | + currentPage.value = val-1; |
163 | callback(); | 163 | callback(); |
164 | } | 164 | } |
165 | 165 | ||
@@ -167,7 +167,7 @@ export default { | @@ -167,7 +167,7 @@ export default { | ||
167 | let nextPage = (val) => { | 167 | let nextPage = (val) => { |
168 | // console.log(`当前页: ${val}`) | 168 | // console.log(`当前页: ${val}`) |
169 | // props.currentPage = val + 1; | 169 | // props.currentPage = val + 1; |
170 | - currentPage.value = val; | 170 | + currentPage.value = val+1; |
171 | callback(); | 171 | callback(); |
172 | } | 172 | } |
173 | 173 |
@@ -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-tooltip placement="top"> | ||
60 | <el-button type="text" size="small" @click.prevent="resourceClick(row)"> | 61 | <el-button type="text" size="small" @click.prevent="resourceClick(row)"> |
61 | <span class="">{{row.resName}}</span> | 62 | <span class="">{{row.resName}}</span> |
62 | </el-button> | 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