UNPKG

manage-client

Version:

经营管控模块前台组件

30 lines (27 loc) 834 B
import Vue from 'vue' let getAllInputtor ={ inputtors : [], async init(){ let res = await Vue.resetpost('api/af-revenue/sql/getAlluserRes', { condition:" 1=1" }, {resolveMsg: null, rejectMsg: '获取用户出错!!!'}) if(res.data){ getAllInputtor.inputtors = res.data; } }, getresinputtor(orgid){ let inputtors = [] if(getAllInputtor.inputtors.length>0){ let arr = getAllbatch.data.filter((res) => { return res.rolestr.indexOf("抄表员")>-1 && res.f_orgid == 'orgid' }) inputtors.push({label: "全部", value: ""}) arr.forEach((res) => { inputtors.push({label: res.name, value: res.name}) }) getAllInputtor.inputtors = inputtors; } return getAllInputtor; } } export default getAllInputtor