浏览代码

付费规则调整

qymljy 1 年之前
父节点
当前提交
d765376b8a

+ 1 - 0
src/HManagement/accountManage/index.vue

@@ -4,6 +4,7 @@
       <add style="margin-right:10px;" v-if="tool.checkAuth($route.name,'insert')" @onSuccess="onSuccess"></add>
     </div>
     <list v-if="tool.checkAuth($route.name,'read')" ref="list" @handleSelectionChange="handleSelectionChange">
+
       <template v-slot:detail="scope">
         <div class="inline-16">
           <el-button size="mini" type="text" @click="$router.push({path:'/account_details',query:{id:scope.data.userid}})">查 看</el-button>

+ 40 - 3
src/HManagement/accountManage/modules/account_detail.vue

@@ -35,15 +35,29 @@
         </template>
       </tableLayout>
     </div>
+    <div class="container normal-panel normal-margin">
+      <el-descriptions title="付费信息"></el-descriptions>
+      <tablePay :layout="table_payinfo" :data="payData" :opwidth="200" :custom="true">
+        <template v-slot:customcol="scope">
+          <span v-if="scope.column.columnname === 'ispaid'">{{scope.column.data.ispaid === 1 ? '已付费' : '未付费'}}</span>
+          <span v-else-if="scope.column.columnname === 'partitionname'">
+            <el-tag type="success" size="mini">{{scope.column.data[scope.column.columnname]}}</el-tag>
+          </span>
+          <p v-else>{{scope.column.data[scope.column.columnname] || ''}}</p>
+        </template>
+      </tablePay>
+    </div>
   </div>
 </template>
 
 <script>
 import tableLayout from '../../../components/dynamic-table'
+import tablePay from '@/components/table/index2.vue'
 
 export default {
   components:{
-    tableLayout
+    tableLayout,
+    tablePay
   },
   data () {
     return {
@@ -51,9 +65,25 @@ export default {
       table_userinfo:[],
       table_hrinfo:[],
       table_roleinfo:[],
+      table_payinfo:[],
       list:[],
       hrmsg:[],
-      roleData:[]
+      roleData:[],
+      payData:[],
+      param:{
+        "classname": "sale.team.team",
+        "method": "queryPaid",
+        "content": {
+          "nocache":true,
+          "userid": this.$route.query.id,
+          "pageNumber": 1,
+          "pageSize": 999999,
+          "where": {
+            "condition": "",
+            "ispaid": ""
+          }
+        },
+      }
     }
   },
   methods:{
@@ -82,16 +112,23 @@ export default {
       }
       // 插入角色数据
       this.roleData = res.data.userrole
+    },
+    async payList(){
+      const res = await this.$api.requested(this.param)
+      this.payData = res.data
     }
   },
   mounted () {
     this.userMian()
+    this.payList()
     // 获取用户信息表结构
     this.table_userinfo = this.tool.tabelCol(this.$route.name).detailUserinfo.tablecols
     // 获取人员表结构
     this.table_hrinfo = this.tool.tabelCol(this.$route.name).detailHrInfo.tablecols
     // 获取角色表结构
     this.table_roleinfo = this.tool.tabelCol(this.$route.name).detailRoleInfo.tablecols
+    /*获取付费表结构*/
+    this.table_payinfo = this.tool.tabelCol(this.$route.name).detailPayInfo.tablecols
   }
 }
 
@@ -112,4 +149,4 @@ export default {
 .mb-40{
   margin-bottom:40px
 }
-</style>
+</style>

+ 14 - 2
src/HManagement/accountManage/modules/list.vue

@@ -67,7 +67,19 @@
             }}</span
           >
         </p>
-        <p v-else>{{ scope.column.data[scope.column.columnname] }}</p>
+        <p v-else-if="scope.column.columnname === 'partitionname'">
+            <span v-if="scope.column.data.partitionname.length !== 0">
+             <span v-for="(item,index) in scope.column.data.partitionname " :key="index">
+              <span >
+                <el-tag type="success" size="mini">{{item.partitionname + item.enddate}}</el-tag>
+              </span>
+             </span>
+            </span>
+            <span v-else>--</span>
+
+          </p>
+        <span v-else-if="scope.column.columnname === 'operation'" ></span>
+        <p v-else>{{ scope.column.data[scope.column.columnname] || '--' }}</p>
       </template>
       <template v-slot:opreation="scope">
         <slot name="detail" :data="scope.data"></slot>
