diff --git a/.env.development b/.env.development index e0d38ab..6e322d7 100644 --- a/.env.development +++ b/.env.development @@ -2,10 +2,10 @@ ENV = 'development' # base api -VUE_APP_BASE_API='https://cz-hjjc.115.langye.net' -VUE_APP_UPLOAD_API='https://cz-hjjc.115.langye.net/api/upload-file' +VUE_APP_BASE_API='https://cz-hjjc-test.115.langye.net' +VUE_APP_UPLOAD_API='https://cz-hjjc-test.115.langye.net/api/upload-file' VUE_APP_PREVIEW=//view.langye.net/preview/onlinePreview -VUE_APP_OUT_OLD=https://cz-hjjc.115.langye.net/oa -VUE_APP_OUT_URL=https://cz-hjjc.115.langye.net/oa +VUE_APP_OUT_OLD=https://cz-hjjc-test.115.langye.net/oa +VUE_APP_OUT_URL=https://cz-hjjc-test.115.langye.net/oa VUE_APP_MODULE_NAME=ht diff --git a/src/api/system/department.js b/src/api/system/department.js index 21078d7..6c037ca 100644 --- a/src/api/system/department.js +++ b/src/api/system/department.js @@ -15,7 +15,7 @@ export function listdept() { }) } -export function listdeptNoAuth(params = {show_tree:1}){ +export function listdeptNoAuth(params = {page: 1,page_size: 999,sort_name:'sortnumber',sort_type:'asc'}){ return request({ url:'/api/ht/other/admin-department-list', method:'get', diff --git a/src/components/PlanPicker/index.vue b/src/components/PlanPicker/index.vue index fbf5041..b01d0ce 100644 --- a/src/components/PlanPicker/index.vue +++ b/src/components/PlanPicker/index.vue @@ -215,7 +215,7 @@ export default { getDepartment() { listdeptNoAuth().then((res) => { - this.departments = res; + this.departments = res.data; }); }, async getPlanTypes() { diff --git a/src/views/away/addAway.vue b/src/views/away/addAway.vue index 8de27a3..89a4dac 100644 --- a/src/views/away/addAway.vue +++ b/src/views/away/addAway.vue @@ -397,7 +397,7 @@ export default { }, getDepartment() { listdeptNoAuth().then((res) => { - this.departments = res; + this.departments = res.data; }); }, async getPlanTypes() { diff --git a/src/views/away/component/examineAway.vue b/src/views/away/component/examineAway.vue index aa42717..6dedbc6 100644 --- a/src/views/away/component/examineAway.vue +++ b/src/views/away/component/examineAway.vue @@ -535,7 +535,7 @@ export default { //获取科室 getDepartment() { listdeptNoAuth().then((res) => { - this.departments = res; + this.departments = res.data; }); }, diff --git a/src/views/away/index.vue b/src/views/away/index.vue index 1afcd5f..a8a2dea 100644 --- a/src/views/away/index.vue +++ b/src/views/away/index.vue @@ -48,6 +48,16 @@ +
+ 数据类型 + + + +
+
+ +