소스 검색

新后台分页调整

zhouqun 7 년 전
부모
커밋
089a0ad7e5
47개의 변경된 파일404개의 추가작업 그리고 1603개의 파일을 삭제
  1. 28 3
      .nuxt/App.js
  2. 136 15
      .nuxt/client.js
  3. 5 2
      .nuxt/components/no-ssr.js
  4. 6 2
      .nuxt/components/nuxt-child.js
  5. 7 3
      .nuxt/components/nuxt-error.vue
  6. 0 8
      .nuxt/components/nuxt-link.js
  7. 1 1
      .nuxt/components/nuxt-loading.vue
  8. 34 24
      .nuxt/components/nuxt.js
  9. 0 1
      .nuxt/dist/client/2938992cd841480586e0.js
  10. 0 1
      .nuxt/dist/client/3a8d100307a0351f046d.js
  11. 0 1
      .nuxt/dist/client/3ab6691556e3c7d1111e.js
  12. 0 1
      .nuxt/dist/client/4e0fd24389bfb3a78712.js
  13. 0 2
      .nuxt/dist/client/5c08bb7c7c0580b90878.js
  14. 0 1
      .nuxt/dist/client/6c0fcbc8fbc391176d59.js
  15. 0 1
      .nuxt/dist/client/7b649bef64a7a914afde.js
  16. 0 1
      .nuxt/dist/client/83c0a7ec9a104af9f5c1.js
  17. 0 1
      .nuxt/dist/client/879a30199b6676446fde.js
  18. 0 1
      .nuxt/dist/client/8ca084c182acc8dabb9e.js
  19. 0 1
      .nuxt/dist/client/8e5691c610ce146c270b.js
  20. 0 1
      .nuxt/dist/client/8fd0fec097c9ca571ff5.js
  21. 0 1
      .nuxt/dist/client/90c752196a064fd23d2e.js
  22. 0 1
      .nuxt/dist/client/9dc1743740a2a953605d.js
  23. 0 1
      .nuxt/dist/client/9f9167f8e835b8579427.js
  24. 0 65
      .nuxt/dist/client/LICENSES
  25. 0 1
      .nuxt/dist/client/b408bcd9156e1251b7ef.js
  26. 0 2
      .nuxt/dist/client/c3c421f45923e05d13fe.js
  27. 0 1
      .nuxt/dist/client/d00bc0c00b1f416fab3d.js
  28. 0 1
      .nuxt/dist/client/d23c12f3a53dfa40b56d.js
  29. 0 1
      .nuxt/dist/client/d37da47a06beff741e56.js
  30. 0 1
      .nuxt/dist/client/e985572656d6362b5ef2.js
  31. BIN
      .nuxt/dist/client/fonts/2fad952.woff
  32. BIN
      .nuxt/dist/client/fonts/6f0a763.ttf
  33. 0 9
      .nuxt/dist/server/index.spa.html
  34. 0 1354
      .nuxt/dist/server/vue-ssr-client-manifest.json
  35. 12 13
      .nuxt/index.js
  36. 2 0
      .nuxt/loading.html
  37. 2 2
      .nuxt/middleware.js
  38. 73 41
      .nuxt/router.js
  39. 14 7
      .nuxt/server.js
  40. 19 9
      .nuxt/utils.js
  41. 1 1
      .nuxt/views/app.template.html
  42. 1 1
      .nuxt/views/error.html
  43. 18 4
      pages/main/index/cert_check.vue
  44. 4 4
      pages/main/index/cert_edit.vue
  45. 12 3
      pages/main/index/cert_pro.vue
  46. 13 6
      pages/main/index/cloud_balance.vue
  47. 16 3
      pages/main/index/dev_check.vue

+ 28 - 3
.nuxt/App.js

@@ -3,7 +3,7 @@ import NuxtLoading from './components/nuxt-loading.vue'
 
 import '../node_modules/element-ui/lib/theme-chalk/index.css'
 
-import '../assets/css/main.css'
+import '../static/css/main.css'
 
 import _6f6c098b from '../layouts/default.vue'
 
