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

View File

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