111117.29
This commit is contained in:
+17
-16
@@ -51,13 +51,14 @@ const _sfc_main = {
|
||||
}
|
||||
]);
|
||||
const order = common_vendor.reactive({
|
||||
updated_at: "desc"
|
||||
push_date: "desc"
|
||||
});
|
||||
common_vendor.onLoad((options) => {
|
||||
if (options.type == "hospital") {
|
||||
type.value = "hospital";
|
||||
option.value[1].label = "医院名称";
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/searchList/searchList.vue:142", type.value);
|
||||
keyWord.value = options.name;
|
||||
if (options.name) {
|
||||
navName.value = options.name + "临床病例库";
|
||||
@@ -78,8 +79,8 @@ const _sfc_main = {
|
||||
});
|
||||
const change = (e) => {
|
||||
if (e == 1) {
|
||||
order.updated_at = "desc";
|
||||
if (type.value = "hospital") {
|
||||
order.push_date = "desc";
|
||||
if (type.value == "hospital") {
|
||||
order.hospital_name = "";
|
||||
} else {
|
||||
order.doctor_name = "";
|
||||
@@ -87,18 +88,18 @@ const _sfc_main = {
|
||||
order.article_num = "";
|
||||
dropTitle.value = "更新时间";
|
||||
} else if (e == 2) {
|
||||
order.updated_at = "";
|
||||
order.push_date = "";
|
||||
order.article_num = "";
|
||||
if (type.value = "hospital") {
|
||||
order.hospital_name = "desc";
|
||||
if (type.value == "hospital") {
|
||||
order.hospital_name = "asc";
|
||||
dropTitle.value = "医院名称";
|
||||
} else {
|
||||
order.doctor_name = "asc";
|
||||
dropTitle.value = "医生名称";
|
||||
}
|
||||
} else if (e == 3) {
|
||||
order.updated_at = "";
|
||||
if (type.value = "hospital") {
|
||||
order.push_date = "";
|
||||
if (type.value == "hospital") {
|
||||
order.hospital_name = "";
|
||||
} else {
|
||||
order.doctor_name = "";
|
||||
@@ -119,8 +120,8 @@ const _sfc_main = {
|
||||
let searchForm = {
|
||||
hospital_name: keyWord.value
|
||||
};
|
||||
if (!order.updated_at) {
|
||||
delete order.updated_at;
|
||||
if (!order.push_date) {
|
||||
delete order.push_date;
|
||||
}
|
||||
if (!order.article_num) {
|
||||
delete order.article_num;
|
||||
@@ -128,7 +129,7 @@ const _sfc_main = {
|
||||
if (!order.hospital_name) {
|
||||
delete order.hospital_name;
|
||||
}
|
||||
if (order.updated_at || order.article_num || order.hospital_name) {
|
||||
if (order.push_date || order.article_num || order.hospital_name) {
|
||||
searchForm.order = order;
|
||||
}
|
||||
api_api.api.searchHospital({
|
||||
@@ -145,8 +146,8 @@ const _sfc_main = {
|
||||
let searchForm = {
|
||||
doctor_name: keyWord.value
|
||||
};
|
||||
if (!order.updated_at) {
|
||||
delete order.updated_at;
|
||||
if (!order.push_date) {
|
||||
delete order.push_date;
|
||||
}
|
||||
if (!order.article_num) {
|
||||
delete order.article_num;
|
||||
@@ -154,7 +155,7 @@ const _sfc_main = {
|
||||
if (!order.doctor_name) {
|
||||
delete order.doctor_name;
|
||||
}
|
||||
if (order.updated_at || order.article_num || order.doctor_name) {
|
||||
if (order.push_date || order.article_num || order.doctor_name) {
|
||||
searchForm.order = order;
|
||||
}
|
||||
api_api.api.searchDoctor({
|
||||
@@ -186,7 +187,7 @@ const _sfc_main = {
|
||||
});
|
||||
};
|
||||
const changeWord = (value) => {
|
||||
common_vendor.index.__f__("log", "at pages/searchList/searchList.vue:329", value);
|
||||
common_vendor.index.__f__("log", "at pages/searchList/searchList.vue:331", value);
|
||||
if (type.value == "hospital") {
|
||||
navName.value = "医院临床病例库";
|
||||
order.hospital_name = "";
|
||||
@@ -196,7 +197,7 @@ const _sfc_main = {
|
||||
}
|
||||
keyWord.value = value;
|
||||
dataList.value = [];
|
||||
order.updated_at = "desc";
|
||||
order.push_date = "desc";
|
||||
order.article_num = "";
|
||||
paging.value.reload();
|
||||
};
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
}
|
||||
.filterbox.data-v-5d2f7987 .u-dropdown__menu__item__text {
|
||||
font-size: 14px !important;
|
||||
color: #3c9cff !important;
|
||||
color: #3CC7C0 !important;
|
||||
}
|
||||
.filterbox .type.data-v-5d2f7987 {
|
||||
position: absolute;
|
||||
|
||||
Reference in New Issue
Block a user