e 5 years ago
parent
commit
dc0d8de0b2

+ 2 - 3
src/layout/index.vue

@@ -60,10 +60,9 @@ export default {
       this.$store.dispatch('app/closeSideBar', { withoutAnimation: false })
       this.$store.dispatch('app/closeSideBar', { withoutAnimation: false })
     },
     },
     checkSysName() {
     checkSysName() {
-      if (this.systemName) {
-        return false
+      if (!this.systemName) {
+        this.$store.dispatch('user/getSysInfo')
       }
       }
-      this.$store.dispatch('user/getSysInfo', this.organizeID)
     }
     }
   }
   }
 }
 }

+ 0 - 2
src/main.js

@@ -19,7 +19,6 @@ import './utils/error-log' // error log
 
 
 import * as filters from './filters' // global filters
 import * as filters from './filters' // global filters
 
 
-const organizeID = 1 // 组织ID
 const simplePwd = '12345678' // 简单密码
 const simplePwd = '12345678' // 简单密码
 const baseUrl = 'https://mai-b.caimei365.com' // 测试
 const baseUrl = 'https://mai-b.caimei365.com' // 测试
 // const baseUrl = 'https://mai.caimei365.com' //正式
 // const baseUrl = 'https://mai.caimei365.com' //正式
@@ -45,7 +44,6 @@ Object.keys(filters).forEach(key => {
   Vue.filter(key, filters[key])
   Vue.filter(key, filters[key])
 })
 })
 
 
-Vue.prototype.organizeID = organizeID
 Vue.prototype.simplePwd = simplePwd
 Vue.prototype.simplePwd = simplePwd
 Vue.prototype.baseUrl = baseUrl
 Vue.prototype.baseUrl = baseUrl
 Vue.config.productionTip = false
 Vue.config.productionTip = false

+ 1 - 0
src/store/getters.js

@@ -11,6 +11,7 @@ const getters = {
   name: state => state.user.name,
   name: state => state.user.name,
   avatar: state => state.user.avatar,
   avatar: state => state.user.avatar,
   roles: state => state.user.roles,
   roles: state => state.user.roles,
+  organizeID: state => state.user.organizeID,
   permission_routes: state => state.permission.routes,
   permission_routes: state => state.permission.routes,
   errorLogs: state => state.errorLog.logs
   errorLogs: state => state.errorLog.logs
 }
 }

+ 12 - 7
src/store/modules/user.js

@@ -12,6 +12,7 @@ const state = {
   avatar: '',
   avatar: '',
   systemName: '',
   systemName: '',
   systemImage: '',
   systemImage: '',
+  organizeID: '',
   roles: []
   roles: []
 }
 }
 
 
