【用户管理】新建账号时,如果医院设置为联网,则隐藏初始化密码
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-09-11 10:01:12 +08:00
parent 073abd2efa
commit b60d8a6797
2 changed files with 14 additions and 1 deletions

View File

@ -85,6 +85,7 @@ import {
} from '@/api/dictionary/dictionary' } from '@/api/dictionary/dictionary'
import Vue from 'vue' import Vue from 'vue'
import i18n from './lang' import i18n from './lang'
import { getHospital } from '@/api/hospital.js'
export default { export default {
name: 'App', name: 'App',
data() { data() {
@ -102,6 +103,7 @@ export default {
this.show = process.env.VUE_APP_OSS_PATH === "/hir_test/dist"; this.show = process.env.VUE_APP_OSS_PATH === "/hir_test/dist";
// this.show = false; // this.show = false;
Vue.prototype.$openI18n = this.openI18n Vue.prototype.$openI18n = this.openI18n
this.getInfo()
}, },
methods: { methods: {
// //
@ -249,6 +251,17 @@ export default {
this.tableData = Object.assign([], this.arr) 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> </script>

View File

@ -73,7 +73,7 @@
</el-button> </el-button>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label=""> <el-form-item label="" v-if="!$IsCanConnectInternet">
<span>{{ $t('system:userlist:tip:defaultPassword') }}</span> <span>{{ $t('system:userlist:tip:defaultPassword') }}</span>
</el-form-item> </el-form-item>
<el-form-item v-if="type == 1" :label="$t('system:userlist:table:Disable')"> <el-form-item v-if="type == 1" :label="$t('system:userlist:table:Disable')">