Merge branch 'build' of http://git.sinoecare.com/sinoecare/digital_village_v2/dvcp_v2_webapp into build
This commit is contained in:
@@ -39,7 +39,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {resolve} from "../../../../../../dvcp_v2_wechat_app/dist/dev/mp-weixin/common/vendor";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "list",
|
name: "list",
|
||||||
@@ -128,13 +127,6 @@ export default {
|
|||||||
let {id} = row
|
let {id} = row
|
||||||
this.initWs().then(() => this.ws.send(JSON.stringify({action: "/custom/getZip", cid: id})))
|
this.initWs().then(() => this.ws.send(JSON.stringify({action: "/custom/getZip", cid: id})))
|
||||||
},
|
},
|
||||||
getRowById(id) {
|
|
||||||
return this.instance.post("/node/custom/detail", null, {
|
|
||||||
params: {id}
|
|
||||||
}).then(res => {
|
|
||||||
if (res?.data) return res.data
|
|
||||||
})
|
|
||||||
},
|
|
||||||
handleNotice(id) {
|
handleNotice(id) {
|
||||||
this.instance.post("/node/custom/webhook", null, {
|
this.instance.post("/node/custom/webhook", null, {
|
||||||
params: {id}
|
params: {id}
|
||||||
@@ -149,9 +141,9 @@ export default {
|
|||||||
this.ws = new WebSocket(`ws://192.168.1.87:12525/ws`)
|
this.ws = new WebSocket(`ws://192.168.1.87:12525/ws`)
|
||||||
this.ws.onopen = () => resolve()
|
this.ws.onopen = () => resolve()
|
||||||
this.ws.onmessage = res => {
|
this.ws.onmessage = res => {
|
||||||
if (this.$checkJson(res)) {
|
if (this.$checkJson(res?.data)) {
|
||||||
const data = JSON.parse(res),
|
const data = JSON.parse(res.data),
|
||||||
row = this.tableData.find(e => e.id == data?.row?.id)
|
row = this.tableData.find(e => e.id == data?.id)
|
||||||
if (data.code == '0') {
|
if (data.code == '0') {
|
||||||
row.count = data.progress
|
row.count = data.progress
|
||||||
if (row.count == 100) {
|
if (row.count == 100) {
|
||||||
|
|||||||
Reference in New Issue
Block a user