【用户管理】新建账号时,如果医院设置为联网,则隐藏初始化密码
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'
|
} 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>
|
||||||
|
|
|
@ -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')">
|
||||||
|
|
Loading…
Reference in New Issue