11
This commit is contained in:
+116
-50
@@ -4,18 +4,22 @@ const api_api = require("../../api/api.js");
|
||||
const utils_navTo = require("../../utils/navTo.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
|
||||
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
|
||||
const _easycom_up_dropdown_item2 = common_vendor.resolveComponent("up-dropdown-item");
|
||||
const _easycom_up_dropdown2 = common_vendor.resolveComponent("up-dropdown");
|
||||
const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
|
||||
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
|
||||
(_easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up__image2 + _easycom_z_paging2)();
|
||||
(_easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up__image2 + _easycom_z_paging2)();
|
||||
}
|
||||
const _easycom_up_radio = () => "../../node-modules/uview-plus/components/u-radio/u-radio.js";
|
||||
const _easycom_up_radio_group = () => "../../node-modules/uview-plus/components/u-radio-group/u-radio-group.js";
|
||||
const _easycom_up_dropdown_item = () => "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item.js";
|
||||
const _easycom_up_dropdown = () => "../../node-modules/uview-plus/components/u-dropdown/u-dropdown.js";
|
||||
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.js";
|
||||
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
|
||||
if (!Math) {
|
||||
(navBarSearch + _easycom_up_dropdown_item + _easycom_up_dropdown + _easycom_up__image + _easycom_z_paging)();
|
||||
(navBarSearch + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_dropdown_item + _easycom_up_dropdown + _easycom_up__image + _easycom_z_paging)();
|
||||
}
|
||||
const navBarSearch = () => "../../components/navBarSearch/navBarSearch.js";
|
||||
const _sfc_main = {
|
||||
@@ -30,35 +34,41 @@ const _sfc_main = {
|
||||
common_vendor.ref(true);
|
||||
const type = common_vendor.ref("doctor");
|
||||
const navName = common_vendor.ref("医生临床病例库");
|
||||
const options = common_vendor.ref([
|
||||
const orderFilter = common_vendor.ref(1);
|
||||
const dropTitle = common_vendor.ref("更新时间");
|
||||
const option = common_vendor.ref([
|
||||
{
|
||||
label: "正序",
|
||||
value: "asc"
|
||||
label: "更新时间",
|
||||
value: "1"
|
||||
},
|
||||
{
|
||||
label: "倒序",
|
||||
value: "desc"
|
||||
label: "医生名称",
|
||||
value: "2"
|
||||
},
|
||||
{
|
||||
label: "病例数",
|
||||
value: "3"
|
||||
}
|
||||
]);
|
||||
const order = common_vendor.reactive({
|
||||
read_num: "",
|
||||
push_date: ""
|
||||
updated_at: "desc"
|
||||
});
|
||||
common_vendor.onLoad((options2) => {
|
||||
if (options2.type == "hospital") {
|
||||
common_vendor.onLoad((options) => {
|
||||
if (options.type == "hospital") {
|
||||
type.value = "hospital";
|
||||
option.value[1].label = "医院名称";
|
||||
}
|
||||
keyWord.value = options2.name;
|
||||
if (options2.name) {
|
||||
navName.value = options2.name + "临床病例库";
|
||||
keyWord.value = options.name;
|
||||
if (options.name) {
|
||||
navName.value = options.name + "临床病例库";
|
||||
}
|
||||
if ((options2.name = "医生") && !options2.id) {
|
||||
if ((options.name = "医生") && !options.id) {
|
||||
keyWord.value = "";
|
||||
}
|
||||
if (options2.order == "new") {
|
||||
if (options.order == "new") {
|
||||
order.push_date = "asc";
|
||||
}
|
||||
if (options2.order == "read") {
|
||||
if (options.order == "read") {
|
||||
order.read_num = "desc";
|
||||
}
|
||||
});
|
||||
@@ -67,6 +77,37 @@ const _sfc_main = {
|
||||
(_a = paging.value) == null ? void 0 : _a.refresh();
|
||||
});
|
||||
const change = (e) => {
|
||||
if (e == 1) {
|
||||
order.updated_at = "desc";
|
||||
if (type.value = "hospital") {
|
||||
order.hospital_name = "";
|
||||
} else {
|
||||
order.doctor_name = "";
|
||||
}
|
||||
order.article_num = "";
|
||||
dropTitle.value = "更新时间";
|
||||
} else if (e == 2) {
|
||||
order.updated_at = "";
|
||||
order.article_num = "";
|
||||
if (type.value = "hospital") {
|
||||
order.hospital_name = "desc";
|
||||
dropTitle.value = "医院名称";
|
||||
} else {
|
||||
order.doctor_name = "asc";
|
||||
dropTitle.value = "医生名称";
|
||||
}
|
||||
} else if (e == 3) {
|
||||
order.updated_at = "";
|
||||
if (type.value = "hospital") {
|
||||
order.hospital_name = "";
|
||||
} else {
|
||||
order.doctor_name = "";
|
||||
}
|
||||
order.article_num = "desc";
|
||||
dropTitle.value = "病例数";
|
||||
}
|
||||
orderFilter.value = e;
|
||||
uDropdownRef.value.close();
|
||||
paging.value.reload();
|
||||
};
|
||||
const formatdate = (date) => {
|
||||
@@ -78,13 +119,16 @@ const _sfc_main = {
|
||||
let searchForm = {
|
||||
hospital_name: keyWord.value
|
||||
};
|
||||
if (!order.read_num) {
|
||||
delete order.read_num;
|
||||
if (!order.updated_at) {
|
||||
delete order.updated_at;
|
||||
}
|
||||
if (!order.push_date) {
|
||||
delete order.push_date;
|
||||
if (!order.article_num) {
|
||||
delete order.article_num;
|
||||
}
|
||||
if (order.read_num || order.push_date) {
|
||||
if (!order.hospital_name) {
|
||||
delete order.hospital_name;
|
||||
}
|
||||
if (order.updated_at || order.article_num || order.hospital_name) {
|
||||
searchForm.order = order;
|
||||
}
|
||||
api_api.api.searchHospital({
|
||||
@@ -101,13 +145,16 @@ const _sfc_main = {
|
||||
let searchForm = {
|
||||
doctor_name: keyWord.value
|
||||
};
|
||||
if (!order.read_num) {
|
||||
delete order.read_num;
|
||||
if (!order.updated_at) {
|
||||
delete order.updated_at;
|
||||
}
|
||||
if (!order.push_date) {
|
||||
delete order.push_date;
|
||||
if (!order.article_num) {
|
||||
delete order.article_num;
|
||||
}
|
||||
if (order.read_num || order.push_date) {
|
||||
if (!order.doctor_name) {
|
||||
delete order.doctor_name;
|
||||
}
|
||||
if (order.updated_at || order.article_num || order.doctor_name) {
|
||||
searchForm.order = order;
|
||||
}
|
||||
api_api.api.searchDoctor({
|
||||
@@ -139,15 +186,19 @@ const _sfc_main = {
|
||||
});
|
||||
};
|
||||
const changeWord = (value) => {
|
||||
common_vendor.index.__f__("log", "at pages/searchList/searchList.vue:262", value);
|
||||
if (value) {
|
||||
navName.value = value + "临床病例库";
|
||||
keyWord.value = value;
|
||||
dataList.value = [];
|
||||
order.read_num = "";
|
||||
order.push_date = "";
|
||||
paging.value.reload();
|
||||
common_vendor.index.__f__("log", "at pages/searchList/searchList.vue:329", value);
|
||||
if (type.value == "hospital") {
|
||||
navName.value = "医院临床病例库";
|
||||
order.hospital_name = "";
|
||||
} else {
|
||||
navName.value = "医生临床病例库";
|
||||
order.doctor_name = "";
|
||||
}
|
||||
keyWord.value = value;
|
||||
dataList.value = [];
|
||||
order.updated_at = "desc";
|
||||
order.article_num = "";
|
||||
paging.value.reload();
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
@@ -157,17 +208,32 @@ const _sfc_main = {
|
||||
navName: navName.value,
|
||||
type: type.value
|
||||
}),
|
||||
c: common_vendor.o(change),
|
||||
d: common_vendor.o(($event) => order.push_date = $event),
|
||||
e: common_vendor.p({
|
||||
title: "发布时间",
|
||||
options: options.value,
|
||||
modelValue: order.push_date
|
||||
c: common_vendor.f(option.value, (item, k0, i0) => {
|
||||
return {
|
||||
a: "5d2f7987-5-" + i0 + ",5d2f7987-4",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0",
|
||||
label: item.label,
|
||||
name: item.value
|
||||
}),
|
||||
c: item.value,
|
||||
d: common_vendor.n(orderFilter.value == item.value ? "active" : "")
|
||||
};
|
||||
}),
|
||||
f: common_vendor.sr(uDropdownRef, "5d2f7987-2,5d2f7987-0", {
|
||||
d: common_vendor.o(change),
|
||||
e: common_vendor.o(($event) => orderFilter.value = $event),
|
||||
f: common_vendor.p({
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: orderFilter.value
|
||||
}),
|
||||
g: common_vendor.p({
|
||||
title: dropTitle.value
|
||||
}),
|
||||
h: common_vendor.sr(uDropdownRef, "5d2f7987-2,5d2f7987-0", {
|
||||
"k": "uDropdownRef"
|
||||
}),
|
||||
g: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
i: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
return common_vendor.e(type.value == "hospital" ? {
|
||||
a: common_vendor.t(item.basic_hospital.hospital_name)
|
||||
} : {
|
||||
@@ -181,24 +247,24 @@ const _sfc_main = {
|
||||
};
|
||||
}),
|
||||
e: common_vendor.t(item.video_num + item.article_num),
|
||||
f: "5d2f7987-4-" + i0 + ",5d2f7987-0",
|
||||
f: "5d2f7987-6-" + i0 + ",5d2f7987-0",
|
||||
g: common_vendor.t(formatdate(item.last_push_date)),
|
||||
h: index,
|
||||
i: common_vendor.o(($event) => type.value == "hospital" ? goDetail(item.basic_hospital.hospital_id, item.basic_hospital.hospital_name) : goDetail(item.case_clinical_doctor.doctor_id, item.case_clinical_doctor.doctor_name), index)
|
||||
});
|
||||
}),
|
||||
h: type.value == "hospital",
|
||||
i: common_vendor.p({
|
||||
j: type.value == "hospital",
|
||||
k: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.arrowrightImg),
|
||||
width: "32rpx",
|
||||
height: "32rpx"
|
||||
}),
|
||||
j: common_vendor.sr(paging, "5d2f7987-0", {
|
||||
l: common_vendor.sr(paging, "5d2f7987-0", {
|
||||
"k": "paging"
|
||||
}),
|
||||
k: common_vendor.o(queryList),
|
||||
l: common_vendor.o(($event) => dataList.value = $event),
|
||||
m: common_vendor.p({
|
||||
m: common_vendor.o(queryList),
|
||||
n: common_vendor.o(($event) => dataList.value = $event),
|
||||
o: common_vendor.p({
|
||||
["inside-more"]: true,
|
||||
["loading-more-no-more-text"]: "咱也是有底线的!",
|
||||
["auto-show-back-to-top"]: true,
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
"navigationBarTitleText": "肝胆相照临床病例库",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up-radio": "../../node-modules/uview-plus/components/u-radio/u-radio",
|
||||
"up-radio-group": "../../node-modules/uview-plus/components/u-radio-group/u-radio-group",
|
||||
"up-dropdown-item": "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item",
|
||||
"up-dropdown": "../../node-modules/uview-plus/components/u-dropdown/u-dropdown",
|
||||
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="u-page data-v-5d2f7987"><z-paging wx:if="{{m}}" class="r data-v-5d2f7987" u-s="{{['top','d']}}" u-r="paging" bindquery="{{k}}" u-i="5d2f7987-0" bind:__l="__l" bindupdateModelValue="{{l}}" u-p="{{m}}"><view slot="top"><nav-bar-search wx:if="{{b}}" class="data-v-5d2f7987" bindchangeWord="{{a}}" u-i="5d2f7987-1,5d2f7987-0" bind:__l="__l" u-p="{{b}}"></nav-bar-search><view class="filterbox data-v-5d2f7987"><up-dropdown u-s="{{['d']}}" class="u-dropdown r data-v-5d2f7987" u-r="uDropdownRef" u-i="5d2f7987-2,5d2f7987-0" bind:__l="__l"><up-dropdown-item wx:if="{{e}}" class="data-v-5d2f7987" bindchange="{{c}}" u-i="5d2f7987-3,5d2f7987-2" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></up-dropdown-item></up-dropdown></view></view><view class="listbox data-v-5d2f7987"><view wx:for="{{g}}" wx:for-item="item" wx:key="h" class="item data-v-5d2f7987" bindtap="{{item.i}}"><view wx:if="{{h}}" class="title ellipsis data-v-5d2f7987">{{item.a}}</view><view wx:else class="title ellipsis data-v-5d2f7987">{{item.b}}({{item.c}})</view><view class="tagsbox data-v-5d2f7987"><view wx:for="{{item.d}}" wx:for-item="tag" wx:key="b" class="tag data-v-5d2f7987">{{tag.a}}</view></view><view class="deal data-v-5d2f7987"><view class="left data-v-5d2f7987"><view class="count data-v-5d2f7987"> 病例数:{{item.e}}<up--image wx:if="{{i}}" class="data-v-5d2f7987" u-i="{{item.f}}" bind:__l="__l" u-p="{{i}}"></up--image></view></view><view class="time data-v-5d2f7987"><view class="num data-v-5d2f7987">更新时间:{{item.g}}</view></view></view></view></view></z-paging></view>
|
||||
<view class="u-page data-v-5d2f7987"><z-paging wx:if="{{o}}" class="r data-v-5d2f7987" u-s="{{['top','d']}}" u-r="paging" bindquery="{{m}}" u-i="5d2f7987-0" bind:__l="__l" bindupdateModelValue="{{n}}" u-p="{{o}}"><view slot="top"><nav-bar-search wx:if="{{b}}" class="data-v-5d2f7987" bindchangeWord="{{a}}" u-i="5d2f7987-1,5d2f7987-0" bind:__l="__l" u-p="{{b}}"></nav-bar-search><view class="filterbox data-v-5d2f7987"><up-dropdown u-s="{{['d']}}" class="u-dropdown r data-v-5d2f7987" u-r="uDropdownRef" u-i="5d2f7987-2,5d2f7987-0" bind:__l="__l"><up-dropdown-item wx:if="{{g}}" class="data-v-5d2f7987" u-s="{{['d']}}" u-i="5d2f7987-3,5d2f7987-2" bind:__l="__l" u-p="{{g}}"><view class="dropcontent data-v-5d2f7987"><up-radio-group wx:if="{{f}}" class="data-v-5d2f7987" u-s="{{['d']}}" bindchange="{{d}}" u-i="5d2f7987-4,5d2f7987-3" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"><view wx:for="{{c}}" wx:for-item="item" wx:key="c" class="{{['column', 'data-v-5d2f7987', item.d]}}"><up-radio wx:if="{{item.b}}" class="data-v-5d2f7987" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-radio></view></up-radio-group></view></up-dropdown-item></up-dropdown></view></view><view class="listbox data-v-5d2f7987"><view wx:for="{{i}}" wx:for-item="item" wx:key="h" class="item data-v-5d2f7987" bindtap="{{item.i}}"><view wx:if="{{j}}" class="title ellipsis data-v-5d2f7987">{{item.a}}</view><view wx:else class="title ellipsis data-v-5d2f7987">{{item.b}}({{item.c}})</view><view class="tagsbox data-v-5d2f7987"><view wx:for="{{item.d}}" wx:for-item="tag" wx:key="b" class="tag data-v-5d2f7987">{{tag.a}}</view></view><view class="deal data-v-5d2f7987"><view class="left data-v-5d2f7987"><view class="count data-v-5d2f7987"> 病例数:{{item.e}}<up--image wx:if="{{k}}" class="data-v-5d2f7987" u-i="{{item.f}}" bind:__l="__l" u-p="{{k}}"></up--image></view></view><view class="time data-v-5d2f7987"><view class="num data-v-5d2f7987">更新时间:{{item.g}}</view></view></view></view></view></z-paging></view>
|
||||
@@ -23,6 +23,25 @@
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.dropcontent.data-v-5d2f7987 {
|
||||
padding-top: 40rpx;
|
||||
padding-bottom: 20rpx;
|
||||
background-color: #fff;
|
||||
}
|
||||
.dropcontent.data-v-5d2f7987 .u-radio {
|
||||
margin-bottom: 6px !important;
|
||||
margin-top: 16px !important;
|
||||
}
|
||||
.dropcontent .column.data-v-5d2f7987 {
|
||||
padding: 0 30rpx;
|
||||
border-top: 2rpx solid #e5e7eb;
|
||||
}
|
||||
.dropcontent .column.data-v-5d2f7987 .u-radio__text {
|
||||
color: #333 !important;
|
||||
}
|
||||
.dropcontent .column.active.data-v-5d2f7987 .u-radio__text {
|
||||
color: #3CC7C0 !important;
|
||||
}
|
||||
.databox.data-v-5d2f7987 {
|
||||
height: 162rpx;
|
||||
background: #ffffff;
|
||||
@@ -58,6 +77,7 @@
|
||||
}
|
||||
.filterbox.data-v-5d2f7987 .u-dropdown__menu__item__text {
|
||||
font-size: 14px !important;
|
||||
color: #3c9cff !important;
|
||||
}
|
||||
.filterbox .type.data-v-5d2f7987 {
|
||||
position: absolute;
|
||||
|
||||
Reference in New Issue
Block a user