update settings

This commit is contained in:
Qiuxia Fan 2022-03-29 17:28:33 +08:00
parent 04377173fa
commit c17d71b20a
2 changed files with 4 additions and 7 deletions

View File

@ -128,7 +128,7 @@ const props = defineProps({
const selectorStore = useSelectorStore();
const dashboardStore = useDashboardStore();
const chartLoading = ref<boolean>(false);
const pageSize = 15;
const pageSize = 10;
const services = ref<Service[]>([]);
const searchText = ref<string>("");
const groups = ref<any>({});
@ -241,12 +241,8 @@ function objectSpanMethod(param: any): any {
}
function changePage(pageIndex: number) {
services.value = sortServices.value.filter((d: Service, index: number) => {
if (
index >= (pageIndex - 1 || 0) * pageSize &&
index < pageSize * (pageIndex || 1)
) {
return d;
}
index >= (pageIndex - 1 || 0) * pageSize &&
index < pageSize * (pageIndex || 1);
});
}
function searchList() {

View File

@ -192,6 +192,7 @@ limitations under the License. -->
<el-input
v-model="metric.value"
placeholder="Please input a value"
type="number"
@change="changeLegend(LegendOpt.VALUE, $event, index)"
size="small"
class="item"