提交 fac40675 编写于 作者: yafei.li's avatar yafei.li

Merge branch 'feat/yf' into 'develop'

Feat/yf

See merge request !64
...@@ -1308,7 +1308,6 @@ ...@@ -1308,7 +1308,6 @@
"resolved": "http://192.168.110.93:4873/boom/-/boom-2.10.1.tgz", "resolved": "http://192.168.110.93:4873/boom/-/boom-2.10.1.tgz",
"integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=",
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"hoek": "2.x.x" "hoek": "2.x.x"
} }
...@@ -2832,8 +2831,7 @@ ...@@ -2832,8 +2831,7 @@
"ansi-regex": { "ansi-regex": {
"version": "2.1.1", "version": "2.1.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"aproba": { "aproba": {
"version": "1.2.0", "version": "1.2.0",
...@@ -2854,14 +2852,12 @@ ...@@ -2854,14 +2852,12 @@
"balanced-match": { "balanced-match": {
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"brace-expansion": { "brace-expansion": {
"version": "1.1.11", "version": "1.1.11",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"balanced-match": "^1.0.0", "balanced-match": "^1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
...@@ -2876,20 +2872,17 @@ ...@@ -2876,20 +2872,17 @@
"code-point-at": { "code-point-at": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"concat-map": { "concat-map": {
"version": "0.0.1", "version": "0.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"console-control-strings": { "console-control-strings": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"core-util-is": { "core-util-is": {
"version": "1.0.2", "version": "1.0.2",
...@@ -3006,8 +2999,7 @@ ...@@ -3006,8 +2999,7 @@
"inherits": { "inherits": {
"version": "2.0.4", "version": "2.0.4",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"ini": { "ini": {
"version": "1.3.5", "version": "1.3.5",
...@@ -3019,7 +3011,6 @@ ...@@ -3019,7 +3011,6 @@
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"number-is-nan": "^1.0.0" "number-is-nan": "^1.0.0"
} }
...@@ -3034,7 +3025,6 @@ ...@@ -3034,7 +3025,6 @@
"version": "3.0.4", "version": "3.0.4",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
} }
...@@ -3042,14 +3032,12 @@ ...@@ -3042,14 +3032,12 @@
"minimist": { "minimist": {
"version": "1.2.5", "version": "1.2.5",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"minipass": { "minipass": {
"version": "2.9.0", "version": "2.9.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"safe-buffer": "^5.1.2", "safe-buffer": "^5.1.2",
"yallist": "^3.0.0" "yallist": "^3.0.0"
...@@ -3068,7 +3056,6 @@ ...@@ -3068,7 +3056,6 @@
"version": "0.5.3", "version": "0.5.3",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"minimist": "^1.2.5" "minimist": "^1.2.5"
} }
...@@ -3130,8 +3117,7 @@ ...@@ -3130,8 +3117,7 @@
"npm-normalize-package-bin": { "npm-normalize-package-bin": {
"version": "1.0.1", "version": "1.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"npm-packlist": { "npm-packlist": {
"version": "1.4.8", "version": "1.4.8",
...@@ -3159,8 +3145,7 @@ ...@@ -3159,8 +3145,7 @@
"number-is-nan": { "number-is-nan": {
"version": "1.0.1", "version": "1.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"object-assign": { "object-assign": {
"version": "4.1.1", "version": "4.1.1",
...@@ -3172,7 +3157,6 @@ ...@@ -3172,7 +3157,6 @@
"version": "1.4.0", "version": "1.4.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"wrappy": "1" "wrappy": "1"
} }
...@@ -3250,8 +3234,7 @@ ...@@ -3250,8 +3234,7 @@
"safe-buffer": { "safe-buffer": {
"version": "5.1.2", "version": "5.1.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"safer-buffer": { "safer-buffer": {
"version": "2.1.2", "version": "2.1.2",
...@@ -3287,7 +3270,6 @@ ...@@ -3287,7 +3270,6 @@
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"code-point-at": "^1.0.0", "code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0", "is-fullwidth-code-point": "^1.0.0",
...@@ -3307,7 +3289,6 @@ ...@@ -3307,7 +3289,6 @@
"version": "3.0.1", "version": "3.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"ansi-regex": "^2.0.0" "ansi-regex": "^2.0.0"
} }
...@@ -3351,14 +3332,12 @@ ...@@ -3351,14 +3332,12 @@
"wrappy": { "wrappy": {
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"yallist": { "yallist": {
"version": "3.1.1", "version": "3.1.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
} }
} }
}, },
...@@ -3739,8 +3718,7 @@ ...@@ -3739,8 +3718,7 @@
"version": "2.16.3", "version": "2.16.3",
"resolved": "http://192.168.110.93:4873/hoek/-/hoek-2.16.3.tgz", "resolved": "http://192.168.110.93:4873/hoek/-/hoek-2.16.3.tgz",
"integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=", "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=",
"dev": true, "dev": true
"optional": true
}, },
"home-or-tmp": { "home-or-tmp": {
"version": "2.0.0", "version": "2.0.0",
......
...@@ -66,7 +66,7 @@ export default { ...@@ -66,7 +66,7 @@ export default {
}, },
mounted() { mounted() {
setTimeout( function () { setTimeout( function () {
bindDragHeader('.c-header', '.chat-wrap'); bindDragHeader('.c-header', '.chat-wrap','.wenzenbox');
}, 1000) }, 1000)
}, },
......
此差异已折叠。
此差异已折叠。
...@@ -34,11 +34,16 @@ ...@@ -34,11 +34,16 @@
<p class="text-num">{{item.role == 1 ? currentChat.doctorMobile : currentChat.userMobile}}</p> <p class="text-num">{{item.role == 1 ? currentChat.doctorMobile : currentChat.userMobile}}</p>
</div> </div>
</div> </div>
<div class="viedo" :id="rtc.viewslist[index] ? rtc.viewslist[index].id : ''">
<div class="viedo">
<div class="viedo-container" v-if="rtc.viewslist[index]" :id="rtc.viewslist[index] ? rtc.viewslist[index].id : ''"></div>
<el-button class="call-btn" :disabled="item.status === 2" @click="drivingCall(item)" > <el-button class="call-btn" :disabled="item.status === 2" @click="drivingCall(item)" >
{{ showText(item.status, item.role, item) }} {{ showText(item.status, item.role, item) }}
</el-button> </el-button>
</div> </div>
</div> </div>
<div class="vedio-man"> <div class="vedio-man">
<p class="man-img" @click="toggleVol"> <p class="man-img" @click="toggleVol">
...@@ -611,11 +616,12 @@ export default { ...@@ -611,11 +616,12 @@ export default {
flex: 1; flex: 1;
.viedo-wrapper { .viedo-wrapper {
width: 224px; width: 224px;
height: 120px; // height: 240px;
background: #F0F2F5; background: #F0F2F5;
border-radius: 18px; border-radius: 18px;
padding: 15px; padding: 15px;
margin-right: 2%; margin-right: 2%;
position: relative;
.text { .text {
display: flex; display: flex;
.text-left{ .text-left{
...@@ -672,6 +678,8 @@ export default { ...@@ -672,6 +678,8 @@ export default {
} }
} }
.viedo { .viedo {
.call-btn{ .call-btn{
width: 173px; width: 173px;
height: 38px; height: 38px;
...@@ -681,6 +689,21 @@ export default { ...@@ -681,6 +689,21 @@ export default {
margin-top: 15px; margin-top: 15px;
border: none; border: none;
} }
.viedo-container{
width: 100px;
height:100px;
margin: auto;
margin-top: 15px;
// position: absolute;
// top: 0;
// left: 0;
// right: 0;
// bottom: 0;
// margin: auto;
}
} }
} }
.vedio-man{ .vedio-man{
...@@ -724,4 +747,5 @@ export default { ...@@ -724,4 +747,5 @@ export default {
margin: 15px auto 6%; margin: 15px auto 6%;
} }
} }
</style> </style>
...@@ -58,8 +58,10 @@ export default { ...@@ -58,8 +58,10 @@ export default {
pageSize: 6, pageSize: 6,
returnStatus: 1 returnStatus: 1
}; };
this.$store.commit("clearRawCurrentCalList")
this.POST('/diagnose/socket/condition/update', p).then(res=>{ this.POST('/diagnose/socket/condition/update', p).then(res=>{
if(res.code == '000000'){ if(res.code == '000000'){
this.$store.commit('updateSoketQuest', p) this.$store.commit('updateSoketQuest', p)
this.$router.push({path:'/workbench'}) this.$router.push({path:'/workbench'})
}else{ }else{
......
import storejs from 'storejs'; import storejs from 'storejs';
export default { export default {
updateCurrentDiagList(state, obj) { updateCurrentDiagList(state, obj) {
state.currentDiagList = obj; state.currentDiagList = obj;
}, },
// 改变原数据
changeRawCurrentCalList(state,obj){
// console.log("obj",obj)
let index = state.RawCurrentCalList.findIndex(val=>{
return val.status==obj.status
})
if(index>-1){
state.RawCurrentCalList[index]=obj
state.currentCalList[index].is_dot=false
}
},
clearRawCurrentCalList(state){
state.RawCurrentCalList=[]
},
updateCurrentCalList(state, obj) { updateCurrentCalList(state, obj) {
state.currentCalList = obj; let NewData=obj
if(state.RawCurrentCalList.length==0){
state.RawCurrentCalList=obj
}
let RawData=state.RawCurrentCalList
for (let i = 0; i < NewData.length; i++) {
let is_dot = false;
if (RawData.length > 0) {
is_dot = NewData[i].count > RawData[i].count ? true: false;
}
NewData[i] = {
...NewData[i],
is_dot: is_dot,
};
}
state.currentCalList = NewData;
}, },
updateCurrentChat(state, obj) { updateCurrentChat(state, obj) {
state.currentChat = obj; state.currentChat = obj;
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
export default { export default {
currentDiagList:[], currentDiagList:[],
currentCalList:{}, currentCalList:{},
RawCurrentCalList:[],
currentChat: {}, currentChat: {},
currentAdvice: {}, currentAdvice: {},
soketQuest: {}, soketQuest: {},
......
...@@ -816,7 +816,7 @@ const change = (num) => { ...@@ -816,7 +816,7 @@ const change = (num) => {
} }
return num; return num;
} }
// 拖拽
export const bindDragHeader = (classname,content) =>{ export const bindDragHeader = (classname,content) =>{
const dragDom = document.querySelector(classname); const dragDom = document.querySelector(classname);
const con = document.querySelector(content); const con = document.querySelector(content);
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
:label="item.status" :label="item.status"
> >
{{ item.statusStr }}({{ item.count }}) {{ item.statusStr }}({{ item.count }})
<i class="circle-red"></i> <i class="circle-red" v-if="item.is_dot"></i>
</el-radio-button> </el-radio-button>
<!-- <el-radio-button label="1">待处理({{currentCalList}})</el-radio-button>--> <!-- <el-radio-button label="1">待处理({{currentCalList}})</el-radio-button>-->
</el-radio-group> </el-radio-group>
...@@ -80,6 +80,7 @@ export default { ...@@ -80,6 +80,7 @@ export default {
}, },
watch: { watch: {
isSuperAdmin(newdata, olddata) { isSuperAdmin(newdata, olddata) {
// console.log("ererer")
if (newdata !== olddata && newdata.userID) { if (newdata !== olddata && newdata.userID) {
const s = storejs.get("soketQuest"); const s = storejs.get("soketQuest");
const d = s ? s.dateTime : new Date().format("yyyy-MM-dd"); const d = s ? s.dateTime : new Date().format("yyyy-MM-dd");
...@@ -93,15 +94,14 @@ export default { ...@@ -93,15 +94,14 @@ export default {
returnStatus: s ? s.returnStatus : 1, returnStatus: s ? s.returnStatus : 1,
}; };
this.searchParam = p; this.searchParam = p;
this.inquirySearch(); this.inquirySearch("clear");
} }
}, },
}, },
data() { data() {
const s = storejs.get("soketQuest"); const s = storejs.get("soketQuest");
const d = s ? s.dateTime : new Date().format("yyyy-MM-dd"); const d = s ? s.dateTime : new Date().format("yyyy-MM-dd");
let id = let id = s && s.operateUserId ? s.operateUserId : this.isSuperAdmin.userID;
s && s.operateUserId ? s.operateUserId : this.isSuperAdmin.userID;
return { return {
tabPosition: "1", tabPosition: "1",
showChat: true, showChat: true,
...@@ -145,18 +145,19 @@ export default { ...@@ -145,18 +145,19 @@ export default {
}; };
}, },
created() {}, created() {},
mounted() {},
methods: { methods: {
tabChange(val) { tabChange(val) {
const s = this.searchParam; const s = this.searchParam;
s.returnStatus = val; s.returnStatus = val;
this.searchParam = s; this.searchParam = s;
this.inquirySearch(); this.inquirySearch("tab");
}, },
changeDatetime(val) { changeDatetime(val) {
const s = this.searchParam; const s = this.searchParam;
s.dateTime = val.format("yyyy-MM-dd"); s.dateTime = val.format("yyyy-MM-dd");
this.searchParam = s; this.searchParam = s;
this.inquirySearch(); this.inquirySearch("clear");
}, },
handleSizeChange(val) { handleSizeChange(val) {
const s = this.searchParam; const s = this.searchParam;
...@@ -169,11 +170,24 @@ export default { ...@@ -169,11 +170,24 @@ export default {
this.searchParam = s; this.searchParam = s;
this.inquirySearch(); this.inquirySearch();
}, },
inquirySearch() { inquirySearch(type) {
const p = this.searchParam; const p = this.searchParam;
if (type == "clear") {
this.$store.commit("clearRawCurrentCalList");
}
this.POST("/diagnose/socket/condition/update", p).then((res) => { this.POST("/diagnose/socket/condition/update", p).then((res) => {
if (res.code == "000000") { if (res.code == "000000") {
this.$store.commit("updateSoketQuest", p); this.$store.commit("updateSoketQuest", p);
if (type == "tab") {
const returnStatus = p.returnStatus;
const RespList = res.data.list[0].recordResp.countRespList.filter(
(val) => {
return val.status == returnStatus;
}
);
this.$store.commit("changeRawCurrentCalList", RespList[0]);
}
} else { } else {
this.$message({ this.$message({
message: res.message, message: res.message,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册