guhongwei %!s(int64=2) %!d(string=hai) anos
pai
achega
13053cccc4

+ 1 - 1
src/components/frame/c-table.vue

@@ -85,7 +85,7 @@
       <el-col :span="24" style="text-align: right">
         <el-pagination
           background
-          layout="sizes,total, prev, pager, next"
+          layout="total, prev, pager, next"
           :page-sizes="[10, 50, 100, 150, 200]"
           :total="total"
           :page-size="limit"

+ 2 - 2
src/components/web-frame/web-parts-one/header-1.vue

@@ -61,8 +61,8 @@ export default {
       this.$router.push({ path: '/' });
     },
     toLogin() {
-      // window.open(`${process.env.VUE_APP_HOST}/padmin`);
-      window.open(`http://47.93.34.200/padmin`);
+      window.open(`${process.env.VUE_APP_HOST}/padmin`);
+      // window.open(`http://47.93.34.200/padmin`);
     },
   },
   computed: {

+ 12 - 0
src/layout/site.js

@@ -128,6 +128,18 @@ export const menus = [
         name: '基本信息',
         path: '/app/basic',
       },
+      {
+        _id: 'menus_2_2',
+        icon: 'el-icon-user',
+        name: 'app轮播图',
+        path: '/app/banner',
+      },
+      {
+        _id: 'me3us_2_2',
+        icon: 'el-icon-user',
+        name: '热门链接',
+        path: '/app/hotlink',
+      },
     ],
   },
   {

+ 42 - 0
src/store/app/appbanner.js

@@ -0,0 +1,42 @@
+import Vue from 'vue';
+import Vuex from 'vuex';
+import _ from 'lodash';
+Vue.use(Vuex);
+const api = {
+  test: `/projectadmin/api/appbanner`,
+};
+const state = () => ({});
+const mutations = {};
+
+const actions = {
+  async query({ commit }, { skip = 0, limit, ...info } = {}) {
+    const res = await this.$axios.$get(`${api.test}`, {
+      skip,
+      limit,
+      ...info,
+    });
+    return res;
+  },
+  async fetch({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.test}/${payload}`);
+    return res;
+  },
+  async create({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.test}`, payload);
+    return res;
+  },
+  async update({ commit }, { _id, ...info } = {}) {
+    const res = await this.$axios.$post(`${api.test}/${_id}`, { ...info });
+    return res;
+  },
+  async delete({ commit }, payload) {
+    const res = await this.$axios.$delete(`${api.test}/${payload}`);
+    return res;
+  },
+};
+export default {
+  namespaced: true,
+  state,
+  mutations,
+  actions,
+};

+ 42 - 0
src/store/app/hotlink.js

@@ -0,0 +1,42 @@
+import Vue from 'vue';
+import Vuex from 'vuex';
+import _ from 'lodash';
+Vue.use(Vuex);
+const api = {
+  test: `/projectadmin/api/hotlink`,
+};
+const state = () => ({});
+const mutations = {};
+
+const actions = {
+  async query({ commit }, { skip = 0, limit, ...info } = {}) {
+    const res = await this.$axios.$get(`${api.test}`, {
+      skip,
+      limit,
+      ...info,
+    });
+    return res;
+  },
+  async fetch({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.test}/${payload}`);
+    return res;
+  },
+  async create({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.test}`, payload);
+    return res;
+  },
+  async update({ commit }, { _id, ...info } = {}) {
+    const res = await this.$axios.$post(`${api.test}/${_id}`, { ...info });
+    return res;
+  },
+  async delete({ commit }, payload) {
+    const res = await this.$axios.$delete(`${api.test}/${payload}`);
+    return res;
+  },
+};
+export default {
+  namespaced: true,
+  state,
+  mutations,
+  actions,
+};