提交 f55b3271 编写于 作者: 张磊's avatar 张磊

doctor list

上级 734acaee
...@@ -22,11 +22,6 @@ ...@@ -22,11 +22,6 @@
"regenerator-runtime": "^0.13.4" "regenerator-runtime": "^0.13.4"
} }
}, },
"@types/component-emitter": {
"version": "1.2.10",
"resolved": "http://192.168.110.93:4873/@types%2fcomponent-emitter/-/component-emitter-1.2.10.tgz",
"integrity": "sha1-71sVibnxZURkLkc9tepWORB+8+o="
},
"abbrev": { "abbrev": {
"version": "1.1.1", "version": "1.1.1",
"resolved": "http://192.168.110.93:4873/abbrev/-/abbrev-1.1.1.tgz", "resolved": "http://192.168.110.93:4873/abbrev/-/abbrev-1.1.1.tgz",
...@@ -49,6 +44,11 @@ ...@@ -49,6 +44,11 @@
"integrity": "sha1-ReN/s56No/JbruP/U2niu18iAXo=", "integrity": "sha1-ReN/s56No/JbruP/U2niu18iAXo=",
"dev": true "dev": true
}, },
"after": {
"version": "0.8.2",
"resolved": "http://192.168.110.93:4873/after/-/after-0.8.2.tgz",
"integrity": "sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8="
},
"ajv": { "ajv": {
"version": "4.11.8", "version": "4.11.8",
"resolved": "http://192.168.110.93:4873/ajv/-/ajv-4.11.8.tgz", "resolved": "http://192.168.110.93:4873/ajv/-/ajv-4.11.8.tgz",
...@@ -202,6 +202,11 @@ ...@@ -202,6 +202,11 @@
"integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=",
"dev": true "dev": true
}, },
"arraybuffer.slice": {
"version": "0.0.7",
"resolved": "http://192.168.110.93:4873/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz",
"integrity": "sha1-O7xCdd1YTMGxCAm4nU6LY6aednU="
},
"asap": { "asap": {
"version": "2.0.6", "version": "2.0.6",
"resolved": "http://192.168.110.93:4873/asap/-/asap-2.0.6.tgz", "resolved": "http://192.168.110.93:4873/asap/-/asap-2.0.6.tgz",
...@@ -276,6 +281,11 @@ ...@@ -276,6 +281,11 @@
"integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI=", "integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI=",
"dev": true "dev": true
}, },
"async-limiter": {
"version": "1.0.1",
"resolved": "http://192.168.110.93:4873/async-limiter/-/async-limiter-1.0.1.tgz",
"integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ=="
},
"async-validator": { "async-validator": {
"version": "1.8.5", "version": "1.8.5",
"resolved": "http://192.168.110.93:4873/async-validator/-/async-validator-1.8.5.tgz", "resolved": "http://192.168.110.93:4873/async-validator/-/async-validator-1.8.5.tgz",
...@@ -1186,9 +1196,9 @@ ...@@ -1186,9 +1196,9 @@
} }
}, },
"base64-arraybuffer": { "base64-arraybuffer": {
"version": "0.1.4", "version": "0.1.5",
"resolved": "http://192.168.110.93:4873/base64-arraybuffer/-/base64-arraybuffer-0.1.4.tgz", "resolved": "http://192.168.110.93:4873/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz",
"integrity": "sha1-mBjHngWbE1X5fgQooBfIOOkLqBI=" "integrity": "sha1-c5JncZI7Whl0etZmqlzUv5xunOg="
}, },
"base64-js": { "base64-js": {
"version": "1.5.1", "version": "1.5.1",
...@@ -1211,6 +1221,14 @@ ...@@ -1211,6 +1221,14 @@
"tweetnacl": "^0.14.3" "tweetnacl": "^0.14.3"
} }
}, },
"better-assert": {
"version": "1.0.2",
"resolved": "http://192.168.110.93:4873/better-assert/-/better-assert-1.0.2.tgz",
"integrity": "sha1-QIZrnhueC1W0gYlDEeaPr/rrxSI=",
"requires": {
"callsite": "1.0.0"
}
},
"better-scroll": { "better-scroll": {
"version": "0.1.15", "version": "0.1.15",
"resolved": "http://192.168.110.93:4873/better-scroll/-/better-scroll-0.1.15.tgz", "resolved": "http://192.168.110.93:4873/better-scroll/-/better-scroll-0.1.15.tgz",
...@@ -1241,6 +1259,11 @@ ...@@ -1241,6 +1259,11 @@
"file-uri-to-path": "1.0.0" "file-uri-to-path": "1.0.0"
} }
}, },
"blob": {
"version": "0.0.5",
"resolved": "http://192.168.110.93:4873/blob/-/blob-0.0.5.tgz",
"integrity": "sha1-1oDu7yX4zZGtUz9bAe7UjmTK9oM="
},
"block-stream": { "block-stream": {
"version": "0.0.9", "version": "0.0.9",
"resolved": "http://192.168.110.93:4873/block-stream/-/block-stream-0.0.9.tgz", "resolved": "http://192.168.110.93:4873/block-stream/-/block-stream-0.0.9.tgz",
...@@ -1387,6 +1410,11 @@ ...@@ -1387,6 +1410,11 @@
} }
} }
}, },
"callsite": {
"version": "1.0.0",
"resolved": "http://192.168.110.93:4873/callsite/-/callsite-1.0.0.tgz",
"integrity": "sha1-KAOY5dZkvXQDi28JBRU+borxvCA="
},
"camel-case": { "camel-case": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "http://192.168.110.93:4873/camel-case/-/camel-case-3.0.0.tgz", "resolved": "http://192.168.110.93:4873/camel-case/-/camel-case-3.0.0.tgz",
...@@ -1729,11 +1757,21 @@ ...@@ -1729,11 +1757,21 @@
"integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=",
"dev": true "dev": true
}, },
"component-bind": {
"version": "1.0.0",
"resolved": "http://192.168.110.93:4873/component-bind/-/component-bind-1.0.0.tgz",
"integrity": "sha1-AMYIq33Nk4l8AAllGx06jh5zu9E="
},
"component-emitter": { "component-emitter": {
"version": "1.3.0", "version": "1.3.0",
"resolved": "http://192.168.110.93:4873/component-emitter/-/component-emitter-1.3.0.tgz", "resolved": "http://192.168.110.93:4873/component-emitter/-/component-emitter-1.3.0.tgz",
"integrity": "sha1-FuQHD7qK4ptnnyIVhT7hgasuq8A=" "integrity": "sha1-FuQHD7qK4ptnnyIVhT7hgasuq8A="
}, },
"component-inherit": {
"version": "0.0.3",
"resolved": "http://192.168.110.93:4873/component-inherit/-/component-inherit-0.0.3.tgz",
"integrity": "sha1-ZF/ErfWLcrZJ1crmUTVhnbJv8UM="
},
"compressible": { "compressible": {
"version": "2.0.18", "version": "2.0.18",
"resolved": "http://192.168.110.93:4873/compressible/-/compressible-2.0.18.tgz", "resolved": "http://192.168.110.93:4873/compressible/-/compressible-2.0.18.tgz",
...@@ -2329,42 +2367,48 @@ ...@@ -2329,42 +2367,48 @@
"dev": true "dev": true
}, },
"engine.io-client": { "engine.io-client": {
"version": "5.1.2", "version": "3.3.3",
"resolved": "http://192.168.110.93:4873/engine.io-client/-/engine.io-client-5.1.2.tgz", "resolved": "http://192.168.110.93:4873/engine.io-client/-/engine.io-client-3.3.3.tgz",
"integrity": "sha1-JxCNqbOa4DJiRD2UXK8sqjZVxMs=", "integrity": "sha1-rrRWlc7YG3h6ihDJKwvCJrHLPFM=",
"requires": { "requires": {
"base64-arraybuffer": "0.1.4", "component-emitter": "1.2.1",
"component-emitter": "~1.3.0", "component-inherit": "0.0.3",
"debug": "~4.3.1", "debug": "~3.1.0",
"engine.io-parser": "~4.0.1", "engine.io-parser": "~2.1.1",
"has-cors": "1.1.0", "has-cors": "1.1.0",
"parseqs": "0.0.6", "indexof": "0.0.1",
"parseuri": "0.0.6", "parseqs": "0.0.5",
"ws": "~7.4.2", "parseuri": "0.0.5",
"ws": "~6.1.0",
"xmlhttprequest-ssl": "~1.6.3",
"yeast": "0.1.2" "yeast": "0.1.2"
}, },
"dependencies": { "dependencies": {
"component-emitter": {
"version": "1.2.1",
"resolved": "http://192.168.110.93:4873/component-emitter/-/component-emitter-1.2.1.tgz",
"integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY="
},
"debug": { "debug": {
"version": "4.3.2", "version": "3.1.0",
"resolved": "http://192.168.110.93:4873/debug/-/debug-4.3.2.tgz", "resolved": "http://192.168.110.93:4873/debug/-/debug-3.1.0.tgz",
"integrity": "sha1-8KScGKyHeeMdSgxgKd+3aHPHQos=", "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
"requires": { "requires": {
"ms": "2.1.2" "ms": "2.0.0"
} }
},
"ms": {
"version": "2.1.2",
"resolved": "http://192.168.110.93:4873/ms/-/ms-2.1.2.tgz",
"integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk="
} }
} }
}, },
"engine.io-parser": { "engine.io-parser": {
"version": "4.0.2", "version": "2.1.3",
"resolved": "http://192.168.110.93:4873/engine.io-parser/-/engine.io-parser-4.0.2.tgz", "resolved": "http://192.168.110.93:4873/engine.io-parser/-/engine.io-parser-2.1.3.tgz",
"integrity": "sha1-5B0LP7Zve/SjZx0gOKFUAk7bUB4=", "integrity": "sha1-dXq5cPvy37Mse3SwMyFtVznveaY=",
"requires": { "requires": {
"base64-arraybuffer": "0.1.4" "after": "0.8.2",
"arraybuffer.slice": "~0.0.7",
"base64-arraybuffer": "0.1.5",
"blob": "0.0.5",
"has-binary2": "~1.0.2"
} }
}, },
"enhanced-resolve": { "enhanced-resolve": {
...@@ -3574,6 +3618,21 @@ ...@@ -3574,6 +3618,21 @@
} }
} }
}, },
"has-binary2": {
"version": "1.0.3",
"resolved": "http://192.168.110.93:4873/has-binary2/-/has-binary2-1.0.3.tgz",
"integrity": "sha1-d3asYn8+p3JQz8My2rfd9eT10R0=",
"requires": {
"isarray": "2.0.1"
},
"dependencies": {
"isarray": {
"version": "2.0.1",
"resolved": "http://192.168.110.93:4873/isarray/-/isarray-2.0.1.tgz",
"integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4="
}
}
},
"has-cors": { "has-cors": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "http://192.168.110.93:4873/has-cors/-/has-cors-1.1.0.tgz", "resolved": "http://192.168.110.93:4873/has-cors/-/has-cors-1.1.0.tgz",
...@@ -3874,8 +3933,7 @@ ...@@ -3874,8 +3933,7 @@
"indexof": { "indexof": {
"version": "0.0.1", "version": "0.0.1",
"resolved": "http://192.168.110.93:4873/indexof/-/indexof-0.0.1.tgz", "resolved": "http://192.168.110.93:4873/indexof/-/indexof-0.0.1.tgz",
"integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=", "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10="
"dev": true
}, },
"inflight": { "inflight": {
"version": "1.0.6", "version": "1.0.6",
...@@ -4892,8 +4950,7 @@ ...@@ -4892,8 +4950,7 @@
"ms": { "ms": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "http://192.168.110.93:4873/ms/-/ms-2.0.0.tgz", "resolved": "http://192.168.110.93:4873/ms/-/ms-2.0.0.tgz",
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
"dev": true
}, },
"nan": { "nan": {
"version": "2.14.2", "version": "2.14.2",
...@@ -5438,6 +5495,11 @@ ...@@ -5438,6 +5495,11 @@
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
"dev": true "dev": true
}, },
"object-component": {
"version": "0.0.3",
"resolved": "http://192.168.110.93:4873/object-component/-/object-component-0.0.3.tgz",
"integrity": "sha1-8MaapQ78lbhmwYb0AKM3acsvEpE="
},
"object-copy": { "object-copy": {
"version": "0.1.0", "version": "0.1.0",
"resolved": "http://192.168.110.93:4873/object-copy/-/object-copy-0.1.0.tgz", "resolved": "http://192.168.110.93:4873/object-copy/-/object-copy-0.1.0.tgz",
...@@ -5698,14 +5760,20 @@ ...@@ -5698,14 +5760,20 @@
} }
}, },
"parseqs": { "parseqs": {
"version": "0.0.6", "version": "0.0.5",
"resolved": "http://192.168.110.93:4873/parseqs/-/parseqs-0.0.6.tgz", "resolved": "http://192.168.110.93:4873/parseqs/-/parseqs-0.0.5.tgz",
"integrity": "sha1-jku1oZ0c3IRKCKyXTTTic6+mcNU=" "integrity": "sha1-1SCKNzjkZ2bikbouoXNoSSGouJ0=",
"requires": {
"better-assert": "~1.0.0"
}
}, },
"parseuri": { "parseuri": {
"version": "0.0.6", "version": "0.0.5",
"resolved": "http://192.168.110.93:4873/parseuri/-/parseuri-0.0.6.tgz", "resolved": "http://192.168.110.93:4873/parseuri/-/parseuri-0.0.5.tgz",
"integrity": "sha512-AUjen8sAkGgao7UyCX6Ahv0gIK2fABKmYjvP4xmy5JaKvcbTRueIqIPHLAfq30xJddqSE033IOMUSOMCcK3Sow==" "integrity": "sha1-gCBKUNTbt3m/3G6+J3jZDkvOMgo=",
"requires": {
"better-assert": "~1.0.0"
}
}, },
"parseurl": { "parseurl": {
"version": "1.3.3", "version": "1.3.3",
...@@ -7676,56 +7744,63 @@ ...@@ -7676,56 +7744,63 @@
} }
}, },
"socket.io-client": { "socket.io-client": {
"version": "4.1.3", "version": "2.2.0",
"resolved": "http://192.168.110.93:4873/socket.io-client/-/socket.io-client-4.1.3.tgz", "resolved": "http://192.168.110.93:4873/socket.io-client/-/socket.io-client-2.2.0.tgz",
"integrity": "sha1-I22qZCqfIpky4AtyIehDv3QjKmI=", "integrity": "sha1-hOc+48Q9UCDMwaJY+u65rsJyOvc=",
"requires": { "requires": {
"@types/component-emitter": "^1.2.10", "backo2": "1.0.2",
"backo2": "~1.0.2", "base64-arraybuffer": "0.1.5",
"component-emitter": "~1.3.0", "component-bind": "1.0.0",
"debug": "~4.3.1", "component-emitter": "1.2.1",
"engine.io-client": "~5.1.2", "debug": "~3.1.0",
"parseuri": "0.0.6", "engine.io-client": "~3.3.1",
"socket.io-parser": "~4.0.4" "has-binary2": "~1.0.2",
"has-cors": "1.1.0",
"indexof": "0.0.1",
"object-component": "0.0.3",
"parseqs": "0.0.5",
"parseuri": "0.0.5",
"socket.io-parser": "~3.3.0",
"to-array": "0.1.4"
}, },
"dependencies": { "dependencies": {
"component-emitter": {
"version": "1.2.1",
"resolved": "http://192.168.110.93:4873/component-emitter/-/component-emitter-1.2.1.tgz",
"integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY="
},
"debug": { "debug": {
"version": "4.3.2", "version": "3.1.0",
"resolved": "http://192.168.110.93:4873/debug/-/debug-4.3.2.tgz", "resolved": "http://192.168.110.93:4873/debug/-/debug-3.1.0.tgz",
"integrity": "sha1-8KScGKyHeeMdSgxgKd+3aHPHQos=", "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
"requires": { "requires": {
"ms": "2.1.2" "ms": "2.0.0"
} }
},
"ms": {
"version": "2.1.2",
"resolved": "http://192.168.110.93:4873/ms/-/ms-2.1.2.tgz",
"integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk="
} }
} }
}, },
"socket.io-parser": { "socket.io-parser": {
"version": "4.0.4", "version": "3.3.2",
"resolved": "http://192.168.110.93:4873/socket.io-parser/-/socket.io-parser-4.0.4.tgz", "resolved": "http://192.168.110.93:4873/socket.io-parser/-/socket.io-parser-3.3.2.tgz",
"integrity": "sha1-nqIbDWFQjRgZbvBKLGuatjD0wrA=", "integrity": "sha1-74cgCdCtz3BPL76DAZGhR1KtULY=",
"requires": { "requires": {
"@types/component-emitter": "^1.2.10",
"component-emitter": "~1.3.0", "component-emitter": "~1.3.0",
"debug": "~4.3.1" "debug": "~3.1.0",
"isarray": "2.0.1"
}, },
"dependencies": { "dependencies": {
"debug": { "debug": {
"version": "4.3.2", "version": "3.1.0",
"resolved": "http://192.168.110.93:4873/debug/-/debug-4.3.2.tgz", "resolved": "http://192.168.110.93:4873/debug/-/debug-3.1.0.tgz",
"integrity": "sha1-8KScGKyHeeMdSgxgKd+3aHPHQos=", "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
"requires": { "requires": {
"ms": "2.1.2" "ms": "2.0.0"
} }
}, },
"ms": { "isarray": {
"version": "2.1.2", "version": "2.0.1",
"resolved": "http://192.168.110.93:4873/ms/-/ms-2.1.2.tgz", "resolved": "http://192.168.110.93:4873/isarray/-/isarray-2.0.1.tgz",
"integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk=" "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4="
} }
} }
}, },
...@@ -8227,6 +8302,11 @@ ...@@ -8227,6 +8302,11 @@
"resolved": "http://192.168.110.93:4873/tiny-emitter/-/tiny-emitter-2.1.0.tgz", "resolved": "http://192.168.110.93:4873/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
"integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==" "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q=="
}, },
"to-array": {
"version": "0.1.4",
"resolved": "http://192.168.110.93:4873/to-array/-/to-array-0.1.4.tgz",
"integrity": "sha1-F+bBH3PdTz10zaek/zI46a2b+JA="
},
"to-arraybuffer": { "to-arraybuffer": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "http://192.168.110.93:4873/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", "resolved": "http://192.168.110.93:4873/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz",
...@@ -9170,9 +9250,17 @@ ...@@ -9170,9 +9250,17 @@
"dev": true "dev": true
}, },
"ws": { "ws": {
"version": "7.4.6", "version": "6.1.4",
"resolved": "http://192.168.110.93:4873/ws/-/ws-7.4.6.tgz", "resolved": "http://192.168.110.93:4873/ws/-/ws-6.1.4.tgz",
"integrity": "sha1-VlTKjs3u5HwzqaS/bSjivimAN3w=" "integrity": "sha512-eqZfL+NE/YQc1/ZynhojeV8q+H050oR8AZ2uIev7RU10svA9ZnJUddHcOUZTJLinZ9yEfdA2kSATS2qZK5fhJA==",
"requires": {
"async-limiter": "~1.0.0"
}
},
"xmlhttprequest-ssl": {
"version": "1.6.3",
"resolved": "http://192.168.110.93:4873/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.6.3.tgz",
"integrity": "sha1-A7cThzsBZZ36LBxdBWBlsn3cLeY="
}, },
"xtend": { "xtend": {
"version": "4.0.2", "version": "4.0.2",
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
"js-cookie": "^2.2.0", "js-cookie": "^2.2.0",
"qiniu-js": "^3.1.2", "qiniu-js": "^3.1.2",
"showdown": "^1.6.4", "showdown": "^1.6.4",
"socket.io-client": "^4.1.3", "socket.io-client": "2.2.0",
"vue": "^2.1.0", "vue": "^2.1.0",
"vue-router": "^2.1.1", "vue-router": "^2.1.1",
"vuex": "^2.0.0" "vuex": "^2.0.0"
......
...@@ -31,7 +31,7 @@ import { ...@@ -31,7 +31,7 @@ import {
bindDragHeader bindDragHeader
} from "./utils/utils.js"; } from "./utils/utils.js";
import { mapActions, mapGetters } from "vuex"; import { mapActions, mapGetters } from "vuex";
import { getLoginUrl, getInnerLoginUrl } from "./utils/index.js"; import { getInnerLoginUrl } from "./utils/index";
let vm = null; let vm = null;
export default { export default {
components: { components: {
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
userName: "", userName: "",
authList: [], authList: [],
systemType: 0, systemType: 0,
showChat:true showChat:false
}; };
}, },
computed: { computed: {
...@@ -60,8 +60,13 @@ export default { ...@@ -60,8 +60,13 @@ export default {
setTimeout( function () { setTimeout( function () {
bindDragHeader('.c-header', '.chat-wrap'); bindDragHeader('.c-header', '.chat-wrap');
}, 1000) }, 1000)
this.$store.dispatch( 'socket/initSocket',{url: 'http://10.177.11.251:15202'})
}, },
methods: { methods: {
// 修改token
...mapActions(["changeToken"]),
// 解密token // 解密token
getToken() { getToken() {
let href = window.location.href; let href = window.location.href;
...@@ -94,8 +99,7 @@ export default { ...@@ -94,8 +99,7 @@ export default {
vm.changeToken(vm.token); vm.changeToken(vm.token);
vm.getUserAuth(); vm.getUserAuth();
}, },
// 修改token
...mapActions(["changeToken"]),
// 获取用户权限 // 获取用户权限
getUserAuth(token) { getUserAuth(token) {
let req = null; let req = null;
......
...@@ -287,7 +287,6 @@ export default { ...@@ -287,7 +287,6 @@ export default {
userSig: this.userSig, userSig: this.userSig,
vueInstance: this, vueInstance: this,
}; };
console.log('--=-123123-', obj, RtcClient );
this.rtc = new RtcClient(obj); this.rtc = new RtcClient(obj);
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.alert this.$refs.alert
......
<template> <template>
<div class="inquirylist"> <div class="inquirylist">
<el-row> <el-row>
<el-col :span="8" > <el-col :span="8" >
<el-card shadow="always" :body-style="{ padding: '0px' }"> <el-card shadow="always" :body-style="{ padding: '0px' }">
<div class="inquiryname"> <div class="inquiryname">
<div class="inquiryinfo"> <div class="inquiryinfo">
<div class="infone">{{item.diagnoseLogId}}<span class="department">{{item.department}} </span></div> <div class="infone">{{item.diagnoseLogId}}<span class="department">{{item.department}} </span></div>
<div class="talk"> <i :class="{voice:item.diagnoseType==1,video:item.diagnoseType==2,photo:item.diagnoseType==2}"></i> {{diagnoseType}}</div> <div class="talk"> <i :class="{voice:item.diagnoseType==1,video:item.diagnoseType==2,photo:item.diagnoseType==2}"></i> {{diagnoseType}}</div>
<span class="time"> <i class="appointment"></i> {{appointBeginTime}}</span> <span class="time"> <i class="appointment"></i> {{appointBeginTime}}</span>
</div> </div>
<div class="inquirystatus"> <div class="inquirystatus">
<span class="status" :style="item.returnStatus==1?'color:#ff865e':item.returnStatus==2?'color:#063948':''">{{returnStatus}}</span> <span class="status" :style="item.returnStatus==1?'color:#ff865e':item.returnStatus==2?'color:#063948':''">{{returnStatus}}</span>
<div class="inquirytime" v-if="item.returnStatus==2"><span></span> 已问诊{{inquiry.countdown}}</div> <div class="inquirytime" v-if="item.returnStatus==2"><span></span> 已问诊{{inquiry.countdown}}</div>
</div> </div>
</div> </div>
<div class="inquirydoctor"> <div class="inquirydoctor">
<div class="visitingdoctor"> <div class="visitingdoctor">
<em class="offline" v-if="item.doctorTrtcEntryStatus==2" ></em> <em class="offline" v-if="item.doctorTrtcEntryStatus==2" ></em>
<div class="onedoctor"> <el-avatar src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></el-avatar></div> <div class="onedoctor"> <el-avatar src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></el-avatar></div>
<div class="onedoctorname"> {{item.doctorName}} <span>接诊医生</span> <div class="onedoctorname"> {{item.doctorName}} <span>接诊医生</span>
<div class="onedoctornum">{{item.doctorMobile}} <span v-if="item.doctorCallTime">{{}}小时前呼叫</span> <span v-if="inquiry.answer">未接听</span><i v-else></i></div> <div class="onedoctornum">{{item.doctorMobile}} <span v-if="item.doctorCallTime">{{}}小时前呼叫</span> <span v-if="inquiry.answer">未接听</span><i v-else></i></div>
</div> </div>
<img <img
@click="calldoc()" @click="calldoc()"
v-if="inquiry.imgshowdoc" v-if="inquiry.imgshowdoc"
style="width: 40px; height: 41px ;margin-left:4px; cursor:pointer;" style="width: 40px; height: 41px ;margin-left:4px; cursor:pointer;"
:src="inquiry.imgshow?require('../../assets/image/workbench/callout.png'):require('../../assets/image/workbench/callouting.png')" :src="inquiry.imgshow?require('../../assets/image/workbench/callout.png'):require('../../assets/image/workbench/callouting.png')"
alt /> alt />
</div> </div>
<div class="helpdoctor"> <div class="helpdoctor">
<em v-if="item.userTrtcEntryStatus==2" class="offline"></em> <em v-if="item.userTrtcEntryStatus==2" class="offline"></em>
<div class="onedoctor"> <el-avatar src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></el-avatar></div> <div class="onedoctor"> <el-avatar src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></el-avatar></div>
<div class="onedoctorname"> {{item.userName}} <span>助诊医生</span> <div class="onedoctorname"> {{item.userName}} <span>助诊医生</span>
<div class="onedoctornum">{{item.userMobile}} <span v-if="item.userCallTime">{{}}小时前呼叫</span> <span v-if="inquiry.answer">未接听</span><i v-else></i></div> <div class="onedoctornum">{{item.userMobile}} <span v-if="item.userCallTime">{{}}小时前呼叫</span> <span v-if="inquiry.answer">未接听</span><i v-else></i></div>
</div> </div>
<img <img
v-if="inquiry.imgshowhelp" v-if="inquiry.imgshowhelp"
style="width: 40px; height: 41px ;margin-left:10px; cursor:pointer;" style="width: 40px; height: 41px ;margin-left:10px; cursor:pointer;"
:src="inquiry.imgshowhelp?require('../../assets/image/workbench/callout.png'):require('../../assets/image/workbench/callouting.png')" :src="inquiry.imgshowhelp?require('../../assets/image/workbench/callout.png'):require('../../assets/image/workbench/callouting.png')"
alt /> alt />
</div> </div>
</div> </div>
<div class="inquiryroom"> <div class="inquiryroom">
<div class="goroom"><span v-if="nomor">进入诊室</span><span v-else>正在呼叫医助,进入诊室</span> </div> <div class="goroom"><span v-if="nomor">进入诊室</span><span v-else>正在呼叫医助,进入诊室</span> </div>
<div class="suggest" @click="showAdvice()">诊断建议 <div class="writesuggest" v-if="inquiry.write">未写</div></div> <div class="suggest" @click="showAdvice()">诊断建议 <div class="writesuggest" v-if="inquiry.write">未写</div></div>
</div> </div>
</el-card> </el-card>
</el-col> </el-col>
</el-row> </el-row>
<diagnoseAdvice v-if="showAdvices"></diagnoseAdvice> <diagnoseAdvice v-if="showAdvices"></diagnoseAdvice>
</div> </div>
</template> </template>
<script> <script>
import DiagnoseAdvice from '@/components/common/diagnoseAdvice.vue' import DiagnoseAdvice from '@/components/common/diagnoseAdvice.vue'
export default { export default {
components:{ components:{
DiagnoseAdvice DiagnoseAdvice
}, },
data() { data() {
return { return {
inquiry:{ inquiry:{
online:true, online:true,
answer:null, answer:null,
imgshowdoc:true, imgshowdoc:true,
imgshowhelp:true, imgshowhelp:true,
imgshow:true, imgshow:true,
docavator:'', docavator:'',
write:false, write:false,
doctorline:[true ,false] doctorline:[true ,false]
}, },
calldoctor:true, calldoctor:true,
timer:null, timer:null,
flag:true, flag:true,
nomor:true, nomor:true,
showAdvices:false showAdvices:false
}; };
}, },
props:{ props:{
item:{ item:{
type:Object, type:Object,
default:0 default:{}
} }
}, },
created() { created() {
}, },
computed:{ computed:{
diagnoseType() { diagnoseType() {
switch(this.item.diagnoseType) { switch(this.item.diagnoseType) {
case 1: case 1:
return '语音问诊' return '语音问诊'
case 2: case 2:
return '视频问诊' return '视频问诊'
break; break;
case 3: case 3:
return '图文问诊' return '图文问诊'
break; break;
default: default:
return'' return''
} }
}, },
returnStatus() { returnStatus() {
switch(this.item.returnStatus) { switch(this.item.returnStatus) {
case 1: case 1:
return '待处理' return '待处理'
case 2: case 2:
return '问诊进行中' return '问诊进行中'
case 3: case 3:
return '未开始' return '未开始'
case 4: case 4:
return '已结束' return '已结束'
case 5: case 5:
return '已取消' return '已取消'
case 99: case 99:
return '全部' return '全部'
default: default:
return'' return''
} }
}, },
appointBeginTime() { appointBeginTime() {
let starttime =this.item.appointBeginTime.slice(0,10) if(this.item.appointBeginTime) {
let endtime = `${this.item.appointBeginTime.slice(11,16)}-${this.item.appointEndTime.slice(11,16)}` let starttime =this.item.appointBeginTime.slice(0,10)
return starttime +' '+ endtime let endtime = `${this.item.appointBeginTime.slice(11,16)}-${this.item.appointEndTime.slice(11,16)}`
}, return starttime +' '+ endtime
}, }
methods: { },
calldoc() { },
if(this.flag){ methods: {
this.inquiry.imgshow = false calldoc() {
let nums = 120 if(this.flag){
this.flag = false this.inquiry.imgshow = false
this.timer = setInterval(() => { let nums = 120
if(nums>0){ this.flag = false
nums-- this.timer = setInterval(() => {
}else{ if(nums>0){
clearInterval(this.timer) nums--
this.timer = null; }else{
this.inquiry.imgshow = true clearInterval(this.timer)
this.flag = true this.timer = null;
} this.inquiry.imgshow = true
console.log(nums,this.inquiry.imgshow); this.flag = true
}, 1000); }
} console.log(nums,this.inquiry.imgshow);
}, 1000);
}, }
showAdvice() {
this.showAdvices = true },
} showAdvice() {
} this.showAdvices = true
} }
</script> }
}
<style lang="scss" scoped> </script>
.inquirylist{
display: flex; <style lang="scss" scoped>
margin-bottom: 10px; .inquirylist{
padding: 10px 5px; display: flex;
overflow: hidden !important; margin-bottom: 10px;
.el-row{ padding: 10px 5px;
width: 100%; overflow: hidden !important;
height: 100%; .el-row{
.el-col{ width: 100%;
width: 572px; height: 100%;
height: 234px; .el-col{
margin-left: 5px; width: 572px;
margin-bottom: 12px; height: 234px;
.el-card{ margin-left: 5px;
height: 100%; margin-bottom: 12px;
border-radius: 18px; .el-card{
padding: 12px 32px 20px 34px ; height: 100%;
} border-radius: 18px;
} padding: 12px 32px 20px 34px ;
} }
}
.inquiryname{ }
display: flex;
margin-bottom: 4px; .inquiryname{
.inquiryinfo{ display: flex;
.infone{ margin-bottom: 4px;
font-size: 28px; .inquiryinfo{
font-weight: 700; .infone{
margin-bottom: 10px; font-size: 28px;
color: #063948; font-weight: 700;
>span{ margin-bottom: 10px;
font-size: 20px; color: #063948;
color: #063948; >span{
display: inline-block; font-size: 20px;
margin-left: 7px; color: #063948;
} display: inline-block;
} margin-left: 7px;
.talk{ }
width: 120px; }
height: 24px; .talk{
background: #F0F2F5; width: 120px;
border-radius: 23px; height: 24px;
color: #6A7990; background: #F0F2F5;
font-size: 14px; border-radius: 23px;
line-height: 24px; color: #6A7990;
text-align: center; font-size: 14px;
display: inline-block; line-height: 24px;
position: relative; text-align: center;
} display: inline-block;
.time{ position: relative;
width: 217px; }
height: 24px; .time{
background: #F0F2F5; width: 217px;
border-radius: 23px; height: 24px;
display: inline-block; background: #F0F2F5;
text-align: center; border-radius: 23px;
line-height: 24px; display: inline-block;
color: #6A7990; text-align: center;
margin-left: 5px; line-height: 24px;
} color: #6A7990;
} margin-left: 5px;
.inquirystatus{ }
.status{ }
position: relative; .inquirystatus{
right: -114px; .status{
top: 12px; position: relative;
} right: -114px;
.inquirytime{ top: 12px;
position: relative; }
left: 65px; .inquirytime{
top: 12px; position: relative;
font-size: 14px; left: 65px;
color: #6A7990; top: 12px;
} font-size: 14px;
} color: #6A7990;
} }
.inquirydoctor{ }
margin-bottom: 10px; }
padding-top: 15px; .inquirydoctor{
display: flex; margin-bottom: 10px;
.visitingdoctor{ padding-top: 15px;
position: relative; display: flex;
flex-basis: 50%; .visitingdoctor{
display: flex; position: relative;
padding: 5px 2px 7px 7px;s flex-basis: 50%;
.onedoctor{ display: flex;
width: 36px; padding: 5px 2px 7px 7px;s
height: 36px; .onedoctor{
width: 36px;
} height: 36px;
.offline{
position: absolute; }
top: 5px; .offline{
left: 4px; position: absolute;
width: 16px; top: 5px;
height: 16px; left: 4px;
background-image: url('../../assets/image/workbench/offline.png'); width: 16px;
} height: 16px;
.onedoctorname{ background-image: url('../../assets/image/workbench/offline.png');
// margin-top: 18px; }
font-size: 18px; .onedoctorname{
color: #063948; // margin-top: 18px;
margin-bottom: 7px; font-size: 18px;
font-weight: 700; color: #063948;
>span{ margin-bottom: 7px;
font-size: 14px; font-weight: 700;
} >span{
} font-size: 14px;
.onedoctornum{ }
font-size: 16px; }
margin-top: 2px; .onedoctornum{
} font-size: 16px;
} margin-top: 2px;
.helpdoctor{ }
flex-basis: 50%; }
position: relative; .helpdoctor{
display: flex; flex-basis: 50%;
margin-left: 8px; position: relative;
padding: 5px 2px 7px 7px;s display: flex;
.onedoctor{ margin-left: 8px;
width: 36px; padding: 5px 2px 7px 7px;s
height: 36px; .onedoctor{
} width: 36px;
.offline{ height: 36px;
position: absolute; }
top: 5px; .offline{
left: 4px; position: absolute;
width: 16px; top: 5px;
height: 16px; left: 4px;
background-image: url('../../assets/image/workbench/offline.png'); width: 16px;
} height: 16px;
.onedoctorname{ background-image: url('../../assets/image/workbench/offline.png');
// margin-top: 18px; }
font-size: 18px; .onedoctorname{
color: #063948; // margin-top: 18px;
margin-bottom: 7px; font-size: 18px;
font-weight: 700; color: #063948;
>span{ margin-bottom: 7px;
font-size: 14px; font-weight: 700;
} >span{
} font-size: 14px;
.onedoctornum{ }
font-size: 16px; }
margin-top: 2px; .onedoctornum{
} font-size: 16px;
} margin-top: 2px;
} }
.inquiryroom{ }
height: 45px; }
display: flex; .inquiryroom{
font-size: 14px; height: 45px;
.goroom{ display: flex;
cursor:pointer; font-size: 14px;
width: 238px; .goroom{
height: 37px; cursor:pointer;
background: rgb(239, 246, 244); width: 238px;
border-radius: 23px; height: 37px;
text-align: center; background: rgb(239, 246, 244);
line-height: 37px; border-radius: 23px;
>span{ text-align: center;
color: #449284; line-height: 37px;
opacity: 1; >span{
font-weight: 700; color: #449284;
} opacity: 1;
} font-weight: 700;
.suggest{ }
cursor:pointer; }
width: 238px; .suggest{
color: #449284; cursor:pointer;
margin-left: 24px; width: 238px;
height: 37px; color: #449284;
background: rgb(239, 246, 244); margin-left: 24px;
border-radius: 23px; height: 37px;
text-align: center; background: rgb(239, 246, 244);
line-height: 37px; border-radius: 23px;
font-weight: 700; text-align: center;
.writesuggest{ line-height: 37px;
position: relative; font-weight: 700;
top: -50px; .writesuggest{
right: -150px; position: relative;
color: #fff; top: -50px;
font-size: 14px; right: -150px;
text-align: center; color: #fff;
line-height: 20px; font-size: 14px;
width: 48px; text-align: center;
height: 20px; line-height: 20px;
background: #449284; width: 48px;
border-radius: 7px 7px 7px 0px; height: 20px;
} background: #449284;
} border-radius: 7px 7px 7px 0px;
} }
} }
@media screen and (min-width: 1911px) { }
.inquirylist{ }
display: flex; @media screen and (min-width: 1911px) {
margin-bottom: 10px; .inquirylist{
// margin: 20px 30px 0px; display: flex;
padding: 10px 5px; margin-bottom: 10px;
// background: #fff; // margin: 20px 30px 0px;
overflow: hidden !important; padding: 10px 5px;
.el-row{ // background: #fff;
width: 100%; overflow: hidden !important;
height: 100%; .el-row{
.el-col{ width: 100%;
width: 510px; height: 100%;
height: 208px; .el-col{
margin-left: 5px; width: 510px;
margin-bottom: 12px; height: 208px;
.el-card{ margin-left: 5px;
height: 100%; margin-bottom: 12px;
border-radius: 18px; .el-card{
padding: 12px 32px 20px 34px ; height: 100%;
} border-radius: 18px;
} padding: 12px 32px 20px 34px ;
} }
}
.inquiryname{ }
display: flex;
margin-bottom: 4px; .inquiryname{
.inquiryinfo{ display: flex;
.infone{ margin-bottom: 4px;
font-size: 24px; .inquiryinfo{
font-weight: 700; .infone{
margin-bottom: 6px; font-size: 24px;
color: #063948; font-weight: 700;
>span{ margin-bottom: 6px;
font-size: 16px; color: #063948;
color: #063948; >span{
display: inline-block; font-size: 16px;
margin-left: 6px; color: #063948;
} display: inline-block;
} margin-left: 6px;
.talk{ }
width: 96px; }
height: 20px; .talk{
background: #F0F2F5; width: 96px;
border-radius: 23px; height: 20px;
color: #6A7990; background: #F0F2F5;
font-size: 13px; border-radius: 23px;
line-height: 20px; color: #6A7990;
text-align: center; font-size: 13px;
display: inline-block; line-height: 20px;
} text-align: center;
.time{ display: inline-block;
width: 183px; }
height: 20px; .time{
background: #F0F2F5; width: 183px;
border-radius: 23px; height: 20px;
display: inline-block; background: #F0F2F5;
text-align: center; border-radius: 23px;
line-height: 20px; display: inline-block;
color: #6A7990; text-align: center;
margin-left: 5px; line-height: 20px;
font-size: 13px; color: #6A7990;
} margin-left: 5px;
} font-size: 13px;
.inquirystatus{ }
.status{ }
position: relative; .inquirystatus{
right: -114px; .status{
top: 6px; position: relative;
} right: -114px;
.inquirytime{ top: 6px;
position: relative; }
left: 65px; .inquirytime{
top: 12px; position: relative;
font-size: 14px; left: 65px;
color: #6A7990; top: 12px;
} font-size: 14px;
} color: #6A7990;
} }
.inquirydoctor{ }
margin-bottom: 10px; }
padding-top: 14px; .inquirydoctor{
display: flex; margin-bottom: 10px;
.visitingdoctor{ padding-top: 14px;
position: relative; display: flex;
flex-basis: 50%; .visitingdoctor{
display: flex; position: relative;
padding: 5px 2px 7px 7px; flex-basis: 50%;
.onedoctor{ display: flex;
width: 36px; padding: 5px 2px 7px 7px;
height: 36px; .onedoctor{
width: 36px;
} height: 36px;
.offline{
position: absolute; }
top: 5px; .offline{
left: 4px; position: absolute;
width: 16px; top: 5px;
height: 16px; left: 4px;
background-image: url('../../assets/image/workbench/offline.png'); width: 16px;
} height: 16px;
.onedoctorname{ background-image: url('../../assets/image/workbench/offline.png');
// margin-top: 18px; }
font-size: 15px; .onedoctorname{
color: #063948; // margin-top: 18px;
margin-bottom: 7px; font-size: 15px;
font-weight: 700; color: #063948;
>span{ margin-bottom: 7px;
font-size: 13px; font-weight: 700;
} >span{
} font-size: 13px;
.onedoctornum{ }
font-size: 14px; }
margin-top: 5px; .onedoctornum{
} font-size: 14px;
} margin-top: 5px;
.helpdoctor{ }
flex-basis: 50%; }
position: relative; .helpdoctor{
display: flex; flex-basis: 50%;
margin-left: 8px; position: relative;
padding: 5px 2px 7px 7px;s display: flex;
.onedoctor{ margin-left: 8px;
width: 36px; padding: 5px 2px 7px 7px;s
height: 36px; .onedoctor{
width: 36px;
} height: 36px;
.offline{
position: absolute; }
top: 5px; .offline{
left: 4px; position: absolute;
width: 16px; top: 5px;
height: 16px; left: 4px;
background-image: url('../../assets/image/workbench/offline.png'); width: 16px;
} height: 16px;
.onedoctorname{ background-image: url('../../assets/image/workbench/offline.png');
// margin-top: 18px; }
font-size: 15px; .onedoctorname{
color: #063948; // margin-top: 18px;
margin-bottom: 7px; font-size: 15px;
font-weight: 700; color: #063948;
>span{ margin-bottom: 7px;
font-size: 13px; font-weight: 700;
} >span{
} font-size: 13px;
.onedoctornum{ }
font-size: 14px; }
margin-top: 5px; .onedoctornum{
} font-size: 14px;
} margin-top: 5px;
} }
.inquiryroom{ }
height: 45px; }
display: flex; .inquiryroom{
font-size: 14px; height: 45px;
.goroom{ display: flex;
cursor:pointer; font-size: 14px;
width: 238px; .goroom{
height: 37px; cursor:pointer;
background: rgb(239, 246, 244); width: 238px;
border-radius: 23px; height: 37px;
text-align: center; background: rgb(239, 246, 244);
line-height: 37px; border-radius: 23px;
>span{ text-align: center;
color: #449284; line-height: 37px;
opacity: 1; >span{
font-weight: 700; color: #449284;
} opacity: 1;
} font-weight: 700;
.suggest{ }
cursor:pointer; }
width: 238px; .suggest{
color: #449284; cursor:pointer;
margin-left: 24px; width: 238px;
height: 37px; color: #449284;
background: rgb(239, 246, 244); margin-left: 24px;
border-radius: 23px; height: 37px;
text-align: center; background: rgb(239, 246, 244);
line-height: 37px; border-radius: 23px;
font-weight: 700; text-align: center;
.writesuggest{ line-height: 37px;
position: relative; font-weight: 700;
top: -50px; .writesuggest{
right: -150px; position: relative;
color: #fff; top: -50px;
font-size: 14px; right: -150px;
text-align: center; color: #fff;
line-height: 20px; font-size: 14px;
width: 48px; text-align: center;
height: 20px; line-height: 20px;
background: #449284; width: 48px;
border-radius: 7px 7px 7px 0px; height: 20px;
} background: #449284;
} border-radius: 7px 7px 7px 0px;
} }
} }
} }
@media screen and (max-width: 1509px) { }
.inquirylist{ }
display: flex; @media screen and (max-width: 1509px) {
margin-bottom: 10px; .inquirylist{
padding: 10px 5px; display: flex;
overflow: hidden !important; margin-bottom: 10px;
.el-row{ padding: 10px 5px;
width: 100%; overflow: hidden !important;
height: 100%; .el-row{
.el-col{ width: 100%;
width: 510px; height: 100%;
height: 208px; .el-col{
margin-left: 5px; width: 510px;
margin-bottom: 12px; height: 208px;
.el-card{ margin-left: 5px;
height: 100%; margin-bottom: 12px;
border-radius: 18px; .el-card{
padding: 12px 32px 20px 34px ; height: 100%;
} border-radius: 18px;
} padding: 12px 32px 20px 34px ;
} }
}
.inquiryname{ }
display: flex;
margin-bottom: 4px; .inquiryname{
.inquiryinfo{ display: flex;
.infone{ margin-bottom: 4px;
font-size: 24px; .inquiryinfo{
font-weight: 700; .infone{
margin-bottom: 6px; font-size: 24px;
color: #063948; font-weight: 700;
>span{ margin-bottom: 6px;
font-size: 16px; color: #063948;
color: #063948; >span{
display: inline-block; font-size: 16px;
margin-left: 6px; color: #063948;
} display: inline-block;
} margin-left: 6px;
.talk{ }
width: 96px; }
height: 20px; .talk{
background: #F0F2F5; width: 96px;
border-radius: 23px; height: 20px;
color: #6A7990; background: #F0F2F5;
font-size: 13px; border-radius: 23px;
line-height: 20px; color: #6A7990;
text-align: center; font-size: 13px;
display: inline-block; line-height: 20px;
} text-align: center;
.time{ display: inline-block;
width: 183px; }
height: 20px; .time{
background: #F0F2F5; width: 183px;
border-radius: 23px; height: 20px;
display: inline-block; background: #F0F2F5;
text-align: center; border-radius: 23px;
line-height: 20px; display: inline-block;
color: #6A7990; text-align: center;
margin-left: 5px; line-height: 20px;
font-size: 13px; color: #6A7990;
} margin-left: 5px;
} font-size: 13px;
.inquirystatus{ }
.status{ }
position: relative; .inquirystatus{
right: -114px; .status{
top: 12px; position: relative;
} right: -114px;
.inquirytime{ top: 12px;
position: relative; }
left: 65px; .inquirytime{
top: 12px; position: relative;
font-size: 14px; left: 65px;
color: #6A7990; top: 12px;
} font-size: 14px;
} color: #6A7990;
} }
.inquirydoctor{ }
margin-bottom: 10px; }
padding-top: 14px; .inquirydoctor{
display: flex; margin-bottom: 10px;
.visitingdoctor{ padding-top: 14px;
position: relative; display: flex;
flex-basis: 50%; .visitingdoctor{
display: flex; position: relative;
padding: 5px 2px 7px 7px; flex-basis: 50%;
.onedoctor{ display: flex;
width: 36px; padding: 5px 2px 7px 7px;
height: 36px; .onedoctor{
width: 36px;
} height: 36px;
.offline{
position: absolute; }
top: 5px; .offline{
left: 4px; position: absolute;
width: 16px; top: 5px;
height: 16px; left: 4px;
background-image: url('../../assets/image/workbench/offline.png'); width: 16px;
} height: 16px;
.onedoctorname{ background-image: url('../../assets/image/workbench/offline.png');
// margin-top: 18px; }
font-size: 15px; .onedoctorname{
color: #063948; // margin-top: 18px;
margin-bottom: 7px; font-size: 15px;
font-weight: 700; color: #063948;
>span{ margin-bottom: 7px;
font-size: 14px; font-weight: 700;
} >span{
} font-size: 14px;
.onedoctornum{ }
font-size: 14px; }
margin-top: 5px; .onedoctornum{
} font-size: 14px;
} margin-top: 5px;
.helpdoctor{ }
flex-basis: 50%; }
position: relative; .helpdoctor{
display: flex; flex-basis: 50%;
margin-left: 8px; position: relative;
padding: 5px 2px 7px 7px;s display: flex;
.onedoctor{ margin-left: 8px;
width: 36px; padding: 5px 2px 7px 7px;s
height: 36px; .onedoctor{
width: 36px;
} height: 36px;
.offline{
position: absolute; }
top: 5px; .offline{
left: 4px; position: absolute;
width: 16px; top: 5px;
height: 16px; left: 4px;
background-image: url('../../assets/image/workbench/offline.png'); width: 16px;
} height: 16px;
.onedoctorname{ background-image: url('../../assets/image/workbench/offline.png');
// margin-top: 18px; }
font-size: 15px; .onedoctorname{
color: #063948; // margin-top: 18px;
margin-bottom: 7px; font-size: 15px;
font-weight: 700; color: #063948;
>span{ margin-bottom: 7px;
font-size: 14px; font-weight: 700;
} >span{
} font-size: 14px;
.onedoctornum{ }
font-size: 14px; }
margin-top: 5px; .onedoctornum{
} font-size: 14px;
} margin-top: 5px;
} }
.inquiryroom{ }
height: 45px; }
display: flex; .inquiryroom{
font-size: 14px; height: 45px;
.goroom{ display: flex;
cursor:pointer; font-size: 14px;
width: 238px; .goroom{
height: 37px; cursor:pointer;
background: rgb(239, 246, 244); width: 238px;
border-radius: 23px; height: 37px;
text-align: center; background: rgb(239, 246, 244);
line-height: 37px; border-radius: 23px;
>span{ text-align: center;
color: #449284; line-height: 37px;
opacity: 1; >span{
font-weight: 700; color: #449284;
} opacity: 1;
} font-weight: 700;
.suggest{ }
cursor:pointer; }
width: 238px; .suggest{
color: #449284; cursor:pointer;
margin-left: 24px; width: 238px;
height: 37px; color: #449284;
background: rgb(239, 246, 244); margin-left: 24px;
border-radius: 23px; height: 37px;
text-align: center; background: rgb(239, 246, 244);
line-height: 37px; border-radius: 23px;
font-weight: 700; text-align: center;
.writesuggest{ line-height: 37px;
position: relative; font-weight: 700;
top: -50px; .writesuggest{
right: -150px; position: relative;
color: #fff; top: -50px;
font-size: 14px; right: -150px;
text-align: center; color: #fff;
line-height: 20px; font-size: 14px;
width: 48px; text-align: center;
height: 20px; line-height: 20px;
background: #449284; width: 48px;
border-radius: 7px 7px 7px 0px; height: 20px;
} background: #449284;
} border-radius: 7px 7px 7px 0px;
} }
} }
} }
@media screen and (max-width: 1385px) { }
.inquirylist{ }
display: flex; @media screen and (max-width: 1385px) {
margin-bottom: 10px; .inquirylist{
padding: 10px 5px; display: flex;
overflow: hidden !important; margin-bottom: 10px;
.el-row{ padding: 10px 5px;
width: 100%; overflow: hidden !important;
height: 100%; .el-row{
.el-col{ width: 100%;
width: 447px; height: 100%;
height: 208px; .el-col{
margin-left: 5px; width: 447px;
margin-bottom: 12px; height: 208px;
.el-card{ margin-left: 5px;
height: 100%; margin-bottom: 12px;
border-radius: 18px; .el-card{
padding: 12px 32px 20px 34px ; height: 100%;
} border-radius: 18px;
} padding: 12px 32px 20px 34px ;
} }
}
.inquiryname{ }
display: flex;
margin-bottom: 4px; .inquiryname{
.inquiryinfo{ display: flex;
.infone{ margin-bottom: 4px;
font-size: 20px; .inquiryinfo{
font-weight: 700; .infone{
margin-bottom: 6px; font-size: 20px;
color: #063948; font-weight: 700;
>span{ margin-bottom: 6px;
font-size: 13px; color: #063948;
color: #063948; >span{
display: inline-block; font-size: 13px;
margin-left: 6px; color: #063948;
} display: inline-block;
} margin-left: 6px;
.talk{ }
width: 80px; }
height: 20px; .talk{
background: #F0F2F5; width: 80px;
border-radius: 23px; height: 20px;
color: #6A7990; background: #F0F2F5;
font-size: 13px; border-radius: 23px;
line-height: 20px; color: #6A7990;
text-align: center; font-size: 13px;
display: inline-block; line-height: 20px;
} text-align: center;
.time{ display: inline-block;
width: 183px; }
height: 20px; .time{
background: #F0F2F5; width: 183px;
border-radius: 23px; height: 20px;
display: inline-block; background: #F0F2F5;
text-align: center; border-radius: 23px;
line-height: 20px; display: inline-block;
color: #6A7990; text-align: center;
margin-left: 5px; line-height: 20px;
font-size: 13px; color: #6A7990;
} margin-left: 5px;
} font-size: 13px;
.inquirystatus{ }
.status{ }
position: relative; .inquirystatus{
right: -77px; .status{
top: 6px; position: relative;
font-size: 14px; right: -77px;
} top: 6px;
.inquirytime{ font-size: 14px;
position: relative; }
left: 35px; .inquirytime{
top: 10px; position: relative;
font-size: 13px; left: 35px;
color: #6A7990; top: 10px;
} font-size: 13px;
} color: #6A7990;
} }
.inquirydoctor{ }
margin-bottom: 10px; }
padding-top: 14px; .inquirydoctor{
display: flex; margin-bottom: 10px;
.visitingdoctor{ padding-top: 14px;
position: relative; display: flex;
flex-basis: 50%; .visitingdoctor{
display: flex; position: relative;
padding: 5px 2px 7px 7px; flex-basis: 50%;
.onedoctor{ display: flex;
width: 36px; padding: 5px 2px 7px 7px;
height: 36px; .onedoctor{
width: 36px;
} height: 36px;
.offline{
position: absolute; }
top: 5px; .offline{
left: 4px; position: absolute;
width: 16px; top: 5px;
height: 16px; left: 4px;
background-image: url('../../assets/image/workbench/offline.png'); width: 16px;
} height: 16px;
.onedoctorname{ background-image: url('../../assets/image/workbench/offline.png');
// margin-top: 18px; }
font-size: 13px; .onedoctorname{
color: #063948; // margin-top: 18px;
margin-bottom: 7px; font-size: 13px;
font-weight: 700; color: #063948;
>span{ margin-bottom: 7px;
font-size: 12px; font-weight: 700;
} >span{
} font-size: 12px;
.onedoctornum{ }
font-size: 14px; }
margin-top: 5px; .onedoctornum{
} font-size: 14px;
} margin-top: 5px;
.helpdoctor{ }
flex-basis: 50%; }
position: relative; .helpdoctor{
display: flex; flex-basis: 50%;
margin-left: 8px; position: relative;
padding: 5px 2px 7px 7px;s display: flex;
.onedoctor{ margin-left: 8px;
width: 36px; padding: 5px 2px 7px 7px;s
height: 36px; .onedoctor{
width: 36px;
} height: 36px;
.offline{
position: absolute; }
top: 5px; .offline{
left: 4px; position: absolute;
width: 16px; top: 5px;
height: 16px; left: 4px;
background-image: url('../../assets/image/workbench/offline.png'); width: 16px;
} height: 16px;
.onedoctorname{ background-image: url('../../assets/image/workbench/offline.png');
// margin-top: 18px; }
font-size: 13px; .onedoctorname{
color: #063948; // margin-top: 18px;
margin-bottom: 7px; font-size: 13px;
font-weight: 700; color: #063948;
>span{ margin-bottom: 7px;
font-size: 12px; font-weight: 700;
} >span{
} font-size: 12px;
.onedoctornum{ }
font-size: 14px; }
margin-top: 5px; .onedoctornum{
} font-size: 14px;
} margin-top: 5px;
} }
.inquiryroom{ }
height: 45px; }
display: flex; .inquiryroom{
font-size: 14px; height: 45px;
.goroom{ display: flex;
cursor:pointer; font-size: 14px;
width: 238px; .goroom{
height: 37px; cursor:pointer;
background: rgb(239, 246, 244); width: 238px;
border-radius: 23px; height: 37px;
text-align: center; background: rgb(239, 246, 244);
line-height: 37px; border-radius: 23px;
>span{ text-align: center;
color: #449284; line-height: 37px;
opacity: 1; >span{
font-weight: 700; color: #449284;
} opacity: 1;
} font-weight: 700;
.suggest{ }
cursor:pointer; }
width: 238px; .suggest{
color: #449284; cursor:pointer;
margin-left: 24px; width: 238px;
height: 37px; color: #449284;
background: rgb(239, 246, 244); margin-left: 24px;
border-radius: 23px; height: 37px;
text-align: center; background: rgb(239, 246, 244);
line-height: 37px; border-radius: 23px;
font-weight: 700; text-align: center;
.writesuggest{ line-height: 37px;
position: relative; font-weight: 700;
top: -50px; .writesuggest{
right: -150px; position: relative;
color: #fff; top: -50px;
font-size: 14px; right: -150px;
text-align: center; color: #fff;
line-height: 20px; font-size: 14px;
width: 48px; text-align: center;
height: 20px; line-height: 20px;
background: #449284; width: 48px;
border-radius: 7px 7px 7px 0px; height: 20px;
} background: #449284;
} border-radius: 7px 7px 7px 0px;
} }
} }
} }
.appointment{ }
width: 12px; }
height: 12px; .appointment{
display: inline-block; width: 12px;
background: url('../../assets/image/workbench/appointment.png') no-repeat; height: 12px;
background-size: cover; display: inline-block;
} background: url('../../assets/image/workbench/appointment.png') no-repeat;
.video{ background-size: cover;
width: 12px; }
height: 12px; .video{
display: inline-block; width: 12px;
background: url('../../assets/image/workbench/video.png') no-repeat; height: 12px;
background-size: cover; display: inline-block;
} background: url('../../assets/image/workbench/video.png') no-repeat;
.photo{ background-size: cover;
width: 12px; }
height: 12px; .photo{
display: inline-block; width: 12px;
background: url('../../assets/image/workbench/photo.png') no-repeat; height: 12px;
background-size: cover; display: inline-block;
} background: url('../../assets/image/workbench/photo.png') no-repeat;
.voice{ background-size: cover;
width: 12px; }
height: 12px; .voice{
display: inline-block; width: 12px;
background: url('../../assets/image/workbench/voice.png') no-repeat; height: 12px;
background-size: cover; display: inline-block;
} background: url('../../assets/image/workbench/voice.png') no-repeat;
</style> background-size: cover;
\ No newline at end of file }
</style>
import education from './im/getters' const getters = {
_token: state => state.common._token,
isFromAssignTask: state => state.common.isFromAssignTask,
time:state => state.common.time,
}
import { containObject } from '../utils/utils' export default getters
const getters = containObject(education)
export default getters
\ No newline at end of file
const getters = {
_token: state => state.common._token,
isFromAssignTask: state => state.common.isFromAssignTask,
time:state => state.common.time,
}
export default getters
import Vue from 'vue' import Vue from 'vue'
import Vuex from 'vuex' import Vuex from 'vuex'
import common from './im/common' import common from './module/common'
import socket from './module/socket'
import getters from './getters' import getters from './getters'
import state from './state';
import mutations from './mutations/index';
import actions from './actions/index';
Vue.use(Vuex) Vue.use(Vuex)
export default new Vuex.Store({ export default new Vuex.Store({
state,
getters,
mutations,
actions,
modules: { modules: {
common common,
socket
}, },
getters
}) })
import { io } from "socket.io-client"; // ES6 import
import io from 'socket.io-client';
export default { export default {
namespaced: true, namespaced: true,
...@@ -7,39 +8,45 @@ export default { ...@@ -7,39 +8,45 @@ export default {
}, },
actions: { actions: {
initSocket ({ commit, rootState }, payload) { initSocket ({ commit, rootState }, payload) {
const socket = io("https://example.com", { const socket = io.connect(payload.url, {
reconnectionDelayMax: 10000,
reconnectionAttempts:'Infinity',
reconnection: true,
transports: ["websocket"], // use WebSocket first, if available
extraHeaders: {"my-custom-header": "1234"},
query: { query: {
x: 42 // loginUserNum: `diagnose_list_socket_${userId}`
loginUserNum: `diagnose_list_socket_888`
} }
}); });
console.log('-=-=-=-=',socket)
commit('SET_SOCKET', socket); commit('SET_SOCKET', socket);
commit('SET_IOLISTION');
}, },
}, },
mutations: { mutations: {
SET_SOCKET: (state, payload) => { SET_SOCKET: (state, payload) => {
window.socketClient = payload;
state.socketClient = payload; state.socketClient = payload;
}, },
SET_IOLISTION: (state, payload) => { SET_IOLISTION: (state, payload) => {
if(!state.socketClient){ if(!state.socketClient){
return false; return false;
} }
state.socketClient.on("connection", (socket) => { state.socketClient.on("connection", (socket) => {
console.log(socket); console.log ('socket 链接成功',socket);
}); });
state.socketClient.on("connect_error", (err) => { state.socketClient.on("connect_error", (err) => {
if (err.message === "invalid credentials") { console.log ('socket connect_error',err);
}
}); });
state.socketClient.on("disconnect", (socket) => { state.socketClient.on("disconnect", (socket) => {
console.log(socket); console.log ('socket disconnect',socket);
});
state.socketClient.on("diagnose_push_event", (socket) => {
console.log('diagnose_push_event---', socket);
});
state.socketClient.on('ping', function () {
console.log('[E] 心跳请求已发出 →', true);
}); });
state.socketClient.on("data", (socket) => { //收到
console.log(socket); state.socketClient.on('pong', function () {
console.log('[E] 心跳响应已收到 ←', true);
}); });
}, },
}, },
......
/* 内存数据状态 */
export default {
};
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</div> </div>
</el-row> </el-row>
<!-- tab栏 --> <!-- tab栏 -->
<div id="radio" v-if="isdon ==='1'"> <div id="radio">
<el-radio-group v-model="tabPosition" style="margin-bottom: 30px;" > <el-radio-group v-model="tabPosition" style="margin-bottom: 30px;" >
<el-radio-button label="all">全部(0)</el-radio-button> <el-radio-button label="all">全部(0)</el-radio-button>
<el-radio-button label="abnormal">异常(0)</el-radio-button> <el-radio-button label="abnormal">异常(0)</el-radio-button>
...@@ -30,53 +30,14 @@ ...@@ -30,53 +30,14 @@
<el-row :gutter="25"> <el-row :gutter="25">
<el-col style="margin-bottom: 20px;" :span="8" v-for="item in 9 " :key="item"> <el-col style="margin-bottom: 20px;" :span="8" v-for="item in 9 " :key="item">
<div class="grid-content bg-purple"> <div class="grid-content bg-purple">
<div class="for"></div> <div class="for">
<inquiryList-component></inquiryList-component>
</div>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
</div>
<div class="lfet" v-else > </div>
<el-row :gutter="20">
<el-col :span="6"><div class="grid-content bg-purple">
<span>总问诊数</span>
<span>0单</span>
</div></el-col>
<el-col :span="6"><div class="grid-content bg-purple">
<span>已问诊数</span>
<span>0单</span>
</div></el-col>
<el-col :span="6"><div class="grid-content bg-purple">
<span>问诊中</span>
<span>0单</span>
</div>
</el-col>
<el-col :span="6"><div class="grid-content bg-purple">
<span>未问诊</span>
<span>0单</span>
</div>
</el-col>
</el-row>
<div ><i class="el-icon-s-custom"> 运营A成员(6单)</i></div>
<el-row :gutter="25">
<el-col style="margin-bottom: 20px;" :span="8" v-for="item in 6 " :key="item">
<div class="grid-content bg-purple">
<div class="for"></div>
</div>
</el-col>
</el-row>
<div ><i class="el-icon-s-custom">运营B成员(2单)</i></div>
<el-row :gutter="25">
<el-col style="margin-bottom: 20px;" :span="8" v-for="item in 6 " :key="item">
<div class="grid-content bg-purple">
<div class="for"></div>
</div>
</el-col>
</el-row>
</div>
<!-- <el-empty :image-size="200" description="描述文字"></el-empty> -->
<!-- 分页 -->
<el-row type="flex" justify="end" > <el-row type="flex" justify="end" >
<el-pagination <el-pagination
background background
...@@ -95,16 +56,17 @@ ...@@ -95,16 +56,17 @@
</template> </template>
<script> <script>
import InquiryListComponent from '../../../components/common/inquirylist.vue';
console.log('---InquiryList', InquiryListComponent);
export default { export default {
components: { components: {
InquiryListComponent
}, },
data(){ data(){
return { return {
tabPosition:"all", tabPosition:"all",
value1:Date.now(), value1:Date.now(),
currentPage4:0, currentPage4:0,
// 判断是否是管理员
isdon:'1',
showChat: true showChat: true
} }
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册