【用户管理】新建账号时,如果医院设置为联网,则隐藏初始化密码
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
073abd2efa
commit
b60d8a6797
13
src/App.vue
13
src/App.vue
|
@ -85,6 +85,7 @@ import {
|
|||
} from '@/api/dictionary/dictionary'
|
||||
import Vue from 'vue'
|
||||
import i18n from './lang'
|
||||
import { getHospital } from '@/api/hospital.js'
|
||||
export default {
|
||||
name: 'App',
|
||||
data() {
|
||||
|
@ -102,6 +103,7 @@ export default {
|
|||
this.show = process.env.VUE_APP_OSS_PATH === "/hir_test/dist";
|
||||
// this.show = false;
|
||||
Vue.prototype.$openI18n = this.openI18n
|
||||
this.getInfo()
|
||||
},
|
||||
methods: {
|
||||
// 排序
|
||||
|
@ -249,6 +251,17 @@ export default {
|
|||
this.tableData = Object.assign([], this.arr)
|
||||
}
|
||||
},
|
||||
// 获取医院信息
|
||||
async getInfo() {
|
||||
try {
|
||||
let res = await getHospital()
|
||||
if (res.IsSuccess) {
|
||||
Vue.prototype.$IsCanConnectInternet = res.Result.IsCanConnectInternet
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
</el-button>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="">
|
||||
<el-form-item label="" v-if="!$IsCanConnectInternet">
|
||||
<span>{{ $t('system:userlist:tip:defaultPassword') }}</span>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="type == 1" :label="$t('system:userlist:table:Disable')">
|
||||
|
|
Loading…
Reference in New Issue