页面分页搜索问题

This commit is contained in:
bwcx_jzy 2021-12-07 11:48:23 +08:00
parent 783d3dc2c7
commit 9443eb0a63
16 changed files with 22 additions and 34 deletions

View File

@ -70,7 +70,7 @@ export default {
list: [],
buildList: [],
total: 0,
listQuery: PAGE_DEFAULT_LIST_QUERY,
listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
temp: {},
buildLogVisible: false,

View File

@ -230,7 +230,7 @@ export default {
releaseMethodMap: releaseMethodMap,
releaseMethodArray: releaseMethodArray,
loading: false,
listQuery: PAGE_DEFAULT_LIST_QUERY,
listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
//
groupList: [],
list: [],

View File

@ -335,7 +335,7 @@ export default {
return {
loading: false,
childLoading: false,
listQuery: PAGE_DEFAULT_LIST_QUERY,
listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
list: [],
accessList: [],
nodeList: [],

View File

@ -66,7 +66,7 @@ export default {
nodeList: [],
dispatchList: [],
total: 0,
listQuery: PAGE_DEFAULT_LIST_QUERY,
listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
temp: {},
detailVisible: false,

View File

@ -73,7 +73,7 @@ export default {
data() {
return {
loading: false,
listQuery: PAGE_DEFAULT_LIST_QUERY,
listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
list: [],
userList: [],
nodeProjectList: [],

View File

@ -54,7 +54,7 @@ export default {
loading: false,
list: [],
nodeList: [],
listQuery: PAGE_DEFAULT_LIST_QUERY,
listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
temp: {},
detailVisible: false,
detailData: [],

View File

@ -79,7 +79,7 @@ export default {
data() {
return {
loading: false,
listQuery: PAGE_DEFAULT_LIST_QUERY,
listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
list: [],
classFeature: [],

View File

@ -136,7 +136,7 @@ export default {
return {
loading: false,
childLoading: false,
listQuery: PAGE_DEFAULT_LIST_QUERY,
listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
sshList: [],
list: [],
temp: {

View File

@ -270,7 +270,7 @@ export default {
data() {
return {
loading: false,
listQuery: PAGE_DEFAULT_LIST_QUERY,
listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
accessList: [],
jdkList: [],
runModeList: ["ClassPath", "Jar", "JarWar", "JavaExtDirsCp", "File"],

View File

@ -48,7 +48,7 @@ import { mapGetters } from "vuex";
import File from "../node/node-layout/project/project-file";
import Console from "../node/node-layout/project/project-console";
import { parseTime, itemGroupBy } from "@/utils/time";
import { PAGE_DEFAULT_LIMIT, PAGE_DEFAULT_SIZW_OPTIONS, PAGE_DEFAULT_SHOW_TOTAL } from "@/utils/const";
import { PAGE_DEFAULT_LIMIT, PAGE_DEFAULT_SIZW_OPTIONS, PAGE_DEFAULT_SHOW_TOTAL, PAGE_DEFAULT_LIST_QUERY } from "@/utils/const";
export default {
components: {
File,
@ -59,7 +59,7 @@ export default {
projList: [],
selectedRowKeys: [],
listQuery: { page: 1, limit: PAGE_DEFAULT_LIMIT, total: 0 },
listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
drawerTitle: "",
temp: {},

View File

@ -210,7 +210,7 @@ import { deleteSsh, editSsh, getSshList, getSshOperationLogList, installAgentNod
import SshFile from "./ssh-file";
import Terminal from "./terminal";
import { parseTime } from "@/utils/time";
import { PAGE_DEFAULT_LIMIT, PAGE_DEFAULT_SIZW_OPTIONS, PAGE_DEFAULT_SHOW_TOTAL } from "@/utils/const";
import { PAGE_DEFAULT_LIMIT, PAGE_DEFAULT_SIZW_OPTIONS, PAGE_DEFAULT_SHOW_TOTAL, PAGE_DEFAULT_LIST_QUERY } from "@/utils/const";
export default {
components: {
@ -222,7 +222,7 @@ export default {
loading: false,
list: [],
temp: {},
listQuery: { page: 1, limit: PAGE_DEFAULT_LIMIT, total: 0 },
listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
editSshVisible: false,
nodeVisible: false,
tempNode: {},

View File

@ -55,7 +55,7 @@ import { getMonitorOperateTypeList } from "@/api/monitor";
import { getNodeListAll } from "@/api/node";
import { getUserListAll } from "@/api/user";
import { parseTime } from "@/utils/time";
import { PAGE_DEFAULT_LIMIT, PAGE_DEFAULT_SIZW_OPTIONS, PAGE_DEFAULT_SHOW_TOTAL } from "@/utils/const";
import { PAGE_DEFAULT_LIMIT, PAGE_DEFAULT_SIZW_OPTIONS, PAGE_DEFAULT_SHOW_TOTAL, PAGE_DEFAULT_LIST_QUERY } from "@/utils/const";
export default {
data() {
return {
@ -64,11 +64,7 @@ export default {
nodeList: [],
nodeMap: {},
userList: [],
listQuery: {
page: 1,
limit: PAGE_DEFAULT_LIMIT,
total: 0,
},
listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
methodFeature: [],
classFeature: [],
methodFeatureMap: {},

View File

@ -134,7 +134,7 @@ export default {
data() {
return {
loading: false,
listQuery: PAGE_DEFAULT_LIST_QUERY,
listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
list: [],
total: 0,
temp: {},

View File

@ -73,7 +73,7 @@
import { mapGetters } from "vuex";
import { getBackupList, getTableNameList, createBackup, downloadBackupFile, deleteBackup, restoreBackup, uploadBackupFile, backupTypeMap, backupStatusMap } from "../../api/backup-info";
import { parseTime, renderSize } from "@/utils/time";
import { PAGE_DEFAULT_LIMIT, PAGE_DEFAULT_SIZW_OPTIONS, PAGE_DEFAULT_SHOW_TOTAL } from "@/utils/const";
import { PAGE_DEFAULT_LIMIT, PAGE_DEFAULT_SIZW_OPTIONS, PAGE_DEFAULT_SHOW_TOTAL, PAGE_DEFAULT_LIST_QUERY } from "@/utils/const";
export default {
components: {},
@ -82,7 +82,7 @@ export default {
backupTypeMap: backupTypeMap,
backupStatusMap: backupStatusMap,
loading: false,
listQuery: { page: 1, limit: PAGE_DEFAULT_LIMIT, total: 0 },
listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
backupTypeList: [
{ key: 0, value: "全量" },
{ key: 1, value: "部分" },

View File

@ -30,7 +30,7 @@
<script>
import { getWorkSpaceList, editWorkSpace, deleteWorkspace } from "@/api/workspace";
import { parseTime } from "@/utils/time";
import { PAGE_DEFAULT_LIMIT, PAGE_DEFAULT_SIZW_OPTIONS, PAGE_DEFAULT_SHOW_TOTAL } from "@/utils/const";
import { PAGE_DEFAULT_LIMIT, PAGE_DEFAULT_SIZW_OPTIONS, PAGE_DEFAULT_SHOW_TOTAL, PAGE_DEFAULT_LIST_QUERY } from "@/utils/const";
export default {
data() {
@ -38,11 +38,7 @@ export default {
loading: false,
list: [],
listQuery: {
page: 1,
limit: PAGE_DEFAULT_LIMIT,
total: 0,
},
listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
editVisible: false,
temp: {},
columns: [

View File

@ -54,7 +54,7 @@ import { getUserList, editUser, deleteUser, unlockUser, workspaceList } from "@/
import { getWorkSpaceListAll } from "@/api/workspace";
import { parseTime } from "@/utils/time";
import sha1 from "sha1";
import { PAGE_DEFAULT_LIMIT, PAGE_DEFAULT_SIZW_OPTIONS, PAGE_DEFAULT_SHOW_TOTAL } from "@/utils/const";
import { PAGE_DEFAULT_LIMIT, PAGE_DEFAULT_SIZW_OPTIONS, PAGE_DEFAULT_SHOW_TOTAL, PAGE_DEFAULT_LIST_QUERY } from "@/utils/const";
export default {
data() {
return {
@ -65,11 +65,7 @@ export default {
temp: {},
createOption: true,
editUserVisible: false,
listQuery: {
page: 1,
limit: PAGE_DEFAULT_LIMIT,
total: 0,
},
listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
columns: [
{ title: "ID", dataIndex: "id", ellipsis: true, width: 150 },
{ title: "昵称", dataIndex: "name", ellipsis: true },