wxy 4 lat temu
rodzic
commit
c01f9f21cb

+ 0 - 5
src/components/common/Sidebar.vue

@@ -51,11 +51,6 @@ export default {
           index: 'homeIndex',
           title: '系统首页',
         },
-        // {
-        //   icon: 'el-icon-s-home',
-        //   index: 'company',
-        //   title: '企业信息',
-        // },
         {
           icon: 'el-icon-s-home',
           index: 'user',

+ 0 - 54
src/store/company.js

@@ -1,54 +0,0 @@
-//第一步
-import Vue from 'vue';
-import Vuex from 'vuex';
-import _ from 'lodash';
-Vue.use(Vuex);
-const api = {
-  //接口地址
-  company: `/api/servicetest/company`,
-};
-const state = () => ({});
-const mutations = {};
-
-const actions = {
-  //查询列表 skip:第一页,limit:第一页显示的数据,info:其余查询参数
-  async query({ commit }, { skip = 0, limit, ...info } = {}) {
-    //连接接口。。。。
-    const res = await this.$axios.$get(`${api.company}`, {
-      skip,
-      limit,
-      ...info,
-    });
-    //把数据集合res返回
-    return res;
-  },
-  //创建数据  payload是添加form表单中的数据集合  创建数据的时候需要拿到form表单里面的数据
-  async create({ commit }, payload) {
-    //通过$axios提交post请求????
-    const res = await this.$axios.$post(`${api.company}`, payload);
-    return res;
-  },
-  //查询详情,payload:参数位,一般传当前数据id
-  async fetch({ commit }, payload) {
-    //有/一般都是路径
-    const res = await this.$axios.$get(`${api.company}/${payload}`);
-    return res;
-  },
-  //修改:id: 当前数据id, data: 当前修改数据的新form表单
-  async update({ commit }, { id, ...data }) {
-    const res = await this.$axios.$post(`${api.company}/update/${id}`, data);
-    return res;
-  },
-  //删除:payload:参数位,一般传当前数据id
-  async delete({ commit }, payload) {
-    const res = await this.$axios.$delete(`${api.company}/${payload}`);
-    return res;
-  },
-};
-
-export default {
-  namespaced: true,
-  state,
-  mutations,
-  actions,
-};

+ 0 - 6
src/store/index.js

@@ -3,9 +3,6 @@ import Vuex from 'vuex';
 import * as ustate from './user/state';
 import * as umutations from './user/mutations';
 import login from './login';
-import company from './company';
-import testmess from './testmess';
-import password from './password';
 import repair from './repair';
 import car from './car';
 
@@ -17,9 +14,6 @@ export default new Vuex.Store({
   actions: {},
   modules: {
     login,
-    company,
-    testmess,
-    password,
     repair,
     car,
   },

+ 0 - 43
src/store/password.js

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

+ 0 - 54
src/store/testmess.js

@@ -1,54 +0,0 @@
-//第一步
-import Vue from 'vue';
-import Vuex from 'vuex';
-import _ from 'lodash';
-Vue.use(Vuex);
-const api = {
-  //接口地址
-  company: `/api/servicetest/testmess`,
-};
-const state = () => ({});
-const mutations = {};
-
-const actions = {
-  //查询列表 skip:第一页,limit:第一页显示的数据,info:其余查询参数
-  async query({ commit }, { skip = 0, limit, ...info } = {}) {
-    //连接接口。。。。
-    const res = await this.$axios.$get(`${api.company}`, {
-      skip,
-      limit,
-      ...info,
-    });
-    //把数据集合res返回
-    return res;
-  },
-  //创建数据  payload是添加form表单中的数据集合  创建数据的时候需要拿到form表单里面的数据
-  async create({ commit }, payload) {
-    //通过$axios提交post请求????
-    const res = await this.$axios.$post(`${api.company}`, payload);
-    return res;
-  },
-  //查询详情,payload:参数位,一般传当前数据id
-  async fetch({ commit }, payload) {
-    //有/一般都是路径
-    const res = await this.$axios.$get(`${api.company}/${payload}`);
-    return res;
-  },
-  //修改:id: 当前数据id, data: 当前修改数据的新form表单
-  async update({ commit }, { id, ...data }) {
-    const res = await this.$axios.$post(`${api.company}/update/${id}`, data);
-    return res;
-  },
-  //删除:payload:参数位,一般传当前数据id
-  async delete({ commit }, payload) {
-    const res = await this.$axios.$delete(`${api.company}/${payload}`);
-    return res;
-  },
-};
-
-export default {
-  namespaced: true,
-  state,
-  mutations,
-  actions,
-};

+ 2 - 19
src/views/user/index.vue

@@ -4,9 +4,7 @@
       <el-col :span="24" class="main">
         <breadcrumb :breadcrumbTitle="this.$route.meta.title"></breadcrumb>
         <el-col :span="24" class="container">
-          <el-col :span="6" class="txt">
-            用户列表
-          </el-col>
+          <el-col :span="6" class="txt"> </el-col>
           <el-col :span="18" class="btn">
             <el-button type="primary" size="mini" @click="coldialog = true">添加</el-button>
           </el-col>
@@ -16,22 +14,7 @@
       </el-col>
     </el-row>
     <el-dialog :visible.sync="coldialog" title="客户信息" @close="coltoClose">
-      <data-form :data="form1" :fields="colFields" :rules="{}" @save="save">
-        <template #options="{item}">
-          <template v-if="item.model === 'site'">
-            <el-option label="政策卡片" value="zckp"></el-option>
-            <el-option label="政策报告" value="zcbg"></el-option>
-            <el-option label="政策书籍" value="zcsj"></el-option>
-            <el-option label="政策解读" value="zcjd"></el-option>
-            <el-option label="创新平台园区" value="cxptyq"></el-option>
-            <el-option label="税收与金融" value="ssyjr"></el-option>
-            <el-option label="知识产权" value="zscq"></el-option>
-            <el-option label="科技人才" value="kjrc"></el-option>
-            <el-option label="科技成果转化" value="kjcgzh"></el-option>
-            <el-option label="综合政策指导" value="zhzczd"></el-option>
-          </template>
-        </template>
-      </data-form>
+      <data-form :data="form1" :fields="colFields" :rules="{}" @save="save"> </data-form>
     </el-dialog>
   </div>
 </template>