Commit b002be7c by qiaoyanqi

查看点进去 删除后,上张下张仍为只读

parent 72a6ad19
...@@ -56,13 +56,14 @@ export default { ...@@ -56,13 +56,14 @@ export default {
} else if (action == "last") { } else if (action == "last") {
GMS.queryObject.index = data.data.count - 1; GMS.queryObject.index = data.data.count - 1;
} }
let state = GMS.queryObject.isReadOnly?'readOnly':'';
if ( if (
window.osConfig.appOpenMode && window.osConfig.appOpenMode &&
window.osConfig.appOpenMode == "apploader" window.osConfig.appOpenMode == "apploader"
) { ) {
GMS.$hideContainer.$portalAPI.emit("resetBillData", data.data.id); GMS.$hideContainer.$portalAPI.emit("resetBillData", data.data.id,state);
} else { } else {
GMS.vbus.$emit("resetBillData", data.data.id); GMS.vbus.$emit("resetBillData", data.data.id,state);
} }
} }
if (data.data && data.data.message) { if (data.data && data.data.message) {
......
...@@ -59,10 +59,11 @@ export default { ...@@ -59,10 +59,11 @@ export default {
} }
}, },
methods: { methods: {
changeData(billId) { changeData(billId,state) {
this.init = false; this.init = false;
this.$nextTick(() => { this.$nextTick(() => {
this.billId = billId; this.billId = billId;
this.state = state;
this.init = true; this.init = true;
}); });
}, },
......
...@@ -98,10 +98,11 @@ export default { ...@@ -98,10 +98,11 @@ export default {
GMS.oldBillDataMap[this.curTagId] = bill.getBuillData() GMS.oldBillDataMap[this.curTagId] = bill.getBuillData()
}, 100); }, 100);
}, },
changeData(billId) { changeData(billId,state) {
this.init = false; this.init = false;
this.$nextTick(() => { this.$nextTick(() => {
this.type = 'load'; this.type = 'load';
this.state = state;
this.init = true; this.init = true;
this.billId = billId; this.billId = billId;
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment