Browse Source

不同用户操作,用户名不同

360view
bianyaqi 2 years ago
parent
commit
12b0a03a65
  1. 5
      src/components/360View/afterPart/index-copy.vue
  2. 9
      src/components/360View/afterPart/index.vue
  3. 4
      src/components/360View/collection.vue
  4. 2
      src/components/360View/commonForm/eyesVision.vue
  5. 4
      src/components/360View/commonForm/optometryForm-copy.vue
  6. 2
      src/components/360View/commonForm/optometryForm.vue
  7. 4
      src/components/360View/commonForm/threeVision.vue
  8. 5
      src/components/360View/forePart/index-copy.vue
  9. 33
      src/components/360View/forePart/index.vue
  10. 5
      src/components/360View/medicalRecord/outPatientRecord/afterForm.vue
  11. 5
      src/components/360View/medicalRecord/outPatientRecord/foreForm.vue
  12. 2
      src/components/360View/special/index.vue
  13. 2
      src/components/bread-crumb/index.vue
  14. 4
      src/components/patient-search/index.vue
  15. 6
      src/page-subspecialty/router/index.js
  16. 11
      src/page-subspecialty/store/index.js
  17. 9
      src/page-subspecialty/utils/request.js
  18. 2
      src/page-subspecialty/views/modules/formList/InformedConsent.vue
  19. 2
      src/page-subspecialty/views/modules/formList/laserSurgery.vue
  20. 2
      src/page-subspecialty/views/modules/formList/reportForm.vue
  21. 2
      src/page-subspecialty/views/modules/optometryManagement/cornea/patient-add-or-update.vue
  22. 2
      src/page-subspecialty/views/modules/optometryManagement/dioptric/patient-add-or-update.vue
  23. 10
      src/page-subspecialty/views/modules/optometryManagement/seeDoctor/historyRecord.vue
  24. 2
      src/page-subspecialty/views/modules/outpatientManagement/call/patient-add-or-update.vue
  25. 2
      src/page-subspecialty/views/modules/outpatientManagement/treat/patient-add-or-update.vue
  26. 2
      src/page-subspecialty/views/modules/systemManagement/team/edit-password.vue
  27. 4
      src/page-subspecialty/views/modules/systemManagement/team/index.vue
  28. 2
      src/page-subspecialty/views/modules/systemManagement/team/team-add-or-update.vue
  29. 15
      src/page-subspecialty/views/pages/login.vue
  30. 2
      static/js/sign.js

5
src/components/360View/afterPart/index-copy.vue

@ -359,7 +359,7 @@ export default {
created() { created() {
}, },
mounted() { mounted() {
this.userData = JSON.parse(window.localStorage.getItem('qg-userData'))
this.userData = this.$store.state.currentUser
this.doctorId = this.userData.id this.doctorId = this.userData.id
this.queryOptions() this.queryOptions()
this.getforeList() this.getforeList()
@ -611,7 +611,8 @@ export default {
queryTree(type) { queryTree(type) {
const baseUrl = window.SITE_CONFIG['apiURL'] + '/treetag/findTree' const baseUrl = window.SITE_CONFIG['apiURL'] + '/treetag/findTree'
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
axios.defaults.headers.common['token'] = Cookies.get('xa-token') || ''
const employeeId = this.$store.state.currentUser.employeeId
axios.defaults.headers.common['token'] = Cookies.get('xa-token' + employeeId) || ''
axios.get(baseUrl, { axios.get(baseUrl, {
params: { params: {
doctorId: this.doctorId, doctorId: this.doctorId,

9
src/components/360View/afterPart/index.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="afterBox"> <div class="afterBox">
<div class="moveIcon" v-if="!onlyRead">
<div v-if="!onlyRead" class="moveIcon">
<p @click="moveAll(1)"><i style="font-size: 20px" class="el-icon-back" /></p> <p @click="moveAll(1)"><i style="font-size: 20px" class="el-icon-back" /></p>
<p style="margin-top: 5px" @click="moveAll(2)"><i class="el-icon-back" style="transform: rotateY(180deg);font-size: 20px" /></p> <p style="margin-top: 5px" @click="moveAll(2)"><i class="el-icon-back" style="transform: rotateY(180deg);font-size: 20px" /></p>
</div> </div>
@ -30,8 +30,8 @@
</el-tree> </el-tree>
</div> </div>
<after-form <after-form
:only-read="onlyRead"
ref="afterForm" ref="afterForm"
:only-read="onlyRead"
:table-data="tableData" :table-data="tableData"
@selection="selection" @selection="selection"
@moveHandle="moveHandle" @moveHandle="moveHandle"
@ -244,7 +244,7 @@ export default {
created() { created() {
}, },
mounted() { mounted() {
this.userData = JSON.parse(window.localStorage.getItem('qg-userData'))
this.userData = this.$store.state.currentUser
this.doctorId = this.userData.id this.doctorId = this.userData.id
this.getforeList().then(() => { this.getforeList().then(() => {
this.queryOptions() this.queryOptions()
@ -608,7 +608,8 @@ export default {
queryTree(type) { queryTree(type) {
const baseUrl = window.SITE_CONFIG['apiURL'] + '/treetag/findTree' const baseUrl = window.SITE_CONFIG['apiURL'] + '/treetag/findTree'
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
axios.defaults.headers.common['token'] = Cookies.get('xa-token') || ''
const employeeId = this.$store.state.currentUser.employeeId
axios.defaults.headers.common['token'] = Cookies.get('xa-token' + employeeId) || ''
axios.get(baseUrl, { axios.get(baseUrl, {
params: { params: {
doctorId: this.doctorId, doctorId: this.doctorId,

4
src/components/360View/collection.vue

@ -88,7 +88,7 @@ export default {
id: '', id: '',
parentId: 0 parentId: 0
}, },
doctorId: JSON.parse(window.localStorage.getItem('qg-userData')).id,
doctorId: this.$store.state.currentUser.id,
collectData: [], collectData: [],
tableData: [], tableData: [],
defaultProps: { defaultProps: {
@ -179,7 +179,7 @@ export default {
async findTree() { async findTree() {
const { data } = await this.$http.get(`/tree/findTree`, { const { data } = await this.$http.get(`/tree/findTree`, {
params: { params: {
doctorId: JSON.parse(window.localStorage.getItem('qg-userData')).id,
doctorId: this.$store.state.currentUser.id,
platform: this.platform platform: this.platform
} }
}) })

2
src/components/360View/commonForm/eyesVision.vue

@ -832,7 +832,7 @@ export default {
methods: { methods: {
// //
setSign() { setSign() {
const userData = JSON.parse(window.localStorage.getItem('qg-userData'))
const userData = this.$store.state.currentUser
const date = this.$moment().format('YYYY-MM-DD') const date = this.$moment().format('YYYY-MM-DD')
const mzName = window.localStorage.getItem('mzDoctorName') const mzName = window.localStorage.getItem('mzDoctorName')
this.formData.ygsSign = userData.signImgBase this.formData.ygsSign = userData.signImgBase

4
src/components/360View/commonForm/optometryForm-copy.vue

@ -3,8 +3,8 @@
<div v-if="!onlyRead && isPlatform" style="display: flex;justify-content: space-between"> <div v-if="!onlyRead && isPlatform" style="display: flex;justify-content: space-between">
<div> <div>
<el-switch <el-switch
disabled
v-model="connectFlag" v-model="connectFlag"
disabled
active-color="#13ce66" active-color="#13ce66"
inactive-color="#ff4949" inactive-color="#ff4949"
active-text="已连接" active-text="已连接"
@ -578,7 +578,7 @@ export default {
methods: { methods: {
// //
setSign() { setSign() {
const userData = JSON.parse(window.localStorage.getItem('qg-userData'))
const userData = this.$store.state.currentUser
const date = this.$moment().format('YYYY-MM-DD') const date = this.$moment().format('YYYY-MM-DD')
const mzName = window.localStorage.getItem('mzDoctorName') const mzName = window.localStorage.getItem('mzDoctorName')
this.dataForm.tongk = '正常瞳孔' this.dataForm.tongk = '正常瞳孔'

2
src/components/360View/commonForm/optometryForm.vue

@ -546,7 +546,7 @@ export default {
}, },
methods: { methods: {
setSign() { setSign() {
const userData = JSON.parse(window.localStorage.getItem('qg-userData'))
const userData = this.$store.state.currentUser
const date = this.$moment().format('YYYY-MM-DD') const date = this.$moment().format('YYYY-MM-DD')
const mzName = window.localStorage.getItem('mzDoctorName') const mzName = window.localStorage.getItem('mzDoctorName')
this.dataForm.optometrist = userData.signImgBase this.dataForm.optometrist = userData.signImgBase

4
src/components/360View/commonForm/threeVision.vue

@ -1208,7 +1208,7 @@ export default {
if (input === '') { if (input === '') {
this.dataForm[item] = '' this.dataForm[item] = ''
} else { } else {
this.dataForm[item] = this.dataForm[item] ? this.dataForm[item] + input : input
this.dataForm[item] = this.dataForm[item] ? this.dataForm[item] + input : input
} }
}, },
handleZg() { handleZg() {
@ -1243,7 +1243,7 @@ export default {
} }
}, },
setSign() { setSign() {
const userData = JSON.parse(window.localStorage.getItem('qg-userData'))
const userData = this.$store.state.currentUser
const date = this.$moment().format('YYYY-MM-DD') const date = this.$moment().format('YYYY-MM-DD')
this.dataForm.sgsSign = userData.signImgBase this.dataForm.sgsSign = userData.signImgBase
this.dataForm.riQi = date this.dataForm.riQi = date

5
src/components/360View/forePart/index-copy.vue

@ -753,7 +753,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.userData = JSON.parse(window.localStorage.getItem('qg-userData'))
this.userData = this.$store.state.currentUser
this.doctorId = this.userData.id this.doctorId = this.userData.id
this.queryOptions() this.queryOptions()
this.getforeList() this.getforeList()
@ -1008,7 +1008,8 @@ export default {
queryTree(type) { queryTree(type) {
const baseUrl = window.SITE_CONFIG['apiURL'] + '/treetag/findTree' const baseUrl = window.SITE_CONFIG['apiURL'] + '/treetag/findTree'
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
axios.defaults.headers.common['token'] = Cookies.get('xa-token') || ''
const employeeId = this.$store.state.currentUser.employeeId
axios.defaults.headers.common['token'] = Cookies.get('xa-token' + employeeId) || ''
axios.get(baseUrl, { axios.get(baseUrl, {
params: { params: {
doctorId: this.doctorId, doctorId: this.doctorId,

33
src/components/360View/forePart/index.vue

@ -81,7 +81,19 @@
/> />
</span> </span>
<span v-if="scope.row.sort === 99"> <span v-if="scope.row.sort === 99">
<treeSelect v-model="scope.row.od" :only-read="onlyRead" :options="scope.row.data" :props="treeProps" :multiple="true" :filterable="true" :check-strictly="true" :default-expand-all="true" @handleNode="handleNode(scope.$index,'od', $event)" @add="addTree(scope.row, $event)" @remove="removeTree" />
<treeSelect
v-model="scope.row.od"
:only-read="onlyRead"
:options="scope.row.data"
:props="treeProps"
:multiple="true"
:filterable="true"
:check-strictly="true"
:default-expand-all="true"
@handleNode="handleNode(scope.$index,'od', $event)"
@add="addTree(scope.row, $event)"
@remove="removeTree"
/>
</span> </span>
<span v-if="!scope.row.sort && !scope.row.id">{{ scope.row.name }}</span> <span v-if="!scope.row.sort && !scope.row.id">{{ scope.row.name }}</span>
</div> </div>
@ -138,7 +150,19 @@
/> />
</span> </span>
<span v-if="scope.row.sort === 99"> <span v-if="scope.row.sort === 99">
<treeSelect v-model="scope.row.os" :only-read="onlyRead" :options="scope.row.data" :props="treeProps" :multiple="true" :filterable="true" :check-strictly="true" :default-expand-all="true" @handleNode="handleNode(scope.$index,'os', $event)" @add="addTree(scope.row, $event)" @remove="removeTree" />
<treeSelect
v-model="scope.row.os"
:only-read="onlyRead"
:options="scope.row.data"
:props="treeProps"
:multiple="true"
:filterable="true"
:check-strictly="true"
:default-expand-all="true"
@handleNode="handleNode(scope.$index,'os', $event)"
@add="addTree(scope.row, $event)"
@remove="removeTree"
/>
</span> </span>
<span v-if="!scope.row.sort && !scope.row.id">{{ scope.row.name }}</span> <span v-if="!scope.row.sort && !scope.row.id">{{ scope.row.name }}</span>
</div> </div>
@ -385,7 +409,7 @@ export default {
created() { created() {
}, },
mounted() { mounted() {
this.userData = JSON.parse(window.localStorage.getItem('qg-userData'))
this.userData = this.$store.state.currentUser
this.doctorId = this.userData.id this.doctorId = this.userData.id
this.getforeList().then(() => { this.getforeList().then(() => {
this.queryOptions() this.queryOptions()
@ -787,7 +811,8 @@ export default {
queryTree(type) { queryTree(type) {
const baseUrl = window.SITE_CONFIG['apiURL'] + '/treetag/findTree' const baseUrl = window.SITE_CONFIG['apiURL'] + '/treetag/findTree'
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
axios.defaults.headers.common['token'] = Cookies.get('xa-token') || ''
const employeeId = this.$store.state.currentUser.employeeId
axios.defaults.headers.common['token'] = Cookies.get('xa-token' + employeeId) || ''
axios.get(baseUrl, { axios.get(baseUrl, {
params: { params: {
doctorId: this.doctorId, doctorId: this.doctorId,

5
src/components/360View/medicalRecord/outPatientRecord/afterForm.vue

@ -198,7 +198,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.userData = JSON.parse(window.localStorage.getItem('qg-userData'))
this.userData = this.$store.state.currentUser
this.doctorId = this.userData.id this.doctorId = this.userData.id
this.queryOptions() this.queryOptions()
}, },
@ -207,7 +207,8 @@ export default {
queryTree(type) { queryTree(type) {
const baseUrl = window.SITE_CONFIG['apiURL'] + '/treetag/findTree' const baseUrl = window.SITE_CONFIG['apiURL'] + '/treetag/findTree'
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
axios.defaults.headers.common['token'] = Cookies.get('xa-token') || ''
const employeeId = this.$store.state.currentUser.employeeId
axios.defaults.headers.common['token'] = Cookies.get('xa-token' + employeeId) || ''
axios.get(baseUrl, { axios.get(baseUrl, {
params: { params: {
doctorId: this.doctorId, doctorId: this.doctorId,

5
src/components/360View/medicalRecord/outPatientRecord/foreForm.vue

@ -557,7 +557,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.userData = JSON.parse(window.localStorage.getItem('qg-userData'))
this.userData = this.$store.state.currentUser
this.doctorId = this.userData.id this.doctorId = this.userData.id
this.queryOptions() this.queryOptions()
}, },
@ -569,7 +569,8 @@ export default {
queryTree(type) { queryTree(type) {
const baseUrl = window.SITE_CONFIG['apiURL'] + '/treetag/findTree' const baseUrl = window.SITE_CONFIG['apiURL'] + '/treetag/findTree'
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
axios.defaults.headers.common['token'] = Cookies.get('xa-token') || ''
const employeeId = this.$store.state.currentUser.employeeId
axios.defaults.headers.common['token'] = Cookies.get('xa-token' + employeeId) || ''
axios.get(baseUrl, { axios.get(baseUrl, {
params: { params: {
doctorId: this.doctorId, doctorId: this.doctorId,

2
src/components/360View/special/index.vue

@ -123,7 +123,7 @@ export default {
} }
}, },
mounted() { mounted() {
const user = JSON.parse(window.localStorage.getItem('qg-userData'))
const user = this.$store.state.currentUser
this.employeeId = user.employeeId this.employeeId = user.employeeId
this.getPatientData() this.getPatientData()
this.getSpecialItem() this.getSpecialItem()

2
src/components/bread-crumb/index.vue

@ -27,7 +27,7 @@ export default {
} }
}, },
created() { created() {
this.userData = JSON.parse(window.localStorage.getItem('qg-userData'))
this.userData = this.$store.state.currentUser
this.getBreadcrumb() this.getBreadcrumb()
}, },
methods: { methods: {

4
src/components/patient-search/index.vue

@ -49,8 +49,8 @@
:data-list-loading="dataListLoading" :data-list-loading="dataListLoading"
:data-list="dataList" :data-list="dataList"
:project-id="projectId" :project-id="projectId"
@viewDetail="viewDetail"
v-bind="$attrs" v-bind="$attrs"
@viewDetail="viewDetail"
v-on="$listeners" v-on="$listeners"
/> />
<!-- 分页 --> <!-- 分页 -->
@ -105,7 +105,7 @@ export default {
return { return {
uploadUrl: window.SITE_CONFIG['apiURL'] + '/patient/data/searchByExcel', uploadUrl: window.SITE_CONFIG['apiURL'] + '/patient/data/searchByExcel',
headers: { headers: {
token: Cookies.get('xa-token')
token: Cookies.get('xa-token' + this.$store.state.currentUser.employeeId)
}, },
dataForm: {}, dataForm: {},
keyWord: '', keyWord: '',

6
src/page-subspecialty/router/index.js

@ -149,7 +149,6 @@ router.beforeEach((to, from, next) => {
next() next()
} else if (to.name === '360view' && to.query.doctorId) { } else if (to.name === '360view' && to.query.doctorId) {
loginByDocId(to.query.doctorId, next, to.fullPath) loginByDocId(to.query.doctorId, next, to.fullPath)
} else { } else {
// 获取字典列表, 添加并全局变量保存 // 获取字典列表, 添加并全局变量保存
// http.get('/sys/dict/type/all').then(({ data: res }) => { // http.get('/sys/dict/type/all').then(({ data: res }) => {
@ -227,8 +226,9 @@ function loginByDocId(doctorId, next) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
console.log(res) console.log(res)
Cookies.set('xa-token', res.data.token)
window.localStorage.setItem('qg-userData', JSON.stringify(res.data.currentUser))
const employeeId = res.data.currentUser.employeeId
Cookies.set('xa-token' + employeeId, res.data.token)
window.localStorage.setItem('qg-userData' + employeeId, JSON.stringify(res.data.currentUser))
getNavList(next) getNavList(next)
muneList(next) muneList(next)

11
src/page-subspecialty/store/index.js

@ -28,7 +28,8 @@ export default new Vuex.Store({
title: 'home' title: 'home'
} }
], ],
defauleActiveIndex: ''
defauleActiveIndex: '',
currentUser: null
}, },
modules: { modules: {
user, user,
@ -48,6 +49,14 @@ export default new Vuex.Store({
activeIndexFun(state, id) { activeIndexFun(state, id) {
state.defauleActiveIndex = id state.defauleActiveIndex = id
window.sessionStorage.setItem('defauleActiveIndex', id) window.sessionStorage.setItem('defauleActiveIndex', id)
},
setCurUser(state, value) {
state.currentUser = value
}
},
actions: {
acSetUser(context, value) {
context.commit('setCurUser', value)
} }
} }
}) })

9
src/page-subspecialty/utils/request.js

@ -9,7 +9,7 @@ import store from '../store'
*/ */
export function clearLoginInfo() { export function clearLoginInfo() {
store.commit('resetStore') store.commit('resetStore')
Cookies.remove('xa-token')
Cookies.remove('xa-token' + store.state.currentUser.employeeId)
window.localStorage.clear() window.localStorage.clear()
window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] = false window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] = false
} }
@ -25,7 +25,12 @@ const http = axios.create({
*/ */
http.interceptors.request.use(config => { http.interceptors.request.use(config => {
config.headers['Accept-Language'] = Cookies.get('language') || 'zh-CN' config.headers['Accept-Language'] = Cookies.get('language') || 'zh-CN'
config.headers['token'] = Cookies.get('xa-token') || ''
const employeeId = store.state.currentUser && store.state.currentUser.employeeId
if (employeeId) {
config.headers['token'] = Cookies.get('xa-token' + employeeId) || ''
} else {
config.headers['token'] = Cookies.get('xa-token') || ''
}
// 默认参数 // 默认参数
var defaults = {} var defaults = {}
// 防止缓存,GET请求默认带_t参数 // 防止缓存,GET请求默认带_t参数

2
src/page-subspecialty/views/modules/formList/InformedConsent.vue

@ -372,7 +372,7 @@ export default {
this.confirmData.patientName = this.patientDetail.patientName this.confirmData.patientName = this.patientDetail.patientName
this.confirmData.patientAge = this.patientDetail.patientAge this.confirmData.patientAge = this.patientDetail.patientAge
this.confirmData.patientGender = this.patientDetail.patientSex this.confirmData.patientGender = this.patientDetail.patientSex
const userData = JSON.parse(window.localStorage.getItem('qg-userData'))
const userData = this.$store.state.currentUser
this.confirmData.operationSign = userData.signImgBase this.confirmData.operationSign = userData.signImgBase
this.confirmData.operationDate = this.$moment().format('YYYY-MM-DD HH:mm:ss') this.confirmData.operationDate = this.$moment().format('YYYY-MM-DD HH:mm:ss')
this.confirmData.patientDate = this.$moment().format('YYYY-MM-DD HH:mm:ss') this.confirmData.patientDate = this.$moment().format('YYYY-MM-DD HH:mm:ss')

2
src/page-subspecialty/views/modules/formList/laserSurgery.vue

@ -298,7 +298,7 @@ export default {
this.confirmData.jgzlSyt = odOrOs.os this.confirmData.jgzlSyt = odOrOs.os
} }
} }
const userData = JSON.parse(window.localStorage.getItem('qg-userData'))
const userData = this.$store.state.currentUser
this.confirmData.operateSign = userData.signImgBase this.confirmData.operateSign = userData.signImgBase
}) })
}, },

2
src/page-subspecialty/views/modules/formList/reportForm.vue

@ -144,7 +144,7 @@ export default {
created() { created() {
this.origin = JSON.parse(JSON.stringify(this.formData)) this.origin = JSON.parse(JSON.stringify(this.formData))
this.confirmData.patientName = this.patientDetail.patientName this.confirmData.patientName = this.patientDetail.patientName
const userData = JSON.parse(window.localStorage.getItem('qg-userData'))
const userData = this.$store.state.currentUser
this.confirmData.operator = userData.signImgBase this.confirmData.operator = userData.signImgBase
this.getReportInfo() this.getReportInfo()
}, },

2
src/page-subspecialty/views/modules/optometryManagement/cornea/patient-add-or-update.vue

@ -213,7 +213,7 @@ export default {
} else { } else {
this.mzDoctorList = data.data.data this.mzDoctorList = data.data.data
} }
// this.dataForm.sgDoctorId = JSON.parse(window.localStorage.getItem('qg-userData')).employeeId
// this.dataForm.sgDoctorId = this.$store.state.currentUser.employeeId
}) })
}, },
// //

2
src/page-subspecialty/views/modules/optometryManagement/dioptric/patient-add-or-update.vue

@ -213,7 +213,7 @@ export default {
} else { } else {
this.mzDoctorList = data.data.data this.mzDoctorList = data.data.data
} }
this.dataForm.sgDoctorId = JSON.parse(window.localStorage.getItem('qg-userData')).employeeId
this.dataForm.sgDoctorId = this.$store.state.currentUser.employeeId
}) })
}, },
// //

10
src/page-subspecialty/views/modules/optometryManagement/seeDoctor/historyRecord.vue

@ -19,19 +19,19 @@
</div> </div>
</div> </div>
<div class="history-content"> <div class="history-content">
<div class="lineTime" v-if="recordList.length">
<div v-if="recordList.length" class="lineTime">
<div v-for="(item,index) in recordList" :key="index" style="margin-bottom: 24px;" @click="selectRecord(item,index)"> <div v-for="(item,index) in recordList" :key="index" style="margin-bottom: 24px;" @click="selectRecord(item,index)">
<span class="circle" :class="[curIdx == index ? 'active' : '']"> <span class="circle" :class="[curIdx == index ? 'active' : '']">
<span class="point" :class="[curIdx == index ? 'selBg' : '']" /> <span class="point" :class="[curIdx == index ? 'selBg' : '']" />
</span> </span>
<span class="lineText" :class="[curIdx == index ? 'selText' : '']">{{ item.uploadTime }}</span> <span class="lineText" :class="[curIdx == index ? 'selText' : '']">{{ item.uploadTime }}</span>
<span :class="[curIdx == index ? 'arrow' : '']"></span>
<span :class="[curIdx == index ? 'arrow' : '']" />
</div> </div>
</div> </div>
<div class="showContent" v-if="recordList.length">
<div v-if="recordList.length" class="showContent">
<iframe :src="filePath + '#view=FitH,top&pagemode=thumbs'" frameborder="0" style="width: 100%; height: 100%" /> <iframe :src="filePath + '#view=FitH,top&pagemode=thumbs'" frameborder="0" style="width: 100%; height: 100%" />
</div> </div>
<div class="noneData" v-if="!recordList.length">
<div v-if="!recordList.length" class="noneData">
<img src="@/assets/img/nodata.png" alt=""> <img src="@/assets/img/nodata.png" alt="">
</div> </div>
</div> </div>
@ -54,7 +54,7 @@ export default {
patientId: this.patientId patientId: this.patientId
}, },
headers: { headers: {
token: Cookies.get('xa-token')
token: Cookies.get('xa-token' + this.$store.state.currentUser.employeeId)
}, },
filePath: '', filePath: '',
recordList: [], recordList: [],

2
src/page-subspecialty/views/modules/outpatientManagement/call/patient-add-or-update.vue

@ -211,7 +211,7 @@ export default {
} else { } else {
this.mzDoctorList = data.data.data this.mzDoctorList = data.data.data
} }
this.dataForm.mzDoctorId = JSON.parse(window.localStorage.getItem('qg-userData')).employeeId
this.dataForm.mzDoctorId = this.$store.state.currentUser.employeeId
}) })
}, },
// //

2
src/page-subspecialty/views/modules/outpatientManagement/treat/patient-add-or-update.vue

@ -209,7 +209,7 @@ export default {
} else { } else {
this.mzDoctorList = data.data.data this.mzDoctorList = data.data.data
} }
this.dataForm.mzDoctorId = JSON.parse(window.localStorage.getItem('qg-userData')).employeeId
this.dataForm.mzDoctorId = this.$store.state.currentUser.employeeId
}) })
}, },
// //

2
src/page-subspecialty/views/modules/systemManagement/team/edit-password.vue

@ -66,7 +66,7 @@ export default {
methods: { methods: {
init() { init() {
this.visible = true this.visible = true
this.loginInfo = JSON.parse(window.localStorage.getItem('qg-userData'))
this.loginInfo = this.$store.state.currentUser
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.dataForm.resetFields() // this.$refs.dataForm.resetFields() //
}) })

4
src/page-subspecialty/views/modules/systemManagement/team/index.vue

@ -30,7 +30,7 @@
<span>{{ scope.row.gender === 1 ? '女' :'男' }}</span> <span>{{ scope.row.gender === 1 ? '女' :'男' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column prop="centreName" label="所属医院" header-align="center" align="center" width="200" />-->
<!-- <el-table-column prop="centreName" label="所属医院" header-align="center" align="center" width="200" />-->
<el-table-column prop="roleList" label="权限" header-align="center" align="center" width="250"> <el-table-column prop="roleList" label="权限" header-align="center" align="center" width="250">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-for="(item,index) in scope.row.roleList" :key="index"> <span v-for="(item,index) in scope.row.roleList" :key="index">
@ -105,7 +105,7 @@ export default {
created() { created() {
// //
this.getRoleName() this.getRoleName()
this.qgUserData = JSON.parse(window.localStorage.getItem('qg-userData'))
this.qgUserData = this.$store.state.currentUser
}, },
methods: { methods: {
// //

2
src/page-subspecialty/views/modules/systemManagement/team/team-add-or-update.vue

@ -204,7 +204,7 @@ export default {
// //
// this.getCentreList() // this.getCentreList()
// this.getCentreJobList() // this.getCentreJobList()
this.loginInfo = JSON.parse(window.localStorage.getItem('qg-userData'))
this.loginInfo = this.$store.state.currentUser
this.$refs.dataForm.resetFields() // this.$refs.dataForm.resetFields() //
if (this.dataForm.id) { if (this.dataForm.id) {
this.getInfo() this.getInfo()

15
src/page-subspecialty/views/pages/login.vue

@ -20,11 +20,11 @@
> >
<!-- 用户名 --> <!-- 用户名 -->
<el-form-item prop="account"> <el-form-item prop="account">
<el-input v-model="dataForm.account" placeholder="请输入工号" @keyup.enter.native="submitNext"/>
<el-input v-model="dataForm.account" placeholder="请输入工号" @keyup.enter.native="submitNext" />
</el-form-item> </el-form-item>
<!-- 密码 --> <!-- 密码 -->
<el-form-item prop="password"> <el-form-item prop="password">
<el-input ref="passWord" v-model="dataForm.password" type="password" placeholder="请输入密码" @keyup.enter.native="dataFormSubmitHandle()"/>
<el-input ref="passWord" v-model="dataForm.password" type="password" placeholder="请输入密码" @keyup.enter.native="dataFormSubmitHandle()" />
</el-form-item> </el-form-item>
<!-- <el-form-item prop="captcha">--> <!-- <el-form-item prop="captcha">-->
<!-- <el-row :gutter="10">--> <!-- <el-row :gutter="10">-->
@ -53,6 +53,7 @@ import Cookies from 'js-cookie'
import debounce from 'lodash/debounce' import debounce from 'lodash/debounce'
import { messages } from '@/i18n' import { messages } from '@/i18n'
import { getUUID } from '@/utils' import { getUUID } from '@/utils'
import { mapActions, MapActions } from 'vuex'
export default { export default {
data() { data() {
return { return {
@ -85,6 +86,7 @@ export default {
// this.getCaptcha() // this.getCaptcha()
}, },
methods: { methods: {
...mapActions(['acSetUser']),
submitNext() { submitNext() {
this.$refs.passWord.focus() this.$refs.passWord.focus()
}, },
@ -105,8 +107,13 @@ export default {
this.getCaptcha() this.getCaptcha()
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
Cookies.set('xa-token', res.data.token)
window.localStorage.setItem('qg-userData', JSON.stringify(res.data.currentUser))
if (!res.data.currentUser) {
return
}
this.acSetUser(res.data.currentUser)
const employeeId = this.$store.state.currentUser.employeeId
Cookies.set('xa-token' + employeeId, res.data.token)
// window.localStorage.setItem('qg-userData', JSON.stringify(res.data.currentUser))
this.$router.push({ name: 'outpatientManagement-call' }) this.$router.push({ name: 'outpatientManagement-call' })
}).catch(() => { }) }).catch(() => { })
}) })

2
static/js/sign.js

@ -170,7 +170,7 @@ function initCRF() {
function setAutoImport() { function setAutoImport() {
console.log(123); console.log(123);
const nodeIdName = JSON.parse(window.sessionStorage.getItem('sign-nodeIdName')) const nodeIdName = JSON.parse(window.sessionStorage.getItem('sign-nodeIdName'))
const img_base64 = JSON.parse(window.localStorage.getItem('qg-userData')).signImgBase
const img_base64 = this.$store.state.currentUser.signImgBase
// 调取接口 // 调取接口
let img = `<img id="${nodeIdName.name}-img" class="shouqian-img" style="width:60px;margin: 0 auto;vertical-align: middle;" src="${img_base64}" ></img>` let img = `<img id="${nodeIdName.name}-img" class="shouqian-img" style="width:60px;margin: 0 auto;vertical-align: middle;" src="${img_base64}" ></img>`
// 动态插入img // 动态插入img

Loading…
Cancel
Save