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

修改工作台

上级 3bff20e6
...@@ -55,10 +55,7 @@ ...@@ -55,10 +55,7 @@
v-else v-else
class="workbench-content" class="workbench-content"
> >
<div <div class="workbench-li-c">
v-if="currentDiagList"
class="workbench-li-c"
>
<div class="workbench-title"> <div class="workbench-title">
<div class="searh-input"> <div class="searh-input">
<el-input <el-input
...@@ -79,7 +76,7 @@ ...@@ -79,7 +76,7 @@
</div> </div>
<!-- 问诊状态内容 --> <!-- 问诊状态内容 -->
<div <div
v-if="isShowCardData" v-if="currentDiagList.length"
class="grid-c" class="grid-c"
> >
<div <div
...@@ -95,21 +92,21 @@ ...@@ -95,21 +92,21 @@
/> />
</div> </div>
</div> </div>
<div
v-else
class="nodata-container"
>
<img
src="@/assets/image/workbench/no_data_wz.png"
alt=""
>
<div class="nodata-title">
暂时没有问诊
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
<!-- <div
v-else
class="nodata-container"
>
<img
src="../../../assets/image/workbench/no_data_wz.png"
alt=""
>
<div class="nodata-title">
暂时没有问诊
</div>
</div> -->
<el-dialog <el-dialog
:visible.sync="showIsReset" :visible.sync="showIsReset"
width="30%" width="30%"
...@@ -216,6 +213,7 @@ ...@@ -216,6 +213,7 @@
userInfo: null, userInfo: null,
timer: null, timer: null,
currentDiagList: [], // 卡片列表数据 currentDiagList: [], // 卡片列表数据
midCardData: [],
mockData: [ mockData: [
{ {
doctorLastCallTime: '2021-12-02 19:58:01', doctorLastCallTime: '2021-12-02 19:58:01',
...@@ -299,7 +297,7 @@ ...@@ -299,7 +297,7 @@
appointEndTime: '2021-12-02 21:00:00', appointEndTime: '2021-12-02 21:00:00',
department: '呼吸内科', department: '呼吸内科',
departmentId: 12, departmentId: 12,
diagnoseLogId: 3824, diagnoseLogId: 3826,
diagnoseType: 1, diagnoseType: 1,
doctorCallKfStatus: 2, doctorCallKfStatus: 2,
doctorCallStatus: 1, doctorCallStatus: 1,
...@@ -334,6 +332,7 @@ ...@@ -334,6 +332,7 @@
checkDoctorIdList: [], checkDoctorIdList: [],
activeMoutendName: '', activeMoutendName: '',
operatId: '', operatId: '',
localUserId: '',
showIsReset: false, showIsReset: false,
}; };
}, },
...@@ -354,13 +353,10 @@ ...@@ -354,13 +353,10 @@
const s = storejs.get('soketQuest'); const s = storejs.get('soketQuest');
const id = const id =
s && s.operateUserId ? s.operateUserId : this.isSuperAdmin.userID; s && s.operateUserId ? s.operateUserId : this.isSuperAdmin.userID;
this.operateUserId = id;
this.userInfo = storejs.get('initSocketInfo'); this.userInfo = storejs.get('initSocketInfo');
console.log( if (!id) {
this.userInfo.userId, this.localUserId = this.userInfo.userId;
'userInfouserInfo', }
this.tabPositionValue
);
this.initCard(); this.initCard();
const that = this; const that = this;
// 轮循 // 轮循
...@@ -369,7 +365,7 @@ ...@@ -369,7 +365,7 @@
// that.isShowCardData = false; // that.isShowCardData = false;
that.initCard(); that.initCard();
}, 0); }, 0);
}, 4000); }, 40000);
this.doctorDeparList(); this.doctorDeparList();
}, },
destroyed() { destroyed() {
...@@ -399,10 +395,8 @@ ...@@ -399,10 +395,8 @@
this.showIsReset = false; this.showIsReset = false;
}, },
confirmResert() { confirmResert() {
const userInfo = storejs.get('initSocketInfo');
const { userId } = userInfo;
const param = { const param = {
uid: this.operatId ? this.operatId : userId, uid: this.operatId ? this.operatId : this.localUserId,
}; };
doctorListRest(param).then((res) => { doctorListRest(param).then((res) => {
if (res.code == '000000') { if (res.code == '000000') {
...@@ -458,11 +452,9 @@ ...@@ -458,11 +452,9 @@
}, },
initCard() { initCard() {
console.log(this.isShowCardData);
const parms = { const parms = {
bizType: this.tabPositionValue, // 1,异常的列表 2,不需要处理的列表 bizType: this.tabPositionValue, // 1,异常的列表 2,不需要处理的列表
userId: this.userInfo.userId || this.operateUserId, // userId userId: this.operatId || this.localUserId, // userId
condition: this.orderOrName || '',
}; };
// this.currentDiagList = this.mockData; // this.currentDiagList = this.mockData;
conditionNewList(parms) conditionNewList(parms)
...@@ -484,36 +476,65 @@ ...@@ -484,36 +476,65 @@
}); });
}, },
handleData(data) { handleData(data) {
console.log(data, 'data');
this.currentDiagList = []; this.currentDiagList = [];
this.midCardData = [];
const searchVal = this.orderOrName;
data.forEach((item, index) => { data.forEach((item, index) => {
// item.diagnoseLogId = '--' + Math.random() * 10; // item.diagnoseLogId = '--' + Math.random() * 10;
item['definitionRandom'] = Math.random() * 10; item['definitionRandom'] = Math.random() * 10;
this.$set(this.currentDiagList, index, item); if (searchVal) {
// 如果有查询条件一直后去的是查询结果
if (item.diagnoseLogId == searchVal || item.doctorName == searchVal) {
this.currentDiagList.push(item);
}
} else {
this.currentDiagList.push(item);
}
this.$set(this.midCardData, index, item);
}); });
console.log('this.currentDiagList', this.currentDiagList); console.log('this.currentDiagList', this.currentDiagList);
this.isShowCardData = true; this.isShowCardData = true;
// this.$nextTick(() => {
// });
}, },
getSerachValue(value) { getSerachValue(value) {
this.orderOrName = value; this.orderOrName = value.trim();
}, },
handleCheckedCitiesChange(value) { handleCheckedCitiesChange(value) {
console.log(value, 'value11'); console.log(value, 'value11');
}, },
getSearchValue() { getSearchValue() {
if (!this.orderOrName) { if (!this.orderOrName) {
console.log(789, this.departmentId);
return this.$message({ return this.$message({
message: '医生名字或订单号不能为空', message: '医生名字或订单号不能为空',
type: 'warning', type: 'warning',
duration: 1000, duration: 1000,
}); });
} else { } else {
this.initCard(); // 前端根据现在数据筛选结果
this.handleSearchResult(this.orderOrName);
} }
}, },
// 处理查询结果
handleSearchResult(searchVal) {
this.isShowCardData = false;
this.currentDiagList = [];
console.log(this.midCardData, searchVal);
this.midCardData.forEach((item) => {
console.log(
searchVal,
item.diagnoseLogId,
'item.diagnoseLogId',
item.doctorName == searchVal,
item.doctorName
);
if (item.diagnoseLogId == searchVal || item.doctorName == searchVal) {
console.log(11111111, item.definitionRandom);
item.definitionRandom = Math.random() * 10;
this.currentDiagList.push(item);
}
});
console.log(this.currentDiagList, '00000');
this.isShowCardData = true;
},
tabChange(val) { tabChange(val) {
console.log(val, 'val1111===='); console.log(val, 'val1111====');
this.tabPositionValue = val; this.tabPositionValue = val;
...@@ -637,7 +658,6 @@ ...@@ -637,7 +658,6 @@
display: grid; display: grid;
grid-template-columns: auto auto auto; grid-template-columns: auto auto auto;
grid-template-rows: auto auto auto; grid-template-rows: auto auto auto;
//grid-template-columns: 32% 32% 32%;
//grid-row-gap: 2%; //grid-row-gap: 2%;
grid-column-gap: 10px; grid-column-gap: 10px;
padding: 0px 7px; padding: 0px 7px;
......
...@@ -71,7 +71,7 @@ module.exports = { ...@@ -71,7 +71,7 @@ module.exports = {
port: 8080, port: 8080,
proxy: { proxy: {
'/proxy': { '/proxy': {
target: 'https://test1-sc.yunqueyi.com/', target: 'https://dev-sc.yunqueyi.com/',
ws: false, ws: false,
changeOrigin: true, changeOrigin: true,
secure: true, secure: true,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册