@@ -13,7 +13,7 @@ export default {
   head: {"title":"boss","meta":[{"charset":"utf-8"},{"name":"viewport","content":"width=device-width, initial-scale=1"},{"hid":"description","name":"description","content":"boss ssr ver"}],"link":[{"rel":"icon","type":"image\u002Fx-icon","href":"\u002Ffavicon.ico"}],"style":[],"script":[]},
 
   render(h, props) {
-    const loadingEl = h('nuxt-loading', { ref: 'loading' })
+    const loadingEl = h('NuxtLoading', { ref: 'loading' })
     const layoutEl = h(this.layout || 'nuxt')
     const templateEl = h('div', {
       domProps: {
@@ -47,6 +47,7 @@ export default {
     ])
   },
   data: () => ({
+    isOnline: true,
     layout: null,
     layoutName: ''
   }),
@@ -57,8 +58,12 @@ export default {
     // Add this.$nuxt in child instances
     Vue.prototype.$nuxt = this
     // add to window so we can listen when ready
-    if (typeof window !== 'undefined') {
+    if (process.client) {
       window.$nuxt = this
+      this.refreshOnlineStatus()
+      // Setup the listeners
+      window.addEventListener('online', this.refreshOnlineStatus)
+      window.addEventListener('offline', this.refreshOnlineStatus)
     }
     // Add $nuxt.error()
     this.error = this.nuxt.error
@@ -71,7 +76,25 @@ export default {
     'nuxt.err': 'errorChanged'
   },
 
+  computed: {
+    isOffline() {
+      return !this.isOnline
+    }
+  },
   methods: {
+    refreshOnlineStatus() {
+      if (process.client) {
+        if (typeof window.navigator.onLine === 'undefined') {
+          // If the browser doesn't support connection status reports
+          // assume that we are online because most apps' only react
+          // when they now that the connection has been interrupted
+          this.isOnline = true
+        } else {
+          this.isOnline = window.navigator.onLine
+        }
+      }
+    },
+
     errorChanged() {
       if (this.nuxt.err && this.$loading) {
         if (this.$loading.fail) this.$loading.fail()
@@ -80,6 +103,8 @@ export default {
     },
 
     setLayout(layout) {
+      if(layout && typeof layout !== 'string') throw new Error('[nuxt] Avoid using non-string value as layout property.')
+
       if (!layout || !layouts['_' + layout]) {
         layout = 'default'
       }

+ 136 - 15
.nuxt/client.js

@@ -1,5 +1,5 @@
 import Vue from 'vue'
-import middleware from './middleware'
+import middleware from './middleware.js'
 import {
   applyAsyncData,
   sanitizeComponent,
@@ -14,11 +14,13 @@ import {
   compile,
   getQueryDiff,
   globalHandleError
-} from './utils'
-import { createApp, NuxtError } from './index'
+} from './utils.js'
+import { createApp, NuxtError } from './index.js'
+import NuxtLink from './components/nuxt-link.client.js' // should be included after ./index.js
 
-const noopData = () => { return {} }
-const noopFetch = () => {}
+// Component: <NuxtLink>
+Vue.component(NuxtLink.name, NuxtLink)
+Vue.component('NLink', NuxtLink)
 
 // Global shared references
 let _lastPaths = []
@@ -28,7 +30,7 @@ let router
 // Try to rehydrate SSR data from window
 const NUXT = window.__NUXT__ || {}
 
-Object.assign(Vue.config, {"silent":true,"performance":false})
+Object.assign(Vue.config, {"silent":false,"performance":true})
 
 // Setup global Vue error handler
 if (!Vue.config.$nuxt) {
@@ -68,11 +70,14 @@ if (!Vue.config.$nuxt) {
 }
 Vue.config.$nuxt.$nuxt = true
 
+const errorHandler = Vue.config.errorHandler || console.error
+
 // Create and mount App
 createApp()
   .then(mountApp)
   .catch((err) => {
-    console.error('[nuxt] Error while initializing app', err)
+    err.message = '[nuxt] Error while mounting app: ' + err.message
+    errorHandler(err)
   })
 
 function componentOption(component, key, ...args) {
@@ -138,10 +143,21 @@ async function loadAsyncComponents(to, from, next) {
 
     // Call next()
     next()
-  } catch (err) {
-    this.error(err)
-    this.$nuxt.$emit('routeChanged', to, from, error)
-    next(false)
+  } catch (error) {
+    const err = error || {}
+    const statusCode = err.statusCode || err.status || (err.response && err.response.status) || 500
+    const message = err.message || ''
+
+    // Handle chunk loading errors
+    // This may be due to a new deployment or a network problem
+    if (/^Loading chunk (\d)+ failed\./.test(message)) {
+      window.location.reload(true /* skip cache */)
+      return // prevent error page blinking for user
+    }
+
+    this.error({ statusCode, message })
+    this.$nuxt.$emit('routeChanged', to, from, err)
+    next()
   }
 }
 
@@ -176,8 +192,9 @@ function callMiddleware(Components, context, layout) {
   // If layout is undefined, only call global middleware
   if (typeof layout !== 'undefined') {
     midd = [] // Exclude global middleware if layout defined (already called before)
-    if (layout.middleware) {
-      midd = midd.concat(layout.middleware)
+    layout = sanitizeComponent(layout)
+    if (layout.options.middleware) {
+      midd = midd.concat(layout.options.middleware)
     }
     Components.forEach((Component) => {
       if (Component.options.middleware) {
@@ -405,7 +422,7 @@ async function render(to, from, next) {
 
     this.error(error)
     this.$nuxt.$emit('routeChanged', to, from, error)
-    next(false)
+    next()
   }
 }
 
@@ -468,6 +485,9 @@ function fixPrepatch(to, ___) {
       }
     })
     showNextPage.call(this, to)
+
+    // Hot reloading
+    setTimeout(() => hotReloadAPI(this), 100)
   })
 }
 
@@ -488,6 +508,104 @@ function nuxtReady(_app) {
   })
 }
 
+const noopData = () => { return {} }
+const noopFetch = () => {}
+
+// Special hot reload with asyncData(context)
+function getNuxtChildComponents($parent, $components = []) {
+  $parent.$children.forEach(($child) => {
+    if ($child.$vnode && $child.$vnode.data.nuxtChild && !$components.find(c =>(c.$options.__file === $child.$options.__file))) {
+      $components.push($child)
+    }
+    if ($child.$children && $child.$children.length) {
+      getNuxtChildComponents($child, $components)
+    }
+  })
+
+  return $components
+}
+
+function hotReloadAPI(_app) {
+  if (!module.hot) return
+
+  let $components = getNuxtChildComponents(_app.$nuxt, [])
+
+  $components.forEach(addHotReload.bind(_app))
+}
+
+function addHotReload($component, depth) {
+  if ($component.$vnode.data._hasHotReload) return
+  $component.$vnode.data._hasHotReload = true
+
+  var _forceUpdate = $component.$forceUpdate.bind($component.$parent)
+
+  $component.$vnode.context.$forceUpdate = async () => {
+    let Components = getMatchedComponents(router.currentRoute)
+    let Component = Components[depth]
+    if (!Component) return _forceUpdate()
+    if (typeof Component === 'object' && !Component.options) {
+      // Updated via vue-router resolveAsyncComponents()
+      Component = Vue.extend(Component)
+      Component._Ctor = Component
+    }
+    this.error()
+    let promises = []
+    const next = function (path) {
+      this.$loading.finish && this.$loading.finish()
+      router.push(path)
+    }
+    await setContext(app, {
+      route: router.currentRoute,
+      isHMR: true,
+      next: next.bind(this)
+    })
+    const context = app.context
+
+    if (this.$loading.start && !this.$loading.manual) this.$loading.start()
+
+    callMiddleware.call(this, Components, context)
+    .then(() => {
+      // If layout changed
+      if (depth !== 0) return Promise.resolve()
+      let layout = Component.options.layout || 'default'
+      if (typeof layout === 'function') {
+        layout = layout(context)
+      }
+      if (this.layoutName === layout) return Promise.resolve()
+      let promise = this.loadLayout(layout)
+      promise.then(() => {
+        this.setLayout(layout)
+        Vue.nextTick(() => hotReloadAPI(this))
+      })
+      return promise
+    })
+    .then(() => {
+      return callMiddleware.call(this, Components, context, this.layout)
+    })
+    .then(() => {
+      // Call asyncData(context)
+      let pAsyncData = promisify(Component.options.asyncData || noopData, context)
+      pAsyncData.then((asyncDataResult) => {
+        applyAsyncData(Component, asyncDataResult)
+        this.$loading.increase && this.$loading.increase(30)
+      })
+      promises.push(pAsyncData)
+      // Call fetch()
+      Component.options.fetch = Component.options.fetch || noopFetch
+      let pFetch = Component.options.fetch(context)
+      if (!pFetch || (!(pFetch instanceof Promise) && (typeof pFetch.then !== 'function'))) { pFetch = Promise.resolve(pFetch) }
+      pFetch.then(() => this.$loading.increase && this.$loading.increase(30))
+      promises.push(pFetch)
+      return Promise.all(promises)
+    })
+    .then(() => {
+      this.$loading.finish && this.$loading.finish()
+      _forceUpdate()
+      setTimeout(() => hotReloadAPI(this), 100)
+    })
+  }
+}
+
 async function mountApp(__app) {
   // Set global variables
   app = __app.app
@@ -507,6 +625,9 @@ async function mountApp(__app) {
     Vue.nextTick(() => {
       // Call window.{{globals.readyCallback}} callbacks
       nuxtReady(_app)
+
+      // Enable hot reloading
+      hotReloadAPI(_app)
     })
   }
 
@@ -547,7 +668,7 @@ async function mountApp(__app) {
     // Push the path and then mount app
     router.push(path, () => mount(), (err) => {
       if (!err) return mount()
-      console.error(err)
+      errorHandler(err)
     })
   })
 }

+ 5 - 2
.nuxt/components/no-ssr.js

@@ -2,5 +2,8 @@
 ** From https://github.com/egoist/vue-no-ssr
 ** With the authorization of @egoist
 */
-import NoSSR from 'vue-no-ssr'
-export default NoSSR
+import NoSsr from 'vue-no-ssr'
+export default {
+  ...NoSsr,
+  name: 'NoSsr'
+}

+ 6 - 2
.nuxt/components/nuxt-child.js

@@ -1,13 +1,17 @@
 
 export default {
-  name: 'nuxt-child',
+  name: 'NuxtChild',
   functional: true,
   props: {
     nuxtChildKey: {
       type: String,
       default: ''
     },
-    keepAlive: Boolean
+    keepAlive: Boolean,
+    keepAliveProps: {
+      type: Object,
+      default: undefined
+    }
   },
   render(h, { parent, data, props }) {
     data.nuxtChild = true

+ 7 - 3
.nuxt/components/nuxt-error.vue

@@ -1,13 +1,17 @@
 <template>
   <div class="__nuxt-error-page">
     <div class="error">
-      <svg xmlns="http://www.w3.org/2000/svg" width="90" height="90" fill="#DBE1EC" viewBox="0 0 48 48"><path d="M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z" /></svg>
+      <svg xmlns="http://www.w3.org/2000/svg" width="90" height="90" fill="#DBE1EC" viewBox="0 0 48 48">
+        <path d="M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z" />
+      </svg>
 
       <div class="title">{{ message }}</div>
       <p v-if="statusCode === 404" class="description">
-        <nuxt-link class="error-link" to="/">Back to the home page</nuxt-link>
+        <NuxtLink class="error-link" to="/">Back to the home page</NuxtLink>
       </p>
 
+      <p class="description" v-else>An error occurred while rendering the page. Check developer tools console for details.</p>
+
       <div class="logo">
         <a href="https://nuxtjs.org" target="_blank" rel="noopener">Nuxt.js</a>
       </div>
@@ -17,7 +21,7 @@
 
 <script>
 export default {
-  name: 'nuxt-error',
+  name: 'NuxtError',
   props: {
     error: {
       type: Object,

+ 0 - 8
.nuxt/components/nuxt-link.js

@@ -1,8 +0,0 @@
-
-export default {
-  name: 'nuxt-link',
-  functional: true,
-  render(h, { data, children }) {
-    return h('router-link', data, children)
-  }
-}

+ 1 - 1
.nuxt/components/nuxt-loading.vue

@@ -1,6 +1,6 @@
 <script>
 export default {
-  name: 'nuxt-loading',
+  name: 'NuxtLoading',
   data() {
     return {
       percent: 0,

+ 34 - 24
.nuxt/components/nuxt.js

@@ -1,4 +1,3 @@
-
 import Vue from 'vue'
 import { compile } from '../utils'
 
@@ -7,28 +6,25 @@ import NuxtError from './nuxt-error.vue'
 import NuxtChild from './nuxt-child'
 
 export default {
-  name: 'nuxt',
-  props: {
-    nuxtChildKey: String,
-    keepAlive: Boolean
+  name: 'Nuxt',
+  components: {
+    NuxtChild,
+    NuxtError
   },
-  render(h) {
-    // If there is some error
-    if (this.nuxt.err) {
-      return h('nuxt-error', {
-        props: {
-          error: this.nuxt.err
-        }
-      })
+  props: {
+    nuxtChildKey: {
+      type: String,
+      default: undefined
+    },
+    keepAlive: Boolean,
+    keepAliveProps: {
+      type: Object,
+      default: undefined
+    },
+    name: {
+      type: String,
+      default: 'default'
     }
-    // Directly return nuxt child
-    return h('nuxt-child', {
-      key: this.routerViewKey,
-      props: this.$props
-    })
-  },
-  beforeCreate() {
-    Vue.util.defineReactive(this, 'nuxt', this.$root.$options.nuxt)
   },
   computed: {
     routerViewKey() {
@@ -43,8 +39,22 @@ export default {
       return this.$route.path
     }
   },
-  components: {
-    NuxtChild,
-    NuxtError
+  beforeCreate() {
+    Vue.util.defineReactive(this, 'nuxt', this.$root.$options.nuxt)
+  },
+  render(h) {
+    // If there is some error
+    if (this.nuxt.err) {
+      return h('NuxtError', {
+        props: {
+          error: this.nuxt.err
+        }
+      })
+    }
+    // Directly return nuxt child
+    return h('NuxtChild', {
+      key: this.routerViewKey,
+      props: this.$props
+    })
   }
 }

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/2938992cd841480586e0.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/3a8d100307a0351f046d.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/3ab6691556e3c7d1111e.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/4e0fd24389bfb3a78712.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 2
.nuxt/dist/client/5c08bb7c7c0580b90878.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/6c0fcbc8fbc391176d59.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/7b649bef64a7a914afde.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/83c0a7ec9a104af9f5c1.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/879a30199b6676446fde.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/8ca084c182acc8dabb9e.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/8e5691c610ce146c270b.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/8fd0fec097c9ca571ff5.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/90c752196a064fd23d2e.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/9dc1743740a2a953605d.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/9f9167f8e835b8579427.js


+ 0 - 65
.nuxt/dist/client/LICENSES

@@ -1,65 +0,0 @@
-/*!
- * Vue.js v2.5.22
- * (c) 2014-2019 Evan You
- * Released under the MIT License.
- */
-
-/*!
-  * vue-router v3.0.2
-  * (c) 2018 Evan You
-  * @license MIT
-  */
-
-/**
- * vue-meta v1.5.8
- * (c) 2018 Declan de Wet & Sébastien Chopin (@Atinux)
- * @license MIT
- */
-
-/*
-	object-assign
-	(c) Sindre Sorhus
-	@license MIT
-	*/
-
-/*!
- * Determine if an object is a Buffer
- *
- * @author   Feross Aboukhadijeh <https://feross.org>
- * @license  MIT
- */
-
-/*!
- * vue-no-ssr v1.1.1
- * (c) 2018-present egoist <0x142857@gmail.com>
- * Released under the MIT License.
- */
-
-/**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @param {?boolean} capture Check if the capture phase is supported.
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */
-
-/*!
- * Quill Editor v1.3.6
- * https://quilljs.com/
- * Copyright (c) 2014, Jason Chen
- * Copyright (c) 2013, salesforce.com
- */
-
-/*!
- * The buffer module from node.js, for the browser.
- *
- * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
- * @license  MIT
- */

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/b408bcd9156e1251b7ef.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 2
.nuxt/dist/client/c3c421f45923e05d13fe.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/d00bc0c00b1f416fab3d.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/d23c12f3a53dfa40b56d.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/d37da47a06beff741e56.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
.nuxt/dist/client/e985572656d6362b5ef2.js


BIN
.nuxt/dist/client/fonts/2fad952.woff


BIN
.nuxt/dist/client/fonts/6f0a763.ttf


+ 0 - 9
.nuxt/dist/server/index.spa.html

@@ -1,9 +0,0 @@
-<!doctype html>
-<html {{ html_attrs }}>
-  <head>
-    {{ HEAD }}
-  </head>
-  <body {{ body_attrs }}>
-    {{ APP }}
-  <script type="text/javascript" src="/_nuxt/8e5691c610ce146c270b.js"></script><script type="text/javascript" src="/_nuxt/c3c421f45923e05d13fe.js"></script><script type="text/javascript" src="/_nuxt/5c08bb7c7c0580b90878.js"></script><script type="text/javascript" src="/_nuxt/6c0fcbc8fbc391176d59.js"></script></body>
-</html>

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1354
.nuxt/dist/server/vue-ssr-client-manifest.json


+ 12 - 13
.nuxt/index.js

@@ -1,9 +1,8 @@
 import Vue from 'vue'
 import Meta from 'vue-meta'
 import { createRouter } from './router.js'
-import NoSSR from './components/no-ssr.js'
+import NoSsr from './components/no-ssr.js'
 import NuxtChild from './components/nuxt-child.js'
-import NuxtLink from './components/nuxt-link.js'
 import NuxtError from './components/nuxt-error.vue'
 import Nuxt from './components/nuxt.js'
 import App from './App.js'
@@ -11,21 +10,21 @@ import { setContext, getLocation, getRouteData, normalizeError } from './utils'
 
 /* Plugins */
 
-import nuxt_plugin_axios_0c5c16d5 from 'nuxt_plugin_axios_0c5c16d5' // Source: ./axios.js
-import nuxt_plugin_elementui_d905880e from 'nuxt_plugin_elementui_d905880e' // Source: ../plugins/element-ui
-import nuxt_plugin_http_926ab708 from 'nuxt_plugin_http_926ab708' // Source: ../plugins/http
-import nuxt_plugin_quill_23090991 from 'nuxt_plugin_quill_23090991' // Source: ../plugins/quill
+import nuxt_plugin_axios_4f506483 from 'nuxt_plugin_axios_4f506483' // Source: ./axios.js (mode: 'all')
+import nuxt_plugin_elementui_d905880e from 'nuxt_plugin_elementui_d905880e' // Source: ../plugins/element-ui (mode: 'all')
+import nuxt_plugin_http_926ab708 from 'nuxt_plugin_http_926ab708' // Source: ../plugins/http (mode: 'all')
+import nuxt_plugin_quill_23090991 from 'nuxt_plugin_quill_23090991' // Source: ../plugins/quill (mode: 'all')
 
-// Component: <no-ssr>
-Vue.component(NoSSR.name, NoSSR)
+// Component: <NoSsr>
+Vue.component(NoSsr.name, NoSsr)
 
-// Component: <nuxt-child>
+// Component: <NuxtChild>
 Vue.component(NuxtChild.name, NuxtChild)
+Vue.component('NChild', NuxtChild)
 
-// Component: <nuxt-link>
-Vue.component(NuxtLink.name, NuxtLink)
+// Component NuxtLink is imported in server.js or client.js
 
-// Component: <nuxt>`
+// Component: <Nuxt>`
 Vue.component(Nuxt.name, Nuxt)
 
 // vue-meta configuration
@@ -132,7 +131,7 @@ async function createApp(ssrContext) {
 
   // Plugin execution
 
-  if (typeof nuxt_plugin_axios_0c5c16d5 === 'function') await nuxt_plugin_axios_0c5c16d5(app.context, inject)
+  if (typeof nuxt_plugin_axios_4f506483 === 'function') await nuxt_plugin_axios_4f506483(app.context, inject)
   if (typeof nuxt_plugin_elementui_d905880e === 'function') await nuxt_plugin_elementui_d905880e(app.context, inject)
   if (typeof nuxt_plugin_http_926ab708 === 'function') await nuxt_plugin_http_926ab708(app.context, inject)
   if (typeof nuxt_plugin_quill_23090991 === 'function') await nuxt_plugin_quill_23090991(app.context, inject)

+ 2 - 0
.nuxt/loading.html

@@ -103,3 +103,5 @@ window.addEventListener('error', function () {
 </script>
 
 <div id="nuxt-loading" aria-live="polite" role="status"><div>Loading...</div></div>
+
+<!-- https://projects.lukehaas.me/css-loaders -->

+ 2 - 2
.nuxt/middleware.js

@@ -1,5 +1,5 @@
 
-const files = require.context('@/middleware', false, /^\.\/(?!-)[^.]+\.(js|mjs)$/)
+const files = require.context('@/middleware', false, /^\.\/(?!-)[^.]+\.(js|mjs|ts)$/)
 const filenames = files.keys()
 
 function getModule(filename) {
@@ -10,7 +10,7 @@ const middleware = {}
 
 // Generate the middleware
 for (const filename of filenames) {
-  const name = filename.replace(/^\.\//, '').replace(/\.(js|mjs)$/, '')
+  const name = filename.replace(/^\.\//, '').replace(/\.(js|mjs|ts)$/, '')
   middleware[name] = getModule(filename)
 }
 

+ 73 - 41
.nuxt/router.js

@@ -2,36 +2,56 @@ import Vue from 'vue'
 import Router from 'vue-router'
 import { interopDefault } from './utils'
 
-const _5f556d43 = () => interopDefault(import('../pages/login/index.vue' /* webpackChunkName: "pages/login/index" */))
-const _3e02d096 = () => interopDefault(import('../pages/main/index.vue' /* webpackChunkName: "pages/main/index" */))
-const _1bf47b10 = () => interopDefault(import('../pages/main/index/index.vue' /* webpackChunkName: "pages/main/index/index" */))
-const _50052944 = () => interopDefault(import('../pages/main/index/404.vue' /* webpackChunkName: "pages/main/index/404" */))
-const _09cc8caa = () => interopDefault(import('../pages/main/index/check_edit.vue' /* webpackChunkName: "pages/main/index/check_edit" */))
-const _1bc5339c = () => interopDefault(import('../pages/main/index/check_pro.vue' /* webpackChunkName: "pages/main/index/check_pro" */))
-const _817ecb10 = () => interopDefault(import('../pages/main/index/cloud_balance.vue' /* webpackChunkName: "pages/main/index/cloud_balance" */))
-const _2e5d8934 = () => interopDefault(import('../pages/main/index/cloud_developer.vue' /* webpackChunkName: "pages/main/index/cloud_developer" */))
-const _30eade4e = () => interopDefault(import('../pages/main/index/cloud_job.vue' /* webpackChunkName: "pages/main/index/cloud_job" */))
-const _b3b60d9e = () => interopDefault(import('../pages/main/index/dev_show.vue' /* webpackChunkName: "pages/main/index/dev_show" */))
-const _b296c902 = () => interopDefault(import('../pages/main/index/gongmall.vue' /* webpackChunkName: "pages/main/index/gongmall" */))
-const _b110379e = () => interopDefault(import('../pages/main/index/vip_manager.vue' /* webpackChunkName: "pages/main/index/vip_manager" */))
-const _3c52635c = () => interopDefault(import('../pages/main/index/vip_order.vue' /* webpackChunkName: "pages/main/index/vip_order" */))
-const _c4504d58 = () => interopDefault(import('../pages/main/index/vip_setting.vue' /* webpackChunkName: "pages/main/index/vip_setting" */))
-const _1bb7fb75 = () => interopDefault(import('../pages/main/index/wage_details.vue' /* webpackChunkName: "pages/main/index/wage_details" */))
-const _c0df6474 = () => interopDefault(import('../pages/main/index/wage_settlement.vue' /* webpackChunkName: "pages/main/index/wage_settlement" */))
-const _794553a9 = () => interopDefault(import('../pages/index.vue' /* webpackChunkName: "pages/index" */))
+const _11260056 = () => interopDefault(import('../pages/login/index.vue' /* webpackChunkName: "pages/login/index" */))
+const _51416ae3 = () => interopDefault(import('../pages/main/index.vue' /* webpackChunkName: "pages/main/index" */))
+const _260609b4 = () => interopDefault(import('../pages/main/index/index.vue' /* webpackChunkName: "pages/main/index/index" */))
+const _11b210e8 = () => interopDefault(import('../pages/main/index/404.vue' /* webpackChunkName: "pages/main/index/404" */))
+const _94298fee = () => interopDefault(import('../pages/main/index/cert_check.vue' /* webpackChunkName: "pages/main/index/cert_check" */))
+const _f4e213ce = () => interopDefault(import('../pages/main/index/cert_edit.vue' /* webpackChunkName: "pages/main/index/cert_edit" */))
+const _a6c09d24 = () => interopDefault(import('../pages/main/index/cert_pro.vue' /* webpackChunkName: "pages/main/index/cert_pro" */))
+const _dbf975b4 = () => interopDefault(import('../pages/main/index/cloud_balance.vue' /* webpackChunkName: "pages/main/index/cloud_balance" */))
+const _1593f294 = () => interopDefault(import('../pages/main/index/cloud_developer.vue' /* webpackChunkName: "pages/main/index/cloud_developer" */))
+const _a48c7af2 = () => interopDefault(import('../pages/main/index/cloud_job.vue' /* webpackChunkName: "pages/main/index/cloud_job" */))
+const _707e16b2 = () => interopDefault(import('../pages/main/index/dev_check.vue' /* webpackChunkName: "pages/main/index/dev_check" */))
+const _23273aae = () => interopDefault(import('../pages/main/index/dev_check_detail.vue' /* webpackChunkName: "pages/main/index/dev_check_detail" */))
+const _64dc4c7a = () => interopDefault(import('../pages/main/index/dev_show.vue' /* webpackChunkName: "pages/main/index/dev_show" */))
+const _63bd07de = () => interopDefault(import('../pages/main/index/gongmall.vue' /* webpackChunkName: "pages/main/index/gongmall" */))
+const _c2bd3b42 = () => interopDefault(import('../pages/main/index/vip_manager.vue' /* webpackChunkName: "pages/main/index/vip_manager" */))
+const _aff40000 = () => interopDefault(import('../pages/main/index/vip_order.vue' /* webpackChunkName: "pages/main/index/vip_order" */))
+const _d5fd50fc = () => interopDefault(import('../pages/main/index/vip_setting.vue' /* webpackChunkName: "pages/main/index/vip_setting" */))
+const _09be4307 = () => interopDefault(import('../pages/main/index/wage_details.vue' /* webpackChunkName: "pages/main/index/wage_details" */))
+const _6759f618 = () => interopDefault(import('../pages/main/index/wage_settlement.vue' /* webpackChunkName: "pages/main/index/wage_settlement" */))
+const _d64a888a = () => interopDefault(import('../pages/index.vue' /* webpackChunkName: "pages/index" */))
 
 Vue.use(Router)
 
 if (process.client) {
-  window.history.scrollRestoration = 'manual'
+  if ('scrollRestoration' in window.history) {
+    window.history.scrollRestoration = 'manual'
+
+    // reset scrollRestoration to auto when leaving page, allowing page reload
+    // and back-navigation from other pages to use the browser to restore the
+    // scrolling position.
+    window.addEventListener('beforeunload', () => {
+      window.history.scrollRestoration = 'auto'
+    })
+
+    // Setting scrollRestoration to manual again when returning to this page.
+    window.addEventListener('load', () => {
+      window.history.scrollRestoration = 'manual'
+    })
+  }
 }
 const scrollBehavior = function (to, from, savedPosition) {
   // if the returned position is falsy or an empty object,
   // will retain current scroll position.
   let position = false
 
-  // if no children detected
-  if (to.matched.length < 2) {
+  // if no children detected and scrollToTop is not explicitly disabled
+  if (
+    to.matched.length < 2 &&
+    to.matched.every(r => r.components.default.options.scrollToTop !== false)
+  ) {
     // scroll to the top of the page
     position = { x: 0, y: 0 }
   } else if (to.matched.some(r => r.components.default.options.scrollToTop)) {
@@ -79,71 +99,83 @@ export function createRouter() {
 
     routes: [{
       path: "/login",
-      component: _5f556d43,
+      component: _11260056,
       name: "login"
     }, {
       path: "/main",
-      component: _3e02d096,
+      component: _51416ae3,
       children: [{
         path: "",
-        component: _1bf47b10,
+        component: _260609b4,
         name: "main-index"
       }, {
         path: "404",
-        component: _50052944,
+        component: _11b210e8,
         name: "main-index-404"
       }, {
-        path: "check_edit",
-        component: _09cc8caa,
-        name: "main-index-check_edit"
+        path: "cert_check",
+        component: _94298fee,
+        name: "main-index-cert_check"
+      }, {
+        path: "cert_edit",
+        component: _f4e213ce,
+        name: "main-index-cert_edit"
       }, {
-        path: "check_pro",
-        component: _1bc5339c,
-        name: "main-index-check_pro"
+        path: "cert_pro",
+        component: _a6c09d24,
+        name: "main-index-cert_pro"
       }, {
         path: "cloud_balance",
-        component: _817ecb10,
+        component: _dbf975b4,
         name: "main-index-cloud_balance"
       }, {
         path: "cloud_developer",
-        component: _2e5d8934,
+        component: _1593f294,
         name: "main-index-cloud_developer"
       }, {
         path: "cloud_job",
-        component: _30eade4e,
+        component: _a48c7af2,
         name: "main-index-cloud_job"
       }, {
+        path: "dev_check",
+        component: _707e16b2,
+        name: "main-index-dev_check"
+      }, {
+        path: "dev_check_detail",
+        component: _23273aae,
+        name: "main-index-dev_check_detail"
+      }, {
         path: "dev_show",
-        component: _b3b60d9e,
+        component: _64dc4c7a,
         name: "main-index-dev_show"
       }, {
         path: "gongmall",
-        component: _b296c902,
+        component: _63bd07de,
         name: "main-index-gongmall"
       }, {
         path: "vip_manager",
-        component: _b110379e,
+        component: _c2bd3b42,
         name: "main-index-vip_manager"
       }, {
         path: "vip_order",
-        component: _3c52635c,
+        component: _aff40000,
         name: "main-index-vip_order"
       }, {
         path: "vip_setting",
-        component: _c4504d58,
+        component: _d5fd50fc,
         name: "main-index-vip_setting"
       }, {
         path: "wage_details",
-        component: _1bb7fb75,
+        component: _09be4307,
         name: "main-index-wage_details"
       }, {
         path: "wage_settlement",
-        component: _c0df6474,
+        component: _6759f618,
         name: "main-index-wage_settlement"
       }]
     }, {
       path: "/",
-      component: _794553a9,
+      component: _d64a888a,
       name: "index"
     }],
 

+ 14 - 7
.nuxt/server.js

@@ -1,15 +1,17 @@
 import { stringify } from 'querystring'
 import Vue from 'vue'
-import omit from 'lodash/omit'
-import middleware from './middleware'
-import { applyAsyncData, sanitizeComponent, getMatchedComponents, getContext, middlewareSeries, promisify, urlJoin } from './utils'
-import { createApp, NuxtError } from './index'
+import middleware from './middleware.js'
+import { applyAsyncData, getMatchedComponents, middlewareSeries, promisify, urlJoin, sanitizeComponent } from './utils.js'
+import { createApp, NuxtError } from './index.js'
+import NuxtLink from './components/nuxt-link.server.js' // should be included after ./index.js
+
+// Component: <NuxtLink>
+Vue.component(NuxtLink.name, NuxtLink)
+Vue.component('NLink', NuxtLink)
 
 const debug = require('debug')('nuxt:render')
 debug.color = 4 // force blue color
 
-const isDev = false
-
 const noopApp = () => new Vue({ render: h => h('div') })
 
 const createNext = ssrContext => (opts) => {
@@ -76,6 +78,8 @@ export default async (ssrContext) => {
     return renderErrorPage()
   }
 
+  const s = Date.now()
+
   // Components are already resolved by setContext -> getRouteData (app/utils.js)
   const Components = getMatchedComponents(router.match(ssrContext.url))
 
@@ -109,7 +113,8 @@ export default async (ssrContext) => {
   ** Call middleware (layout + pages)
   */
   midd = []
-  if (layout.middleware) midd = midd.concat(layout.middleware)
+  layout = sanitizeComponent(layout)
+  if (layout.options.middleware) midd = midd.concat(layout.options.middleware)
   Components.forEach((Component) => {
     if (Component.options.middleware) {
       midd = midd.concat(Component.options.middleware)
@@ -190,6 +195,8 @@ export default async (ssrContext) => {
     return Promise.all(promises)
   }))
 
+  if (asyncDatas.length) debug('Data fetching ' + ssrContext.url + ': ' + (Date.now() - s) + 'ms')
+
   // datas are the first row of each
   ssrContext.nuxt.data = asyncDatas.map(r => r[0] || {})
 

+ 19 - 9
.nuxt/utils.js

@@ -1,7 +1,5 @@
 import Vue from 'vue'
 
-const noopData = () => ({})
-
 // window.{{globals.loadedCallback}} hook
 // Useful for jsdom testing or plugins (https://github.com/tmpvar/jsdom#dealing-with-asynchronous-script-loading)
 if (process.client) {
@@ -24,12 +22,17 @@ export function interopDefault(promise) {
 }
 
 export function applyAsyncData(Component, asyncData) {
-  const ComponentData = Component.options.data || noopData
-  // Prevent calling this method for each request on SSR context
-  if (!asyncData && Component.options.hasAsyncData) {
+  if (
+    // For SSR, we once all this function without second param to just apply asyncData
+    // Prevent doing this for each SSR request
+    !asyncData && Component.options.__hasNuxtData
+  ) {
     return
   }
-  Component.options.hasAsyncData = true
+
+  const ComponentData = Component.options._originDataFn || Component.options.data || function () { return {} }
+  Component.options._originDataFn = ComponentData
+
   Component.options.data = function () {
     const data = ComponentData.call(this)
     if (this.$ssrContext) {
@@ -37,6 +40,9 @@ export function applyAsyncData(Component, asyncData) {
     }
     return { ...data, ...asyncData }
   }
+
+  Component.options.__hasNuxtData = true
+
   if (Component._Ctor && Component._Ctor.options) {
     Component._Ctor.options.data = Component.options.data
   }
@@ -111,8 +117,8 @@ export async function getRouteData(route) {
   // Send back a copy of route with meta based on Component definition
   return {
     ...route,
-    meta: getMatchedComponents(route).map((Component) => {
-      return Component.options.meta || {}
+    meta: getMatchedComponents(route).map((Component, index) => {
+      return { ...Component.options.meta, ...(route.matched[index] || {}).meta }
     })
   }
 }
@@ -122,7 +128,7 @@ export async function setContext(app, context) {
   if (!app.context) {
     app.context = {
       isStatic: process.static,
-      isDev: false,
+      isDev: true,
       isHMR: false,
       app,
 
@@ -209,6 +215,9 @@ export function middlewareSeries(promises, appContext) {
 export function promisify(fn, context) {
   let promise
   if (fn.length === 2) {
+      console.warn('Callback-based asyncData, fetch or middleware calls are deprecated. ' +
+        'Please switch to promises or async/await syntax')
+
     // fn(context, callback)
     promise = new Promise((resolve) => {
       fn(context, function (err, data) {
@@ -280,6 +289,7 @@ export function normalizeError(err) {
     message = err.message || err
   }
   return {
+    ...err,
     message: message,
     statusCode: (err.statusCode || err.status || (err.response && err.response.status) || 500)
   }

+ 1 - 1
.nuxt/views/app.template.html

@@ -1,6 +1,6 @@
 <!DOCTYPE html>
 <html {{ HTML_ATTRS }}>
-  <head>
+  <head {{ HEAD_ATTRS }}>
     {{ HEAD }}
   </head>
   <body {{ BODY_ATTRS }}>

+ 1 - 1
.nuxt/views/error.html

@@ -13,7 +13,7 @@
     <div class="error">
         <svg xmlns="http://www.w3.org/2000/svg" width="90" height="90" fill="#DBE1EC" viewBox="0 0 48 48"><path d="M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"/></svg>
         <div class="title">Server error</div>
-        <div class="description">An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.</div>
+        <div class="description">{{ message }}</div>
     </div>
     <div class="logo">
       <a href="https://nuxtjs.org" target="_blank" rel="noopener">Nuxt.js</a>

+ 18 - 4
pages/main/index/cert_check.vue

@@ -11,8 +11,16 @@
         </el-table-column>
       </el-table>
     </div>
-    <el-pagination @current-change="changePagination" :current-page.sync="currentPage" :page-size="10" layout="total, prev, pager, next"
-      :total="totalCount"></el-pagination>
+    <el-pagination
+      background
+      @current-change="changePagination"
+      @size-change="changePageSize"
+      :current-page.sync="currentPage"
+      :page-sizes="[10, 20, 30, 40]"
+      :page-size="20"
+      layout="total, sizes, prev, pager, next, jumper"
+      :total="totalCount">
+    </el-pagination>
   </section>
 </template>
 
@@ -77,6 +85,7 @@ export default {
       // 数据总条目
       totalCount: 0,
       currentPage: 1,
+      currentPageSize: 20,
       // 列表头显示内容
       tableHeaders,
       // 列表头字段
@@ -115,13 +124,18 @@ export default {
     },
     // 页码变动
     changePagination(page) {
+      this.currentPage = page
+      this.getTableData()
+    },
+    changePageSize(pageSize) {
+      this.currentPageSize = pageSize
       this.getTableData()
     },
     // 获取列表数据
     async getTableData(status = 0) {
       this.tableData = []
-      const page = this.currentPage
-        , res = await this.$get(apis.dataList, { page })
+      let body = { page: this.currentPage,page_size:this.currentPageSize}
+      const res = await this.$post('/api/admin/cert/getUserList', body)
         , data = res.data
         , list = data.list
       env = data.current_env

+ 4 - 4
pages/main/index/cert_edit.vue

@@ -278,10 +278,10 @@ export default {
   height: 600px;
   padding: 0 0 100px;
 }
-.img-uploader {
-  /* width: 270px;
-  height: 190px; */
-}
+/* .img-uploader {
+  width: 270px;
+  height: 190px;
+} */
 .img-uploader .el-upload {
   border: 1px dashed #d9d9d9;
   border-radius: 6px;

+ 12 - 3
pages/main/index/cert_pro.vue

@@ -34,10 +34,13 @@
       </el-table>
     </div>
     <el-pagination
+      background
       @current-change="getTableData"
+      @size-change="changePageSize"
       :current-page.sync="currentPage"
-      :page-size="10"
-      layout="total, prev, pager, next"
+      :page-sizes="[10, 20, 30, 40]"
+      :page-size="20"
+      layout="total, sizes, prev, pager, next, jumper"
       :total="totalCount"
     ></el-pagination>
   </div>
@@ -75,6 +78,7 @@ export default {
       // 数据总条目
       totalCount: 0,
       currentPage: 1,
+      currentPageSize: 20,
       // 列表头显示内容
       tableHeaders,
       // 列表头字段
@@ -116,10 +120,15 @@ export default {
         ctrl: 1
       }))
     },
+    changePageSize(pageSize) {
+      this.currentPageSize = pageSize
+      this.getTableData()
+    },
     // 获取列表数据
     async getTableData(page = 1) {
       this.tableData = []
-      const res = await this.$post("/api/admin/cert/getList", { page })
+      let body = { page: this.currentPage,page_size:this.currentPageSize}
+      const res = await this.$post("/api/admin/cert/getList", body)
       // console.log(res)
       const data = res.data
       env = data.current_env

+ 13 - 6
pages/main/index/cloud_balance.vue

@@ -75,10 +75,13 @@
       </el-table>
     </div>
     <el-pagination
+      background
       @current-change="getTableData"
+      @size-change="changePageSize"
       :current-page.sync="currentPage"
-      :page-size="10"
-      layout="total, prev, pager, next"
+      :page-sizes="[10, 20, 30, 40]"
+      :page-size="20"
+      layout="total, sizes, prev, pager, next, jumper"
       :total="totalCount"
     ></el-pagination>
   </div>
@@ -168,6 +171,7 @@ export default {
       // 数据总条目
       totalCount: 0,
       currentPage: 1,
+      currentPageSize: 20,
       // 列表宽度
       tableWidths,
       // 列表头显示内容
@@ -268,11 +272,15 @@ export default {
       this.currentPage = 1
       this.getTableData()
     },
+    changePageSize(pageSize) {
+      this.currentPageSize = pageSize
+      this.getTableData()
+    },
     // 获取列表数据
     async getTableData() {
       this.tableData = []
       let url = '/api/admin/job/get_all_periods'
-      let body = { page: this.currentPage }
+      let body = { page: this.currentPage,page_size:this.currentPageSize}
       if(this.status) body.j_status = this.status
       if(this.period) body.p_status = this.period
       if(this.checkUser) body.chk_user = this.checkUser
@@ -308,9 +316,8 @@ export default {
   display: flex;
   justify-content: space-between;
 }
-.selector-box-left {
-
-}
+/* .selector-box-left {
+} */
 .table {
   margin-top: 10px;
   height: calc(100% - 160px);

+ 16 - 3
pages/main/index/dev_check.vue

@@ -39,10 +39,13 @@
       <span v-else>暂无数据</span>
     </section>
     <el-pagination
+      background
       @current-change="changePagination"
+      @size-change="changePageSize"
       :current-page.sync="currentPage"
-      :page-size="10"
-      layout="total, prev, pager, next"
+      :page-sizes="[10, 20, 30, 40]"
+      :page-size="20"
+      layout="total, sizes, prev, pager, next, jumper"
       :total="totalCount"
     ></el-pagination>
   </section>
@@ -81,6 +84,7 @@ export default {
       // 数据总条目
       totalCount: 0,
       currentPage: 1,
+      currentPageSize: 20,
       certID: '',
       // 列表头显示内容
       tableHeaders,
@@ -108,6 +112,9 @@ export default {
         query: { page, cert_id: this.certID }
       })
     },
+    changePageSize(pageSize) {
+      this.currentPageSize = pageSize
+    },
     // 筛选框变动
     changeSelect(id) {
       this.certID = id
@@ -134,6 +141,11 @@ export default {
     handleRouteParams() {
       this.currentPage = Number(this.$route.query.page)
       this.certID = this.$route.query.cert_id
+      for (var i=0; i< this.statuses.length; i++){
+        if (this.certID == this.statuses[i].id) {
+          this.selected = this.statuses[i].name
+        }
+      }
       this.getTableData()
     },
     clickCtrl(item, index) {
@@ -169,8 +181,9 @@ export default {
     async getTableData() {
       this.tableData = []
       let page = this.currentPage
+      let page_size = this.currentPageSize
       let cert_id = Number(this.certID)
-      let body = { page, cert_id }
+      let body = { page, page_size, cert_id }
       let res = await this.$post("/api/admin/audit/getList", body)
       // console.log(body)
       let data = res.data