@@ -34,15 +35,18 @@ const mutations = {
   SET_AVATAR: (state, avatar) => {
   SET_AVATAR: (state, avatar) => {
     state.avatar = avatar
     state.avatar = avatar
   },
   },
+  SET_ORGANIZE_ID: (state, organizeID) => {
+    state.organizeID = organizeID
+  },
   SET_ROLES: (state, roles) => {
   SET_ROLES: (state, roles) => {
     state.roles = roles
     state.roles = roles
   }
   }
 }
 }
 
 
 const actions = {
 const actions = {
-  getSysInfo: function({ commit, state }, organizeID) {
+  getSysInfo: function({ commit, state }) {
     return new Promise((resolve, reject) => {
     return new Promise((resolve, reject) => {
-      getOrganizeInfo({ id: organizeID }).then(response => {
+      getOrganizeInfo({ id: state.organizeID }).then(response => {
         const { data } = response
         const { data } = response
         if (data) {
         if (data) {
           const { systemName, systemImage } = data
           const { systemName, systemImage } = data
@@ -58,12 +62,12 @@ const actions = {
 
 
   // user login
   // user login
   login: function({ commit }, userInfo) {
   login: function({ commit }, userInfo) {
-    const { account, password, organizeID, simplePwd } = userInfo
+    const { account, password, simplePwd } = userInfo
     return new Promise((resolve, reject) => {
     return new Promise((resolve, reject) => {
       if (password.trim() === simplePwd) {
       if (password.trim() === simplePwd) {
         commit('SET_IS_SIMPLE_PWD', true)
         commit('SET_IS_SIMPLE_PWD', true)
       }
       }
-      login({ account: account.trim(), password: password, organizeID: organizeID }).then(response => {
+      login({ account: account.trim(), password: password }).then(response => {
         const { data } = response
         const { data } = response
         commit('SET_TOKEN', data)
         commit('SET_TOKEN', data)
         setToken(data)
         setToken(data)
@@ -75,7 +79,7 @@ const actions = {
   },
   },
 
 
   // get user info
   // get user info
-  getInfo({ commit, state }) {
+  getInfo({ commit, state, dispatch }) {
     return new Promise((resolve, reject) => {
     return new Promise((resolve, reject) => {
       getInfo(state.token).then(response => {
       getInfo(state.token).then(response => {
         // const { data } = response
         // const { data } = response
@@ -88,11 +92,12 @@ const actions = {
           reject('getInfo: roles must be a non-null array!')
           reject('getInfo: roles must be a non-null array!')
         } */
         } */
         data.roles = ['admin']
         data.roles = ['admin']
-        const { roles, accountName, avatar } = data
+        const { roles, accountName, avatar, organizeID } = data
         commit('SET_ROLES', roles)
         commit('SET_ROLES', roles)
         commit('SET_NAME', accountName)
         commit('SET_NAME', accountName)
         commit('SET_AVATAR', avatar)
         commit('SET_AVATAR', avatar)
-        // commit('SET_SYSTEM_NAME', introduction)
+        commit('SET_ORGANIZE_ID', organizeID)
+        dispatch('getSysInfo')
         resolve(data)
         resolve(data)
       }).catch(error => {
       }).catch(error => {
         reject(error)
         reject(error)

+ 5 - 0
src/views/club/editForm.vue

@@ -112,6 +112,11 @@ export default {
       loadingbuttext: '保存'
       loadingbuttext: '保存'
     }
     }
   },
   },
+  computed: {
+    organizeID() {
+      return this.$store.getters.organizeID
+    }
+  },
   created() {
   created() {
     const params = { clubID: this.clubID, userID: this.userID }
     const params = { clubID: this.clubID, userID: this.userID }
     this.initClubData(params)
     this.initClubData(params)

+ 4 - 1
src/views/club/form.vue

@@ -107,7 +107,10 @@ export default {
       loadingbuttext: '保存'
       loadingbuttext: '保存'
     }
     }
   },
   },
-  created() {
+  computed: {
+    organizeID() {
+      return this.$store.getters.organizeID
+    }
   },
   },
   methods: {
   methods: {
     // 从子组件获取省市区
     // 从子组件获取省市区

+ 10 - 5
src/views/club/list.vue

@@ -125,7 +125,7 @@ export default {
       listQuery: {
       listQuery: {
         index: 1,
         index: 1,
         pageSize: 20,
         pageSize: 20,
-        userOrganizeID: this.organizeID,
+        userorganizeID: this.$store.getters.organizeID,
         name: '',
         name: '',
         linkName: '',
         linkName: '',
         bindMobile: '',
         bindMobile: '',
@@ -158,6 +158,11 @@ export default {
       }
       }
     }
     }
   },
   },
+  computed: {
+    organizeID() {
+      return this.$store.getters.organizeID
+    }
+  },
   created() {
   created() {
     this.fetchData()
     this.fetchData()
   },
   },
@@ -185,7 +190,7 @@ export default {
     handleCreateOperator() { // 保存
     handleCreateOperator() { // 保存
       this.$refs['dataForm'].validate((valid) => {
       this.$refs['dataForm'].validate((valid) => {
         if (valid) {
         if (valid) {
-          const Formobj = { userOrganizeID: this.organizeID, configFlag: 1 }
+          const Formobj = { userorganizeID: this.$store.getters.organizeID, configFlag: 1 }
           const params = Object.assign(Formobj, this.addPeople)
           const params = Object.assign(Formobj, this.addPeople)
           this.loadingbut = true
           this.loadingbut = true
           this.loadingbuttext = '保存中...'
           this.loadingbuttext = '保存中...'
@@ -201,7 +206,7 @@ export default {
     handlePreservOperator() { // 保存并生成邀请码
     handlePreservOperator() { // 保存并生成邀请码
       this.$refs['dataForm'].validate((valid) => {
       this.$refs['dataForm'].validate((valid) => {
         if (valid) {
         if (valid) {
-          const Formobj = { userOrganizeID: this.organizeID, configFlag: 2 }
+          const Formobj = { userorganizeID: this.$store.getters.organizeID, configFlag: 2 }
           const params = Object.assign(Formobj, this.addPeople)
           const params = Object.assign(Formobj, this.addPeople)
           preservOperator(params).then(response => {
           preservOperator(params).then(response => {
             this.dialogFormVisible = false
             this.dialogFormVisible = false
@@ -211,7 +216,7 @@ export default {
       })
       })
     },
     },
     handOnline(row) {
     handOnline(row) {
-      this.updateTemp = Object.assign({}, { clubID: row.clubID, userID: row.userID, clubStatus: row.clubStatus, userOrganizeID: this.organizeID })
+      this.updateTemp = Object.assign({}, { clubID: row.clubID, userID: row.userID, clubStatus: row.clubStatus, userorganizeID: this.$store.getters.organizeID })
       this.$confirm('确定上线该会所吗?', '系统提示', {
       this.$confirm('确定上线该会所吗?', '系统提示', {
         confirmButtonText: '确定',
         confirmButtonText: '确定',
         cancelButtonText: '取消',
         cancelButtonText: '取消',
@@ -223,7 +228,7 @@ export default {
       })
       })
     },
     },
     handOffline(row) {
     handOffline(row) {
-      this.updateTemp = Object.assign({}, { clubID: row.clubID, userID: row.userID, clubStatus: row.clubStatus, userOrganizeID: this.organizeID })
+      this.updateTemp = Object.assign({}, { clubID: row.clubID, userID: row.userID, clubStatus: row.clubStatus, userorganizeID: this.$store.getters.organizeID })
       this.$confirm('确定下线该会所吗?', '系统提示', {
       this.$confirm('确定下线该会所吗?', '系统提示', {
         confirmButtonText: '确定',
         confirmButtonText: '确定',
         cancelButtonText: '取消',
         cancelButtonText: '取消',

+ 11 - 6
src/views/club/operateList.vue

@@ -162,7 +162,7 @@ export default {
         pageSize: 20,
         pageSize: 20,
         clubID: this.$route.query.clubID,
         clubID: this.$route.query.clubID,
         userID: this.$route.query.userID,
         userID: this.$route.query.userID,
-        userOrganizeID: this.organizeID,
+        userorganizeID: this.$store.getters.organizeID,
         linkName: '',
         linkName: '',
         mobile: '',
         mobile: '',
         status: '',
         status: '',
@@ -170,7 +170,7 @@ export default {
         endAddTime: ''
         endAddTime: ''
       },
       },
       editTemp: {
       editTemp: {
-        userOrganizeID: this.organizeID,
+        userorganizeID: this.$store.getters.organizeID,
         linkName: '',
         linkName: '',
         mobile: ''
         mobile: ''
       },
       },
@@ -194,6 +194,11 @@ export default {
       }
       }
     }
     }
   },
   },
+  computed: {
+    organizeID() {
+      return this.$store.getters.organizeID
+    }
+  },
   created() {
   created() {
     this.initOperatorListData()
     this.initOperatorListData()
   },
   },
@@ -224,7 +229,7 @@ export default {
         id: row.id,
         id: row.id,
         clubID: row.clubID,
         clubID: row.clubID,
         userID: row.userID,
         userID: row.userID,
-        userOrganizeID: this.organizeID
+        userorganizeID: this.$store.getters.organizeID
       }
       }
     },
     },
     handleConfirm() {
     handleConfirm() {
@@ -256,7 +261,7 @@ export default {
       this.dialogStatus = 'untying'
       this.dialogStatus = 'untying'
       this.dialogVisibleText = '确定解绑该运营人员吗?'
       this.dialogVisibleText = '确定解绑该运营人员吗?'
       this.handleConfirmType = 'untying'
       this.handleConfirmType = 'untying'
-      this.editTemp = { userOrganizeID: this.organizeID, id: row.id, clubID: row.clubID, userID: row.userID }
+      this.editTemp = { userorganizeID: this.$store.getters.organizeID, id: row.id, clubID: row.clubID, userID: row.userID }
     },
     },
     unbindOperators() {
     unbindOperators() {
       const params = this.editTemp
       const params = this.editTemp
@@ -297,7 +302,7 @@ export default {
     handleCreateOperator() { // 保存
     handleCreateOperator() { // 保存
       this.$refs['dataForm'].validate((valid) => {
       this.$refs['dataForm'].validate((valid) => {
         if (valid) {
         if (valid) {
-          const params = Object.assign({ userOrganizeID: this.organizeID, configFlag: 1 }, this.editTemp)
+          const params = Object.assign({ userorganizeID: this.$store.getters.organizeID, configFlag: 1 }, this.editTemp)
           this.loadingbut = true
           this.loadingbut = true
           this.loadingbuttext = '保存中...'
           this.loadingbuttext = '保存中...'
           preservOperator(params).then(response => {
           preservOperator(params).then(response => {
@@ -321,7 +326,7 @@ export default {
     handlePreservOperator() { // 保存并生成邀请码
     handlePreservOperator() { // 保存并生成邀请码
       this.$refs['dataForm'].validate((valid) => {
       this.$refs['dataForm'].validate((valid) => {
         if (valid) {
         if (valid) {
-          const Formobj = { userOrganizeID: this.organizeID, configFlag: 2 }
+          const Formobj = { userorganizeID: this.$store.getters.organizeID, configFlag: 2 }
           const params = Object.assign(Formobj, this.editTemp)
           const params = Object.assign(Formobj, this.editTemp)
           preservOperator(params).then(response => {
           preservOperator(params).then(response => {
             this.dialogFormVisible = false
             this.dialogFormVisible = false

+ 9 - 4
src/views/dashboard/admin/index.vue

@@ -128,22 +128,27 @@ export default {
       Receivable: {
       Receivable: {
         startTime: this.getCurrentMonthFirst(),
         startTime: this.getCurrentMonthFirst(),
         endTime: this.getCurrentMonthLast(),
         endTime: this.getCurrentMonthLast(),
-        organizeID: this.organizeID
+        organizeID: this.$store.getters.organizeID
       },
       },
       Order: {
       Order: {
         startTime: this.getCurrentMonthFirst(),
         startTime: this.getCurrentMonthFirst(),
         endTime: this.getCurrentMonthLast(),
         endTime: this.getCurrentMonthLast(),
-        organizeID: this.organizeID
+        organizeID: this.$store.getters.organizeID
       },
       },
       Commodity: {
       Commodity: {
         startTime: this.getCurrentMonthFirst(),
         startTime: this.getCurrentMonthFirst(),
         endTime: this.getCurrentMonthLast(),
         endTime: this.getCurrentMonthLast(),
-        organizeID: this.organizeID
+        organizeID: this.$store.getters.organizeID
       },
       },
       count: 0,
       count: 0,
       payTotalFee: ''
       payTotalFee: ''
     }
     }
   },
   },
+  computed: {
+    organizeID() {
+      return this.$store.getters.organizeID
+    }
+  },
   created() {
   created() {
     this.fetchData()
     this.fetchData()
   },
   },
@@ -180,7 +185,7 @@ export default {
       })
       })
     },
     },
     handleGetHomepageSale() {
     handleGetHomepageSale() {
-      getHomepageSale({ organizeID: this.organizeID }).then(response => {
+      getHomepageSale({ organizeID: this.$store.getters.organizeID }).then(response => {
         this.isSaleRequest = true
         this.isSaleRequest = true
         this.monthData = response.data.month
         this.monthData = response.data.month
         this.payTotalFeeData = response.data.payTotalFee
         this.payTotalFeeData = response.data.payTotalFee

+ 4 - 1
src/views/goods/category-create.vue

@@ -65,7 +65,7 @@ export default {
       },
       },
       temp: {
       temp: {
         id: '',
         id: '',
-        organizeID: this.organizeID,
+        organizeID: this.$store.getters.organizeID,
         classifyName: '',
         classifyName: '',
         classifyImage: '',
         classifyImage: '',
         sort: '',
         sort: '',
@@ -80,6 +80,9 @@ export default {
   computed: {
   computed: {
     classifyId: function() {
     classifyId: function() {
       return window.location.href.split('/').reverse()[0]
       return window.location.href.split('/').reverse()[0]
+    },
+    organizeID() {
+      return this.$store.getters.organizeID
     }
     }
   },
   },
   methods: {
   methods: {

+ 4 - 1
src/views/goods/category-edit.vue

@@ -66,7 +66,7 @@ export default {
       },
       },
       temp: {
       temp: {
         id: '',
         id: '',
-        organizeID: this.organizeID,
+        organizeID: this.$store.getters.organizeID,
         classifyName: '',
         classifyName: '',
         classifyImage: '',
         classifyImage: '',
         sort: '',
         sort: '',
@@ -81,6 +81,9 @@ export default {
   computed: {
   computed: {
     classifyId: function() {
     classifyId: function() {
       return window.location.href.split('/').reverse()[0]
       return window.location.href.split('/').reverse()[0]
+    },
+    organizeID() {
+      return this.$store.getters.organizeID
     }
     }
   },
   },
   created() {
   created() {

+ 6 - 1
src/views/goods/category.vue

@@ -81,10 +81,15 @@ export default {
       listQuery: {
       listQuery: {
         index: 1,
         index: 1,
         pageSize: 20,
         pageSize: 20,
-        organizeID: this.organizeID
+        organizeID: this.$store.getters.organizeID
       }
       }
     }
     }
   },
   },
+  computed: {
+    organizeID() {
+      return this.$store.getters.organizeID
+    }
+  },
   created() {
   created() {
     this.getList()
     this.getList()
   },
   },

+ 7 - 2
src/views/goods/list-commonly.vue

@@ -91,7 +91,7 @@ export default {
       listQuery: {
       listQuery: {
         index: 1,
         index: 1,
         pageSize: 20,
         pageSize: 20,
-        organizeID: this.organizeID,
+        organizeID: this.$store.getters.organizeID,
         commonlyProduct: '1', // 常用商品
         commonlyProduct: '1', // 常用商品
         id: '',
         id: '',
         productName: '',
         productName: '',
@@ -100,13 +100,18 @@ export default {
       }
       }
     }
     }
   },
   },
+  computed: {
+    organizeID() {
+      return this.$store.getters.organizeID
+    }
+  },
   created() {
   created() {
     this.getModuleType()
     this.getModuleType()
     this.fetchData()
     this.fetchData()
   },
   },
   methods: {
   methods: {
     getModuleType() {
     getModuleType() {
-      getModule({ organizeID: this.organizeID }).then(response => {
+      getModule({ organizeID: this.$store.getters.organizeID }).then(response => {
         this.modules = response.data[0]
         this.modules = response.data[0]
       })
       })
     },
     },

+ 7 - 2
src/views/goods/list-preferential.vue

@@ -91,7 +91,7 @@ export default {
       listQuery: {
       listQuery: {
         index: 1,
         index: 1,
         pageSize: 20,
         pageSize: 20,
-        organizeID: this.organizeID,
+        organizeID: this.$store.getters.organizeID,
         preferentialProduct: '1', // 星范精品
         preferentialProduct: '1', // 星范精品
         id: '',
         id: '',
         productName: '',
         productName: '',
@@ -100,13 +100,18 @@ export default {
       }
       }
     }
     }
   },
   },
+  computed: {
+    organizeID() {
+      return this.$store.getters.organizeID
+    }
+  },
   created() {
   created() {
     this.getModuleType()
     this.getModuleType()
     this.fetchData()
     this.fetchData()
   },
   },
   methods: {
   methods: {
     getModuleType() {
     getModuleType() {
-      getModule({ organizeID: this.organizeID }).then(response => {
+      getModule({ organizeID: this.$store.getters.organizeID }).then(response => {
         this.modules = response.data[0]
         this.modules = response.data[0]
       })
       })
     },
     },

+ 7 - 2
src/views/goods/list-preferred.vue

@@ -91,7 +91,7 @@ export default {
       listQuery: {
       listQuery: {
         index: 1,
         index: 1,
         pageSize: 20,
         pageSize: 20,
-        organizeID: this.organizeID,
+        organizeID: this.$store.getters.organizeID,
         preferredProduct: '1', // 星范优选
         preferredProduct: '1', // 星范优选
         id: '',
         id: '',
         productName: '',
         productName: '',
@@ -100,13 +100,18 @@ export default {
       }
       }
     }
     }
   },
   },
+  computed: {
+    organizeID() {
+      return this.$store.getters.organizeID
+    }
+  },
   created() {
   created() {
     this.getModuleType()
     this.getModuleType()
     this.fetchData()
     this.fetchData()
   },
   },
   methods: {
   methods: {
     getModuleType() {
     getModuleType() {
-      getModule({ organizeID: this.organizeID }).then(response => {
+      getModule({ organizeID: this.$store.getters.organizeID }).then(response => {
         this.modules = response.data[0]
         this.modules = response.data[0]
       })
       })
     },
     },

+ 6 - 3
src/views/goods/list-select.vue

@@ -80,7 +80,7 @@ export default {
       listQuery: {
       listQuery: {
         index: 1,
         index: 1,
         pageSize: 20,
         pageSize: 20,
-        organizeID: this.organizeID,
+        organizeID: this.$store.getters.organizeID,
         id: '',
         id: '',
         productName: '',
         productName: '',
         shopName: '',
         shopName: '',
@@ -92,6 +92,9 @@ export default {
   computed: {
   computed: {
     moduleId: function() {
     moduleId: function() {
       return window.location.href.split('/').reverse()[0] * 1
       return window.location.href.split('/').reverse()[0] * 1
+    },
+    organizeID() {
+      return this.$store.getters.organizeID
     }
     }
   },
   },
   created() {
   created() {
@@ -100,7 +103,7 @@ export default {
   },
   },
   methods: {
   methods: {
     getModuleType() {
     getModuleType() {
-      getModule({ organizeID: this.organizeID }).then(response => {
+      getModule({ organizeID: this.$store.getters.organizeID }).then(response => {
         this.modules = response.data[0]
         this.modules = response.data[0]
       })
       })
     },
     },
@@ -135,7 +138,7 @@ export default {
       this.multipleSelection.map(item => {
       this.multipleSelection.map(item => {
         itemsList.push(item.id)
         itemsList.push(item.id)
       })
       })
-      saveAddList({ itemsList: itemsList, organizeID: this.organizeID, modules: this.moduleId }).then(response => {
+      saveAddList({ itemsList: itemsList, organizeID: this.$store.getters.organizeID, modules: this.moduleId }).then(response => {
         this.$notify({
         this.$notify({
           title: response.code * 1 === 1 ? 'Success' : 'Error',
           title: response.code * 1 === 1 ? 'Success' : 'Error',
           message: response.code * 1 === 1 ? '添加成功' : response.msg,
           message: response.code * 1 === 1 ? '添加成功' : response.msg,

+ 7 - 2
src/views/goods/list.vue

@@ -165,7 +165,7 @@ export default {
       listQuery: {
       listQuery: {
         index: 1,
         index: 1,
         pageSize: 20,
         pageSize: 20,
-        organizeID: this.organizeID,
+        organizeID: this.$store.getters.organizeID,
         id: '',
         id: '',
         productName: '',
         productName: '',
         shopName: '',
         shopName: '',
@@ -197,13 +197,18 @@ export default {
       }
       }
     }
     }
   },
   },
+  computed: {
+    organizeID() {
+      return this.$store.getters.organizeID
+    }
+  },
   created() {
   created() {
     this.getModuleType()
     this.getModuleType()
     this.fetchData()
     this.fetchData()
   },
   },
   methods: {
   methods: {
     getModuleType() {
     getModuleType() {
-      getModule({ organizeID: this.organizeID }).then(response => {
+      getModule({ organizeID: this.$store.getters.organizeID }).then(response => {
         this.modules = response.data[0]
         this.modules = response.data[0]
       })
       })
     },
     },

+ 7 - 21
src/views/login/index.vue

@@ -1,10 +1,10 @@
 <template>
 <template>
-  <div v-loading="pageLoading" class="login-container">
+  <div class="login-container">
     <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left">
     <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left">
 
 
       <div class="title-container">
       <div class="title-container">
-        <div class="logo"><img class="img" :src="systemImage" alt=""> </div>
-        <h3 class="title">{{ systemName ? systemName : '后台管理系统' }}</h3>
+        <div class="logo"><!--<img class="img" :src="systemImage" alt="">--></div>
+        <h3 class="title"><!--{{ systemName ? systemName : '后台管理系统' }}--></h3>
       </div>
       </div>
 
 
       <el-form-item prop="account">
       <el-form-item prop="account">
@@ -70,13 +70,11 @@ export default {
       }
       }
     }
     }
     return {
     return {
-      pageLoading: true,
       systemName: '',
       systemName: '',
       systemImage: '',
       systemImage: '',
       loginForm: {
       loginForm: {
         account: '',
         account: '',
         password: '',
         password: '',
-        organizeID: this.organizeID,
         simplePwd: this.simplePwd
         simplePwd: this.simplePwd
       },
       },
       loginRules: {
       loginRules: {
@@ -96,26 +94,13 @@ export default {
       immediate: true
       immediate: true
     }
     }
   },
   },
-  created() {
-    this.initAdminLogin()
-  },
   methods: {
   methods: {
-    initAdminLogin() {
-      this.pageLoading = true
-      this.$store.dispatch('user/getSysInfo', this.organizeID).then(() => {
+    /* initSystemInfo() {
+      this.$store.dispatch('user/getSysInfo').then(() => {
         this.systemName = this.$store.getters.systemName
         this.systemName = this.$store.getters.systemName
         this.systemImage = this.$store.getters.systemImage
         this.systemImage = this.$store.getters.systemImage
-        this.pageLoading = false
-      }).catch(() => {
-        this.pageLoading = false
       })
       })
-      /* getOrganizeInfo({ id: this.organizeID }).then(response => {
-        this.systemName = response.data.systemName
-        this.systemImage = response.data.systemImage
-        this.$store.commit('SET_SYSTEM_NAME', response.data.systemName)
-        this.$store.commit('SET_SYSTEM_IMAGE', response.data.systemImage)
-      }) */
-    },
+    }, */
     showPwd() {
     showPwd() {
       if (this.passwordType === 'password') {
       if (this.passwordType === 'password') {
         this.passwordType = ''
         this.passwordType = ''
@@ -131,6 +116,7 @@ export default {
         if (valid) {
         if (valid) {
           this.loading = true
           this.loading = true
           this.$store.dispatch('user/login', this.loginForm).then(() => {
           this.$store.dispatch('user/login', this.loginForm).then(() => {
+            /* this.initSystemInfo() */
             this.$router.push({ path: this.redirect || '/' })
             this.$router.push({ path: this.redirect || '/' })
             this.loading = false
             this.loading = false
           }).catch(() => {
           }).catch(() => {

+ 6 - 1
src/views/order/list.vue

@@ -178,7 +178,7 @@ export default {
       listQuery: {
       listQuery: {
         index: 1,
         index: 1,
         pageSize: 20,
         pageSize: 20,
-        organizeID: this.organizeID,
+        organizeID: this.$store.getters.organizeID,
         orderID: '',
         orderID: '',
         orderNo: '',
         orderNo: '',
         buyer: '',
         buyer: '',
@@ -210,6 +210,11 @@ export default {
       }
       }
     }
     }
   },
   },
+  computed: {
+    organizeID() {
+      return this.$store.getters.organizeID
+    }
+  },
   created() {
   created() {
     this.fetchData()
     this.fetchData()
   },
   },

+ 6 - 1
src/views/order/refund.vue

@@ -116,7 +116,7 @@ export default {
       listQuery: {
       listQuery: {
         index: 1,
         index: 1,
         pageSize: 20,
         pageSize: 20,
-        organizeID: this.organizeID,
+        organizeID: this.$store.getters.organizeID,
         returnedNo: '',
         returnedNo: '',
         orderID: '',
         orderID: '',
         orderNo: '',
         orderNo: '',
@@ -127,6 +127,11 @@ export default {
       }
       }
     }
     }
   },
   },
+  computed: {
+    organizeID() {
+      return this.$store.getters.organizeID
+    }
+  },
   created() {
   created() {
     this.fetchData()
     this.fetchData()
   },
   },

+ 5 - 0
src/views/other/about.vue

@@ -33,6 +33,11 @@ export default {
       }
       }
     }
     }
   },
   },
+  computed: {
+    organizeID() {
+      return this.$store.getters.organizeID
+    }
+  },
   created() {
   created() {
     this.initData()
     this.initData()
   },
   },

+ 5 - 0
src/views/other/after.vue

@@ -22,6 +22,11 @@ export default {
       loadingbuttext: '提交'
       loadingbuttext: '提交'
     }
     }
   },
   },
+  computed: {
+    organizeID() {
+      return this.$store.getters.organizeID
+    }
+  },
   created() {
   created() {
     this.initData()
     this.initData()
   },
   },

+ 5 - 0
src/views/other/notes.vue

@@ -22,6 +22,11 @@ export default {
       loadingbuttext: '提交'
       loadingbuttext: '提交'
     }
     }
   },
   },
+  computed: {
+    organizeID() {
+      return this.$store.getters.organizeID
+    }
+  },
   created() {
   created() {
     this.initData()
     this.initData()
   },
   },

+ 6 - 1
src/views/other/password.vue

@@ -36,6 +36,11 @@ export default {
       }
       }
     }
     }
   },
   },
+  computed: {
+    organizeID() {
+      return this.$store.getters.organizeID
+    }
+  },
   methods: {
   methods: {
     onSubmite() {
     onSubmite() {
       this.$refs['dataForm'].validate((valid) => {
       this.$refs['dataForm'].validate((valid) => {
@@ -54,7 +59,7 @@ export default {
             })
             })
             return
             return
           }
           }
-          const Formobj = { organizeID: this.organizeID }
+          const Formobj = { organizeID: this.$store.getters.organizeID }
           const params = Object.assign(Formobj, this.from)
           const params = Object.assign(Formobj, this.from)
           this.loadingbut = true
           this.loadingbut = true
           this.loadingbuttext = '保存中...'
           this.loadingbuttext = '保存中...'