var vm = new Vue({ el: '#app', data: function () { return { isLoading: false, active: 0, cardType: "", userInfo: { "loginGuid": '', "loginAccount": '', "loginName": '', }, tabs: [ { name: '待办列表', img: "../Images/sm.png", path: '/home/kcpg' }, { name: '采购入库单', img: "../Images/cgrkd.png", path: '/home/kcpg' }, { name: '来料检验', img: "../Images/cgrkd.png", path: '/home/kcpg' }, { name: '检验管理', img: "../Images/yj.png", path: '/home/kcpg' }, { name: '巡检管理', img: "../Images/yj.png", path: '/home/kcpg' } , { name: '巡检管理', img: "../Images/yj.png", path: '/home/kcpg' }, { name: '打印设置', img: "../Images/print.png", path: '/H5/Config.aspx' } ] } }, mounted() { var that = this; this.userInfo = { loginGuid: this.GetLoginInfor().loginGuid, loginAccount: this.GetLoginInfor().loginAccount, loginName: Cookies.get('loginName'), }; }, methods: { goOut() { var that = this; this.$dialog.confirm({ title: '友情提示', message: '确定退出当前账号吗?', confirmButtonText: '确定', cancelButtonText: '取消' }) .then(() => { window.location.href = "/UserLogin.aspx"; }) .catch(() => { // on cancel }); }, goMsg() { var that = this; window.location.href = "/H5/Message.aspx"; }, goOrg() { var that = this; this.$dialog.confirm({ title: '友情提示', message: '确定切换当前组织?', confirmButtonText: '确定', cancelButtonText: '取消' }) .then(() => { window.location.href = "/UserLogin.aspx"; }) .catch(() => { // on cancel }); }, } })