Commit 8bd226ba authored by 罗成兵's avatar 罗成兵

分配记录

parent d9930d8b
NODE_ENV = dev
VUE_APP_BASE_URL = https://beta-ysservice.yiboshi.com
VUE_APP_BASE_URL1 = http://127.0.0.1:8082
VUE_APP_BASE_URL2 = https://beta-ysservice.yiboshi.com
VUE_APP_BASE_URL = http://127.0.0.1:8083
VUE_APP_BASE_PATH = https://beta-yac.yiboshi.com
VUE_APP_KEY_WORD = 'XwKsGlMcdPMEhR1B'
NODE_ENV = prod
VUE_APP_BASE_URL1 = https://beta-ysservice.yiboshi.com
VUE_APP_BASE_URL = https://ys-service.yiboshi.com
VUE_APP_BASE_URL= https://beta-ysservice.yiboshi.com
VUE_APP_BASE_URL2 = https://ys-service.yiboshi.com
VUE_APP_BASE_PATH = https://beta-yac.yiboshi.com
VUE_APP_KEY_WORD = 'XwKsGlMcdPMEhR1B'
NODE_ENV = yueyang
VUE_APP_BASE_URL1 = https://beta-ysservice.yiboshi.com
VUE_APP_BASE_URL =https://yyys-service.yiboshi.com
VUE_APP_BASE_PATH = https://beta-yac.yiboshi.com
VUE_APP_KEY_WORD = 'XwKsGlMcdPMEhR1B'
......@@ -5,7 +5,8 @@
"scripts": {
"serve": "vue-cli-service serve --mode dev",
"build:test": "vue-cli-service build --mode test",
"build:prod": "vue-cli-service build --mode production --report"
"build:prod": "vue-cli-service build --mode production --report",
"build:yueyang": "vue-cli-service build --mode yueyang"
},
"dependencies": {
"ant-design-vue": "^1.6.4",
......@@ -13,6 +14,7 @@
"compression-webpack-plugin": "5.0.0",
"core-js": "^3.6.5",
"http-parser-js": "^0.5.3",
"jsonp": "^0.2.1",
"moment": "^2.29.1",
"moment-locales-webpack-plugin": "^1.2.0",
"nprogress": "^0.2.0",
......@@ -21,8 +23,7 @@
"vue-qr": "^2.3.0",
"vue-router": "^3.2.0",
"vue-ueditor-wrap": "^2.4.4",
"vuex": "^3.4.0",
"jsonp": "^0.2.1"
"vuex": "^3.4.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
......
......@@ -54,7 +54,7 @@
},
created() {
//获取妇幼权限和登录基本信息
// document.cookie = 'bGNnd3lwdF9hdA=5e7516d7-889b-4b19-9490-e9ce576daba2;'//昆明市
//document.cookie = 'bGNnd3lwdF9hdA=0e9fa469-961f-468d-bddd-23c7696f030e;'//昆明市
// document.cookie = 'bGNnd3lwdF9hdA=' + sessionStorage.getItem("loginToken") + ';'//云南省
let cookieToken = getCookie('bGNnd3lwdF9hdA');
console.log('tokenInfo',cookieToken)
......@@ -66,6 +66,7 @@
window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo));
window.sessionStorage.setItem('allEnum', JSON.stringify(data.enumValueList));
window.sessionStorage.setItem('unitInfo', JSON.stringify(data.unitInfo));
window.sessionStorage.setItem('treeNode', JSON.stringify(data.treeNode));
this.setInitMenuInfo()
this.showChildren = true
})
......
......@@ -13,12 +13,16 @@
<!-- <span v-if="item.frontActionUrl == '/Home/distributionWarehousing'">{{item.name}}<span>(0)</span></span>-->
<!-- <span v-if="item.frontActionUrl == '/Home/folviteApply'">{{item.name}}<span>(0)</span></span>-->
</span>
<span>{{item.name}}</span>
</a-tab-pane>
<a-tab-pane :key="111">
<span slot="tab">
<span>{{unitInfo.unitName}}</span>
</span>
</a-tab-pane>
</a-tabs>
<router-view></router-view>
</div>
</a-layout-content>
<div style="clear: both"></div>
</a-layout>
......@@ -50,6 +54,7 @@
activeKey: '',
showChildren: false,
menuTest,
unitInfo: {}
}
},
created() {
......@@ -60,6 +65,7 @@
if (cookieToken) {
let par = {}
this.$api.fyManage.fetchFYLoginUser(par).then(({data}) => {
this.unitInfo = data.unitInfo;
window.sessionStorage.setItem('menuList', JSON.stringify(this.menuList));
window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo));
window.sessionStorage.setItem('unitInfo', JSON.stringify(data.unitInfo));
......
<!--
<template>
<div class="login_container">
<div class="login_box">
......@@ -9,9 +9,9 @@
</div>
<a-form-model :model="formData" :rules="formRules" class="login_form" ref="formRef">
<a-form-model-item prop="username">
&lt;!&ndash; <a-input placeholder="请输入用户名" v-model="formData.username" size="large" @keyup.enter="login">&ndash;&gt;
&lt;!&ndash; <a-icon slot="prefix" type="user"/>&ndash;&gt;
&lt;!&ndash; </a-input>&ndash;&gt;
<!-- <a-input placeholder="请输入用户名" v-model="formData.username" size="large" @keyup.enter="login">-->
<!-- <a-icon slot="prefix" type="user"/>-->
<!-- </a-input>-->
<a-select v-model="formData.username" size="large" @change="userChange">
<a-select-option v-for="(i,index) in userList" :key="i.userName" :value="index">
{{i.unitName+"("+i.userName+")"}}
......@@ -70,10 +70,10 @@
created() {
let unitNames = ["云南省妇幼保健院","云南省妇幼保健院(供应商管理)","昆明市妇幼保健院", "五华区妇幼保健院", "五华区普吉大普吉社区卫生服务中心",
"五华区普吉新村社区卫生服务站", "五华区普吉林家院社区卫生服务站", "五华区大观社区卫生服务中心", "五华区护国南通街社区卫生服务站",
"五华区大观新闻里社区卫生服务中心"];
let userNames = ["3163915418", "3104754897","3458022605", "4040050358", "0892676849", "7381485204", "4681975615",
"0580382354", "2409311755", "7531945226"];
let passwords = ["ynfy2021","075546","078730", "073657", "07473X", "072179", "074991", "076479", "079813", "076831"];
"五华区大观新闻里社区卫生服务中心","医博士妇幼保健院"];
let userNames = ["3163915418", "3104754897","3458022605", "4040050358", "0892676849", "7381485204", "4681975615",-
"0580382354", "2409311755", "7531945226","330781198509074950"];
let passwords = ["ynfy2021","075546","078730", "073657", "07473X", "072179", "074991", "076479", "079813", "076831","ybs1234"];
unitNames.forEach((x, index) => {
this.userList.push({unitName: x, userName: userNames[index], password: passwords[index]});
})
......@@ -157,5 +157,5 @@
}
}
</style>
&ndash;&gt;
-->
-->
......@@ -200,6 +200,7 @@
}
},
created() {
this.unitInfo = JSON.parse(sessionStorage.getItem("unitInfo"));
this.routerParams = this.$route.query
if (this.routerParams.menuId) {
window.sessionStorage.setItem('menuId', this.routerParams.menuId)
......@@ -213,7 +214,7 @@
getEnumListInfo() {
if (window.sessionStorage.getItem('allEnum')) {
this.brandList = getEnumByFlag("folacin_stock_record_brand_id");
this.unitInfo = JSON.parse(sessionStorage.getItem("unitInfo"))
this.unitInfo = JSON.parse(sessionStorage.getItem("unitInfo"));
} else {
let par = {
menuId: this.menuId
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment