提交 b280758b 编写于 作者: xiaoping.di's avatar xiaoping.di

paix

import request from 'mn-template/plugins/http'; import request from 'mn-template/plugins/http';
export const getFirstLevelLable = async () => { export const getFirstLevelLable = async () => {
return request({ return request({
url: '/contents/admin/label/getFirstLevelLable/1', url: '/basic-data/constants/lvOne/P128',
method: 'get', method: 'get',
}); });
}; };
export const childLabelList = async (data) => { export const childLabelList = async (data) => {
return request({ return request({
url: '/contents/admin/label/childLabelList', url: `/basic-data/constants/subordinate/${data}`,
params: data, params: data,
method: 'get', method: 'get',
}); });
......
...@@ -114,6 +114,7 @@ ...@@ -114,6 +114,7 @@
listDate: [], listDate: [],
week: 1, // 1:当前周 2:上一周 3:下一周 week: 1, // 1:当前周 2:上一周 3:下一周
currentIndex: 2, currentIndex: 2,
haveWeek: [1],
calendarOptions: { calendarOptions: {
// 引入的插件,比如fullcalendar/daygrid,fullcalendar/timegrid引入后才可显示月,周,日 // 引入的插件,比如fullcalendar/daygrid,fullcalendar/timegrid引入后才可显示月,周,日
plugins: [dayGridPlugin, interactionPlugin, timeGridPlugin], plugins: [dayGridPlugin, interactionPlugin, timeGridPlugin],
...@@ -186,7 +187,10 @@ ...@@ -186,7 +187,10 @@
watch: { watch: {
week(newV) { week(newV) {
console.log(newV); console.log(newV);
// this.handleInitSearch(true); if (this.haveWeek.indexOf(newV) == -1) {
this.haveWeek.push(newV);
this.handleInitSearch();
}
}, },
}, },
mounted() { mounted() {
...@@ -401,3 +405,4 @@ ...@@ -401,3 +405,4 @@
<style lang="scss" scoped> <style lang="scss" scoped>
@import 'index'; @import 'index';
</style> </style>
d e c
...@@ -79,8 +79,8 @@ ...@@ -79,8 +79,8 @@
v-model="searchParam.idNamePhone" v-model="searchParam.idNamePhone"
clearable clearable
class="serviceSchedule-idNamePhone" class="serviceSchedule-idNamePhone"
placeholder="输入问诊单号/医生姓名/手机号" placeholder="医生姓名/手机号"
style="width: 280px" style="width: 250px"
/> />
<el-button <el-button
type="primary" type="primary"
...@@ -182,8 +182,8 @@ ...@@ -182,8 +182,8 @@
innerform: [], innerform: [],
props: { props: {
// props定义的值根据接口返回的数据定的 // props定义的值根据接口返回的数据定的
label: 'name', label: 'value',
value: 'id', value: 'no',
children: 'interface', children: 'interface',
}, },
searchParam: { searchParam: {
...@@ -245,11 +245,16 @@ ...@@ -245,11 +245,16 @@
// 通过监听expand-change事件(当展开节点发生变化时触发)获取第二层数据,组装interfaceOptions数据 // 通过监听expand-change事件(当展开节点发生变化时触发)获取第二层数据,组装interfaceOptions数据
handleItemChange(val) { handleItemChange(val) {
const value = val[0]; const value = val[0];
childLabelList({ parentId: value, publish: 1 }).then((res) => { childLabelList(value).then((res) => {
if (res.code === '000000') { if (res.code === '000000') {
const interfaceArr = res.data || []; const interfaceArr = (res.data || []).map((item) => {
return {
value: item.name,
no: item.id,
};
});
this.interfaceOptions.filter((item) => { this.interfaceOptions.filter((item) => {
if (item.id === value) { if (item.no === value) {
this.$set(item, 'interface', interfaceArr); this.$set(item, 'interface', interfaceArr);
} }
return; return;
...@@ -376,8 +381,10 @@ ...@@ -376,8 +381,10 @@
this.schedulingType = val; this.schedulingType = val;
}, },
goBack(flag) { goBack(flag) {
console.log(flag);
this.ScheduleListShow = true; this.ScheduleListShow = true;
if (flag) {
this.search();
}
}, },
}, },
}; };
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册