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

paix

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