@@ -173,7 +185,7 @@ export default {
       const res = await this.$api.requested(param);
       this.select = res.data;
       console.log(this.select);
-      
+
     },
     handleSizeChange(val) {
       // console.log(`每页 ${val} 条`);

+ 8 - 1
src/HManagement/siteManage/paymentRules/index.vue

@@ -15,6 +15,11 @@
               <el-radio v-model="form.sys_payswitch" label='0' @input="isSave = false" :disabled="!isOpen">关闭</el-radio>
             </el-form-item>
           </el-col>
+          <el-col :span="18">
+            <el-form-item label="到期提醒天数:" prop="sys_payremind" >
+              <el-input v-model="form.sys_payremind" placeholder="请填写到期提醒天数" :disabled="!isSave"></el-input>
+            </el-form-item>
+          </el-col>
           <el-col :span="18">
             <el-form-item label="试用时间(月份):" prop="sys_trialperiod" >
               <el-input v-model="form.sys_trialperiod" type="number" placeholder="请填写试用时间" :disabled="!isSave"></el-input>
@@ -60,7 +65,8 @@ export default {
         "sys_payincidence": 1, //付费影响范围(付费类型)1,按账号,2按主体
         "sys_payswitch": 1, //系统付费开关
         "sys_trialperiod": '', //系统试用时间(月份)
-        "sys_payinstructions": ""
+        "sys_payinstructions": "",
+        "sys_payremind":''
       },
       rules:{
         sys_payswitch: [
@@ -89,6 +95,7 @@ export default {
       this.form.sys_payinstructions = res.data.sys_payinstructions
       this.form.sys_trialperiod = res.data.sys_trialperiod
       this.form.sys_payincidence = res.data.sys_payincidence == '1'?'1':'2'
+      this.form.sys_payremind = res.data.sys_payremind
       console.log(this.form,'表单数据')
       if (this.form.sys_payswitch == '0'){
         this.isSave = false

+ 61 - 2
src/HManagement/siteManage/paymentRules/modules/payOrders.vue

@@ -6,11 +6,33 @@
         :visible.sync="drawer"
         :show-close="false"
         size="70%"
+        @close="onClose"
        >
       <el-divider></el-divider>
       <div style="padding: 0px 10px 10px 10px">
         <el-input  style="width:200px;" placeholder="搜索" :suffix-icon="param.content.where.condition?param.content.where.condition.length > 0?'':'':'el-icon-search'" v-model="param.content.where.condition" @keyup.native.enter="listData(param.content.pageNumber = 1)" @clear="listData(param.content.pageNumber = 1)" size="small" class="input-with-select inline-24 layout_search__panel" clearable>
         </el-input>
+        <label style="margin-right: 10px;font-size: 14px">订单时间:</label>
+        <el-date-picker
+            @change="changeDate"
+            style="margin-right: 16px !important;"
+            size="small"
+            v-model="selectDate"
+            type="daterange"
+            value-format="yyyy-MM-dd"
+            range-separator="至"
+            start-placeholder="开始日期"
+            end-placeholder="结束日期">
+        </el-date-picker>
+        <label style="margin-right: 10px;font-size: 14px" >付费状态:</label>
+        <el-select v-model="ispaid" size="small" placeholder="请选择" @change="changeDate">
+          <el-option
+              v-for="item in options"
+              :key="item.value"
+              :label="item.label"
+              :value="item.value">
+          </el-option>
+        </el-select>
         <tableLayout style="margin-top: 20px" :layout="tablecols" :data="list" :opwidth="200" :custom="true"  height="calc(100vh - 340px)">
           <template v-slot:customcol="scope">
              <span v-if="scope.column.columnname === 'ispaid'" >
@@ -51,6 +73,7 @@ export default {
       list:[],
       currentPage:0,
       total:0,
+      selectDate:'',
       param:{
         "classname": "system.payorder.payorder",
         "method": "list",
@@ -58,10 +81,27 @@ export default {
           "pageNumber": 1,
           "pageSize": 20,
           "where": {
-            "condition": ""
+            "condition": "",
+            "ispaid": '', //0:未付费,1:已付费,2:新建(未在微信端生成订单),3:已取消
+            "startdate": "",
+            "enddate": ""
           }
         },
-      }
+      },
+      options: [{
+        value: '0',
+        label: '未付费'
+      }, {
+        value: '1',
+        label: '已付费'
+      }, {
+        value: '2',
+        label: '新建'
+      }, {
+        value: '3',
+        label: '已取消'
+      }],
+      ispaid: ''
     }
   },
   methods:{
@@ -85,6 +125,25 @@ export default {
       this.param.content.pageNumber = val
       this.listData()
     },
+    changeDate(){
+      this.param.content.where.ispaid = this.ispaid
+      if (this.selectDate){
+        this.param.content.where.startdate = this.selectDate[0]
+        this.param.content.where.enddate = this.selectDate[1]
+      }else {
+        this.param.content.where.startdate = ''
+        this.param.content.where.enddate = ''
+      }
+      this.listData()
+    },
+    onClose(){
+      this.ispaid = ''
+      this.selectDate = ''
+      this.param.content.where.ispaid = ''
+      this.param.content.where.startdate = ''
+      this.param.content.where.enddate = ''
+      this.param.content.where.condition = ''
+    }
   },
   created() {
     this.tablecols = this.tool.tabelCol(this.$route.name).payOrderTable.tablecols

+ 1 - 1
src/SManagement/user/pay-orders/index.vue

@@ -145,7 +145,7 @@ export default {
   mounted() {
     this.listData()
     this.$refs.add.queryInstructions()
-    if (this.$route.query.isPay === '1'){
+    if (this.$route.query.isPay === '1' || this.$route.query.isPay === '2'){
       this.$refs.add.onShow()
     }
   },

+ 93 - 28
src/SManagement/user/pay-orders/modules/add.vue

@@ -92,6 +92,19 @@
                   <span v-if="form.sys_site_systempartitionid == index">{{item}}</span>
                 </span>
               </span>
+              <span v-else-if="scope.column.columnname === 'name'">
+                <span v-if="JSON.stringify(scope.column.data.enddate) === '{}'">
+                  <span style="margin-right: 10px">{{scope.column.data.name}}</span>
+                  <el-tag type="danger" size="mini">未付费</el-tag>
+                </span>
+                <span v-else>
+                  <span v-if="dataNow > JSON.stringify(scope.column.data.enddate)">
+                     <span style="margin-right: 10px">{{scope.column.data.name}}</span>
+                  <el-tag type="danger" size="mini">未付费</el-tag>
+                  </span>
+                  <span v-else>{{scope.column.data.name}}</span>
+                </span>
+              </span>
               <p v-else>{{scope.column.data[scope.column.columnname] || '--'}}</p>
             </template>
             <template v-slot:opreation="scope">
@@ -142,6 +155,7 @@ export default {
   data() {
     return {
       dialogVisible:false,
+      dataNow:'',
       versionList:[],
       modulesList:[],
       form:{
@@ -184,6 +198,7 @@ export default {
       /*this.queryAccount()*/
       this.queryInstructions()
       this.creatOrder()
+      /*this.queryVersion()*/
     },
     /*新建订单*/
     async creatOrder(){
@@ -230,11 +245,24 @@ export default {
           checkRow:false
         }
       })
-      this.versionList[0].checkRow = true
-      this.modulesList = this.versionList[0].systemapp
-      this.form.sys_site_systempartitionid = this.versionList[0].sys_site_systempartitionid
-      this.queryAccount()
-      this.$refs.version.$refs.myTable.doLayout()
+      if (this.$route.query.isPay == 2){
+        this.versionList.forEach(item=>{
+          if (item.sys_site_systempartitionid == this.$route.query.id){
+            item.checkRow = true
+            this.modulesList = item.systemapp
+            this.form.sys_site_systempartitionid = item.sys_site_systempartitionid
+            this.queryAccount()
+            this.$refs.version.$refs.myTable.doLayout()
+          }
+        })
+      }else {
+        this.versionList[0].checkRow = true
+        this.modulesList = this.versionList[0].systemapp
+        this.form.sys_site_systempartitionid = this.versionList[0].sys_site_systempartitionid
+        this.queryAccount()
+        this.$refs.version.$refs.myTable.doLayout()
+      }
+
     },
     /*获取可选账号*/
     async queryAccount(){
@@ -256,34 +284,71 @@ export default {
       })
       let date = new Date()
       let dateNow = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
-      this.list.forEach((item)=>{
-        if (item.isleader === 1){
-          if (item.enddate[this.form.sys_site_systempartitionid]){
-            if (dateNow > item.enddate[this.form.sys_site_systempartitionid]){
+      this.dataNow = dateNow
+      if (this.$route.query.isPay == 2){
+
+        this.list.forEach(item=>{
+          if (item.isleader === 1){
+            if (item.enddate[this.form.sys_site_systempartitionid]){
+              if (dateNow > item.enddate[this.form.sys_site_systempartitionid]){
+                item.checkRow = true
+                this.userLeader = item.userid
+              }
+            }else {
               item.checkRow = true
               this.userLeader = item.userid
             }
-          }else {
+          }
+          if (item.userid == this.$route.query.userid){
             item.checkRow = true
-            this.userLeader = item.userid
           }
-        }
-      })
-      this.userids = []
-      this.list.forEach(item=>{
-        if (item.checkRow){
-          this.userids.push({
-            "isleader": item.isleader,
-            "userid": item.userid,
-            "sa_agentsid": item.sa_agentsid,
-            "enddate": item.enddate[this.form.sys_site_systempartitionid]
-          })
-        }
-      })
-      this.accountNum = this.userids.length
-      this.queryPrice()
-      this.$refs.account1.$refs.myTable.doLayout()
-      this.$refs.account2.$refs.myTable.doLayout()
+        })
+        this.userids = []
+        this.list.forEach(item=>{
+          if (item.checkRow){
+            this.userids.push({
+              "isleader": item.isleader,
+              "userid": item.userid,
+              "sa_agentsid": item.sa_agentsid,
+              "enddate": item.enddate[this.form.sys_site_systempartitionid]
+            })
+          }
+        })
+        this.accountNum = this.userids.length
+        this.queryPrice()
+        this.$refs.account1.$refs.myTable.doLayout()
+        this.$refs.account2.$refs.myTable.doLayout()
+      }else {
+        this.list.forEach((item)=>{
+          if (item.isleader === 1){
+            if (item.enddate[this.form.sys_site_systempartitionid]){
+              if (dateNow > item.enddate[this.form.sys_site_systempartitionid]){
+                item.checkRow = true
+                this.userLeader = item.userid
+              }
+            }else {
+              item.checkRow = true
+              this.userLeader = item.userid
+            }
+          }
+        })
+        this.userids = []
+        this.list.forEach(item=>{
+          if (item.checkRow){
+            this.userids.push({
+              "isleader": item.isleader,
+              "userid": item.userid,
+              "sa_agentsid": item.sa_agentsid,
+              "enddate": item.enddate[this.form.sys_site_systempartitionid]
+            })
+          }
+        })
+        this.accountNum = this.userids.length
+        this.queryPrice()
+        this.$refs.account1.$refs.myTable.doLayout()
+        this.$refs.account2.$refs.myTable.doLayout()
+      }
+
     },
     /*选择版本*/
     onCheck(val){

+ 36 - 14
src/SManagement/user/pay-orders/modules/payment.vue

@@ -126,23 +126,45 @@ export default {
   methods:{
     /*获取订单详情*/
     async queryData(id){
-      const res = await this.$api.requested({
-        "classname": "system.payorder.payorder",
-        "method": "detail",
-        "content": {
-          "sys_payorderid": this.$route.query.id || id
-        },
-      })
-      console.log(res,'订单详情付款')
-      this.list = res.data
-      this.moduleList = res.data.systemapp
+      if (this.$route.query.isPay == 2){
+        const res = await this.$api.requested({
+          "classname": "system.payorder.payorder",
+          "method": "detail",
+          "content": {
+            "sys_payorderid":  id
+          },
+        })
+        console.log(res,'订单详情付款')
+        this.list = res.data
+        this.moduleList = res.data.systemapp
+      }else {
+        const res = await this.$api.requested({
+          "classname": "system.payorder.payorder",
+          "method": "detail",
+          "content": {
+            "sys_payorderid": this.$route.query.id || id
+          },
+        })
+        console.log(res,'订单详情付款')
+        this.list = res.data
+        this.moduleList = res.data.systemapp
+      }
+
     },
     /*获取账号列表*/
     async queryAccount(id){
-      this.param.content.sys_payorderid = this.$route.query.id || id
-      const res = await this.$api.requested(this.param)
-      console.log(res,'账号列表付款')
-      this.accountList = res.data
+      if (this.$route.query.isPay ==2){
+        this.param.content.sys_payorderid =  id
+        const res = await this.$api.requested(this.param)
+        console.log(res,'账号列表付款')
+        this.accountList = res.data
+      }else {
+        this.param.content.sys_payorderid = this.$route.query.id || id
+        const res = await this.$api.requested(this.param)
+        console.log(res,'账号列表付款')
+        this.accountList = res.data
+      }
+
     },
     /*获取付费二维码*/
     async queryCode(orderno){

+ 91 - 1
src/components/layout/index.vue

@@ -46,6 +46,18 @@
         </el-container>
       </el-container>
     </el-container>
+    <el-dialog
+        title="提醒"
+        :visible.sync="dialogVisible"
+        width="600px"
+    >
+      <span>{{contentMsg}}</span>
+      <span slot="footer" class="dialog-footer">
+      <el-button @click="dialogVisible = false" size="small">取 消</el-button>
+      <el-button v-if="type[0].usertype == '22'" @click="onReminder" size="small">提醒付费</el-button>
+      <el-button type="primary" @click="onPay" size="small">去付费</el-button>
+  </span>
+    </el-dialog>
   </div>
 </template>
 
@@ -70,7 +82,12 @@ export default {
     return {
       routerName:'',
       modeuls:[],
-      act_id:null
+      act_id:null,
+      dialogVisible:false,
+      contentMsg:'',
+      type:"",
+      nowAccount:'',
+      userids:[]
     }
   },
   mounted() {
@@ -116,6 +133,74 @@ export default {
         this.$router.replace({path:'/home'})
       }
 
+    },
+
+
+    async queryAccount(){
+      const res = await this.$api.requested({
+        "classname": "webmanage.site.paymentrules",
+        "method": "queryRemind",
+        "content": {},
+      })
+      console.log(res.data,'当前账号')
+      this.nowAccount = res.data[0]
+      if (res.data.length > 0 ){
+        this.dialogVisible = true
+        this.contentMsg = '【'+res.data[0].partitionname+'】将在'+res.data[0].days+'天后到期,请尽快续费!'
+      }else {
+        this.queryReminder()
+      }
+    },
+    async queryReminder(){
+      const res = await this.$api.requested({
+        "classname": "webmanage.site.paymentrules",
+        "method": "queryRemindUser",
+        "content": {},
+      })
+      console.log(res.data,'提醒账号')
+      if (res.data.length > 0){
+        this.dialogVisible = true
+        let name = ''
+        this.userids = []
+        res.data.forEach((item,index)=>{
+          name = name + item.name
+          this.userids[index] = item.userid
+        })
+        this.contentMsg = name + '申请账号付费,请前往处理!'
+      }
+
+    },
+    onPay(){
+      this.dialogVisible = false
+      let module = JSON.parse(sessionStorage.getItem('module_info'))
+      let moduleList = []
+      module.forEach(item=>{
+        if (item.systemname === '通用'){
+          moduleList = item
+        }
+      })
+      let apps = []
+      moduleList.modules.forEach(item=>{
+        if (item.systemmodulename === '个人中心'){
+          apps = item
+        }
+      })
+      sessionStorage.setItem('active_modules',JSON.stringify(apps))
+      this.activePath = '/pay_orders'
+      this.$router.replace({path:'/pay_orders',query:{isPay:'2',id:this.nowAccount.sys_site_systempartitionid,userid:this.userids}})
+      sessionStorage.setItem('currentPath','/pay_orders')
+      let active_modules = JSON.parse(sessionStorage.getItem('active_modules'))
+      this.auth_data = active_modules.apps
+    },
+    async onReminder(){
+      const res = await this.$api.requested({
+        "classname": "system.payorder.payorder",
+        "method": "sendMessage",
+        "content": {
+          "sys_payorderid": 0
+        },
+      })
+      this.dialogVisible = false
     }
   },
   created () {
@@ -123,6 +208,11 @@ export default {
     this.query_usershortcuts()
     this.routerName = this.$route.meta.title
     this.ast_nav = this.$route.meta.ast_nav
+    this.type = JSON.parse(sessionStorage.getItem('account_list'))
+    console.log(this.type)
+    this.userids[0] =  this.type[0].userid
+    this.queryAccount()
+
   },
   watch:{
     $route (val) {

+ 94 - 3
src/views/homePage/index.vue

@@ -35,6 +35,18 @@
         </el-col>
       </el-row>
     </div>
+    <el-dialog
+        title="提醒"
+        :visible.sync="dialogVisible"
+        width="600px"
+        >
+      <span>{{contentMsg}}</span>
+      <span slot="footer" class="dialog-footer">
+      <el-button @click="dialogVisible = false" size="small">取 消</el-button>
+      <el-button v-if="type[0].usertype == '22'" @click="onReminder" size="small">提醒付费</el-button>
+      <el-button type="primary" @click="onPay" size="small">去付费</el-button>
+  </span>
+    </el-dialog>
   </div>
 </template>
 
@@ -54,13 +66,18 @@ export default {
   data () {
     return {
       modulesList:[],
-      dataOverview:{}
+      dataOverview:{},
+      dialogVisible:false,
+      contentMsg:'',
+      type:"",
+      nowAccount:'',
+      userids:[]
     }
   },
   methods:{
     redictToModules (item) {
       console.log(item.apps[0].path);
-      
+
       this.$router.push({path:item.apps[0].path})
       sessionStorage.setItem('active_modules',JSON.stringify(item))
       window.sessionStorage.setItem('currentPath',item.apps[0].path)
@@ -86,10 +103,84 @@ export default {
       this.$refs.sms.piePlot.changeData([{num:res.data.sms.total - res.data.sms.used,type:'未使用'},{num:res.data.sms.used,type:'已使用'}])
       this.$refs.storage.piePlot.changeData([{num:res.data.storage.unUsed,type:'未使用'},{num:res.data.storage.used,type:'已使用'}])
     },
+    async queryAccount(){
+      const res = await this.$api.requested({
+        "classname": "webmanage.site.paymentrules",
+        "method": "queryRemind",
+        "content": {},
+      })
+      console.log(res.data,'当前账号')
+      this.nowAccount = res.data[0]
+      if (res.data.length > 0){
+
+        this.dialogVisible = true
+        this.contentMsg = '【'+res.data[0].partitionname+'】将在'+res.data[0].days+'天后到期,请尽快续费!'
+      }else {
+        this.queryReminder()
+      }
+    },
+    async queryReminder(){
+      const res = await this.$api.requested({
+        "classname": "webmanage.site.paymentrules",
+        "method": "queryRemindUser",
+        "content": {},
+      })
+      console.log(res.data,'提醒账号')
+      if (res.data.length > 0){
+        this.dialogVisible = true
+        let name = ''
+        this.userids = []
+        res.data.forEach((item,index)=>{
+          name = name + item.name
+          this.userids[index] = item.userid
+        })
+        this.contentMsg = name + '申请账号付费,请前往处理!'
+      }
+
+    },
+    onPay(){
+      let module = JSON.parse(sessionStorage.getItem('module_info'))
+      let moduleList = []
+      module.forEach(item=>{
+        if (item.systemname === '通用'){
+          moduleList = item
+        }
+      })
+      let apps = []
+      moduleList.modules.forEach(item=>{
+        if (item.systemmodulename === '个人中心'){
+          apps = item
+        }
+      })
+      sessionStorage.setItem('active_modules',JSON.stringify(apps))
+      this.activePath = '/pay_orders'
+      this.$router.replace({path:'/pay_orders',query:{isPay:'2',id:this.nowAccount.sys_site_systempartitionid,userid:this.userids}})
+      sessionStorage.setItem('currentPath','/pay_orders')
+      let active_modules = JSON.parse(sessionStorage.getItem('active_modules'))
+      this.auth_data = active_modules.apps
+    },
+    async onReminder(){
+      const res = await this.$api.requested({
+        "classname": "system.payorder.payorder",
+        "method": "sendMessage",
+        "content": {
+          "sys_payorderid": 0
+        },
+      })
+      this.dialogVisible = false
+    }
   },
   mounted () {
     this.modulesList = JSON.parse(sessionStorage.getItem('module_info'))
+    this.type = JSON.parse(sessionStorage.getItem('account_list'))
+    console.log(this.type)
+    this.userids[0] =  this.type[0].userid
     this.getDataOverview()
+   /* this.queryAccount()*/
+
+  },
+  created() {
+
   }
 }
 
@@ -122,4 +213,4 @@ export default {
 .modules-item:hover .setting-panel{
   display: block;
 }
-</style>
+</style>

+ 1 - 1
src/views/select_accounts/index.vue

@@ -22,7 +22,7 @@
 export default {
   data () {
     return {
-      account_list: []
+      account_list: [],
     }
   },
   methods: {