guhongwei 4 سال پیش
والد
کامیت
e798a717b2
2فایلهای تغییر یافته به همراه16 افزوده شده و 7 حذف شده
  1. 10 1
      dict/index.js
  2. 6 6
      src/store/open_info.js

+ 10 - 1
dict/index.js

@@ -1,5 +1,14 @@
 export const newsColumn = ['通知通告', '政务动态', '科技新闻', '媒体聚焦'];
 export const newsColumn = ['通知通告', '政务动态', '科技新闻', '媒体聚焦'];
-export const openColumn = ['科技项目评审', '高企政策服务', '创新券服务', '科技成果评价', '专家智库', '企业管理', '机构管理'];
+export const openColumn = [
+  { label: '科技项目评审', value: 'one' },
+  { label: '高企政策服务', value: 'two' },
+  { label: '创新券服务', value: 'thr' },
+  { label: '科技成果评价', value: 'four' },
+  { label: '专家智库', value: 'five' },
+  { label: '企业管理', value: 'six' },
+  { label: '机构管理', value: 'seven' },
+];
+
 export const productType = [
 export const productType = [
   { label: '科技需求', value: '0' },
   { label: '科技需求', value: '0' },
   { label: '技术成果', value: '1' },
   { label: '技术成果', value: '1' },

+ 6 - 6
src/store/open_info.js

@@ -3,14 +3,14 @@ import Vuex from 'vuex';
 import _ from 'lodash';
 import _ from 'lodash';
 Vue.use(Vuex);
 Vue.use(Vuex);
 const api = {
 const api = {
-  open_info: `/api/m/main/open_info`,
+  openInfo: `/api/m/main/openInfo`,
 };
 };
 const state = () => ({});
 const state = () => ({});
 const mutations = {};
 const mutations = {};
 
 
 const actions = {
 const actions = {
   async query({ commit }, { skip = 0, limit, ...info } = {}) {
   async query({ commit }, { skip = 0, limit, ...info } = {}) {
-    const res = await this.$axios.$get(`${api.open_info}`, {
+    const res = await this.$axios.$get(`${api.openInfo}`, {
       skip,
       skip,
       limit,
       limit,
       ...info,
       ...info,
@@ -18,20 +18,20 @@ const actions = {
     return res;
     return res;
   },
   },
   async create({ commit }, payload) {
   async create({ commit }, payload) {
-    const res = await this.$axios.$post(`${api.open_info}`, payload);
+    const res = await this.$axios.$post(`${api.openInfo}`, payload);
     return res;
     return res;
   },
   },
   async fetch({ commit }, payload) {
   async fetch({ commit }, payload) {
-    const res = await this.$axios.$get(`${api.open_info}/${payload}`);
+    const res = await this.$axios.$get(`${api.openInfo}/${payload}`);
     return res;
     return res;
   },
   },
   async update({ commit }, { id, ...data }) {
   async update({ commit }, { id, ...data }) {
-    const res = await this.$axios.$post(`${api.open_info}/update/${id}`, data);
+    const res = await this.$axios.$post(`${api.openInfo}/update/${id}`, data);
     return res;
     return res;
   },
   },
 
 
   async delete({ commit }, payload) {
   async delete({ commit }, payload) {
-    const res = await this.$axios.$delete(`${api.open_info}/${payload}`);
+    const res = await this.$axios.$delete(`${api.openInfo}/${payload}`);
     return res;
     return res;
   },
   },
 };
 };