页面分页搜索问题

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: [], list: [],
buildList: [], buildList: [],
total: 0, total: 0,
listQuery: PAGE_DEFAULT_LIST_QUERY, listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
temp: {}, temp: {},
buildLogVisible: false, buildLogVisible: false,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -270,7 +270,7 @@ export default {
data() { data() {
return { return {
loading: false, loading: false,
listQuery: PAGE_DEFAULT_LIST_QUERY, listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
accessList: [], accessList: [],
jdkList: [], jdkList: [],
runModeList: ["ClassPath", "Jar", "JarWar", "JavaExtDirsCp", "File"], 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 File from "../node/node-layout/project/project-file";
import Console from "../node/node-layout/project/project-console"; import Console from "../node/node-layout/project/project-console";
import { parseTime, itemGroupBy } from "@/utils/time"; 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 { export default {
components: { components: {
File, File,
@ -59,7 +59,7 @@ export default {
projList: [], projList: [],
selectedRowKeys: [], selectedRowKeys: [],
listQuery: { page: 1, limit: PAGE_DEFAULT_LIMIT, total: 0 }, listQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
drawerTitle: "", drawerTitle: "",
temp: {}, temp: {},

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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