Merge branch 'master' of http://192.168.218.113:9001/r/lims-before
| | |
| | | ENV = 'development' |
| | | |
| | | # base api |
| | | VUE_APP_BASE_API = 'http://192.168.218.96:1234/' |
| | | VUE_APP_BASE_API = 'http://114.132.189.42:1234/' |
| | |
| | | |
| | | # base api |
| | | # VUE_APP_BASE_API = '/prod-api' |
| | | VUE_APP_BASE_API = 'http://localhost:1234/' |
| | | VUE_APP_BASE_API = 'http://114.132.189.42:1234/' |
| | | |
| | |
| | | // https://github.com/michael-ciniawsky/postcss-load-config |
| | | |
| | | // https://github.com/michael-ciniawsky/postcss-load-config |
| | | const path = require('path'); |
| | | module.exports = { |
| | | 'plugins': { |
| | | // to edit target browsers: use "browserslist" field in package.json |
| | |
| | | return JSON.parse(JSON.stringify(val)) |
| | | } |
| | | |
| | | Vue.prototype.vueIp = "http://localhost:8080/" |
| | | Vue.prototype.vueIp = "http://114.132.189.42:8080" |
| | | |
| | | // set ElementUI lang to EN |
| | | Vue.use(ElementUI, { locale }) |
| | |
| | | // import 'nprogress/nprogress.css' // progress bar style |
| | | // import { getToken } from '@/utils/auth' // get token from cookie |
| | | // import getPageTitle from '@/utils/get-page-title' |
| | | |
| | | // |
| | | // NProgress.configure({ showSpinner: false }) // NProgress Configuration |
| | | |
| | | // |
| | | // const whiteList = ['/login'] // no redirect whitelist |
| | | |
| | | // |
| | | // router.beforeEach(async(to, from, next) => { |
| | | // // start progress bar |
| | | // NProgress.start() |
| | | |
| | | // |
| | | // // set page title |
| | | // document.title = getPageTitle(to.meta.title) |
| | | |
| | | // |
| | | // // determine whether the user has logged in |
| | | // const hasToken = getToken() |
| | | |
| | | // |
| | | // if (hasToken) { |
| | | // if (to.path === '/login') { |
| | | // // if is logged in, redirect to the home page |
| | |
| | | // try { |
| | | // // get user info |
| | | // await store.dispatch('user/getInfo') |
| | | |
| | | // |
| | | // next() |
| | | // } catch (error) { |
| | | // // remove token and go to login page to re-login |
| | |
| | | // } |
| | | // } else { |
| | | // /* has no token*/ |
| | | |
| | | // |
| | | // if (whiteList.indexOf(to.path) !== -1) { |
| | | // // in the free login whitelist, go directly |
| | | // next() |
| | |
| | | // } |
| | | // } |
| | | // }) |
| | | |
| | | // |
| | | // router.afterEach(() => { |
| | | // // finish progress bar |
| | | // NProgress.done() |
| | |
| | | hidden: true |
| | | }, |
| | | { |
| | | path: '/addCommision', |
| | | component: () => import('@/views/inspectionManagement/commissionInspection/addCommision'), |
| | | hidden: true |
| | | }, |
| | | { |
| | | path: '/', |
| | | component: Layout, |
| | | redirect: '/home', |
| | |
| | | Routees = baseRouter |
| | | } |
| | | return new Router({ |
| | | mode: 'history', // require service support |
| | | // mode: 'history', // require service support |
| | | scrollBehavior: () => ({ y: 0 }), |
| | | routes: Routees |
| | | }) |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form> |
| | | <el-popover placement="left" width="400" trigger="click"> |
| | | <el-popover placement="left" width="410" trigger="click"> |
| | | <div class="vue_qr_div"> |
| | | <el-row> |
| | | <el-col> |
| | |
| | | selectViewUUID({ |
| | | day: this.day |
| | | }).then(res => { |
| | | this.view = `${this.vueIp}addCommision/${res.data.id}` |
| | | this.view = `${this.vueIp}/#/addCommision/${res.data.id}` |
| | | this.viewId = res.data.id |
| | | this.viewTime2 = res.data.time |
| | | }) |
| | |
| | | day: this.viewTime == null ? 1 : this.viewTime |
| | | }).then(res => { |
| | | this.viewId = res.data |
| | | this.view = `${this.vueIp}addCommision/${res.data.id}` |
| | | this.view = `${this.vueIp}/#/addCommision/${res.data.id}` |
| | | this.viewDia = false |
| | | this.$message.success('链接已生成,点击复制按钮进行复制') |
| | | }) |
| | |
| | | this.$message.success("登录成功") |
| | | this.btnload = false |
| | | this.$router.push({ path: this.redirect || '/' }) |
| | | // this.$router.push('/') |
| | | }).catch((error) => { |
| | | this.$message.error(error.message) |
| | | this.btnload = false |