Selaa lähdekoodia

整合store至frame项目

lrf402788946 5 vuotta sitten
vanhempi
commit
e31f8608c4
3 muutettua tiedostoa jossa 12 lisäystä ja 11 poistoa
  1. 6 6
      src/store/index.js
  2. 3 3
      src/views/plan/index.vue
  3. 3 2
      src/views/scganli/index.vue

+ 6 - 6
src/store/index.js

@@ -1,11 +1,11 @@
 import Vue from 'vue';
 import Vue from 'vue';
 import Vuex from 'vuex';
 import Vuex from 'vuex';
-import student from '@center/src/store/student';
-import teacher from '@center/src/store/teacher';
-import trainplan from '@center/src/store/trainplan';
-import classes from '@center/src/store/classes';
-import schPlan from './sch-plan';
-import schimport from './sch-import';
+import student from '@frame/store/student';
+import teacher from '@frame/store/teacher';
+import trainplan from '@frame/store/trainplan';
+import classes from '@frame/store/classes';
+import schPlan from '@frame/store/sch-plan';
+import schimport from '@frame/store/sch-import';
 
 
 Vue.use(Vuex);
 Vue.use(Vuex);
 
 

+ 3 - 3
src/views/plan/index.vue

@@ -20,12 +20,12 @@ export default {
   data: () => ({
   data: () => ({
     opera: [
     opera: [
       {
       {
-        label: '查看全年计划',
+        label: '上报参加时间',
         icon: 'el-icon-date',
         icon: 'el-icon-date',
         method: 'edit',
         method: 'edit',
       },
       },
       {
       {
-        label: '上报时间',
+        label: '上报名单',
         icon: 'el-icon-document',
         icon: 'el-icon-document',
         method: 'update',
         method: 'update',
       },
       },
@@ -57,7 +57,7 @@ export default {
   methods: {
   methods: {
     ...mapActions(['query', 'delete']),
     ...mapActions(['query', 'delete']),
     async search({ skip = 0, limit = 10, ...info } = {}) {
     async search({ skip = 0, limit = 10, ...info } = {}) {
-      const res = await this.query({ skip, limit, ...info });
+      const res = await this.query({ skip, limit, status: '1', ...info });
       if (this.$checkRes(res)) {
       if (this.$checkRes(res)) {
         this.$set(this, `list`, res.data);
         this.$set(this, `list`, res.data);
         this.$set(this, `total`, res.total);
         this.$set(this, `total`, res.total);

+ 3 - 2
src/views/scganli/index.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <div id="index">
   <div id="index">
-    <list-frame :title="mainTitle" @query="search" :total="total" :needFilter="false" :needAdd="false">
+    <list-frame :title="mainTitle" @query="search" :needPag="false" :needFilter="false" :needAdd="false">
       <data-table :fields="fields" :data="list" :opera="opera" @update="toUpdate" @list="toList"></data-table>
       <data-table :fields="fields" :data="list" :opera="opera" @update="toUpdate" @list="toList"></data-table>
     </list-frame>
     </list-frame>
     <el-dialog title="上传名单" :visible.sync="dialog" @close="toClose" v-if="dialog">
     <el-dialog title="上传名单" :visible.sync="dialog" @close="toClose" v-if="dialog">
@@ -51,7 +51,7 @@ export default {
     dialog: false,
     dialog: false,
     opera: [
     opera: [
       {
       {
-        label: '上报时间',
+        label: '上报名单',
         icon: 'el-icon-document-add',
         icon: 'el-icon-document-add',
         method: 'update',
         method: 'update',
       },
       },
@@ -121,6 +121,7 @@ export default {
     async cerUpdate() {
     async cerUpdate() {
       let form = JSON.parse(JSON.stringify(this.form));
       let form = JSON.parse(JSON.stringify(this.form));
       form.schid = '99991';
       form.schid = '99991';
+      this.$message('正在上传,请稍候片刻');
       let res = await this.create(form);
       let res = await this.create(form);
       let err = () => this.$message.error('上报失败');
       let err = () => this.$message.error('上报失败');
       if (this.$checkRes(res)) {
       if (this.$checkRes(res)) {