Commit 840a95fb authored by “yiyousong”'s avatar “yiyousong”

fix: 修复站点详情页面右侧产品开关失效的问题

parent 894fc8ca
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
<el-divider></el-divider> <el-divider></el-divider>
<el-row <el-row
v-for="(v, index) in tableData.data" v-for="(v, index) in productList.data"
:key="index" :key="index"
type="flex" type="flex"
style="border-bottom: 1px solid #e8eaec; padding: 10px" style="border-bottom: 1px solid #e8eaec; padding: 10px"
...@@ -245,6 +245,7 @@ export default { ...@@ -245,6 +245,7 @@ export default {
}); });
}, },
switchChange(val) { switchChange(val) {
this.$forceUpdate();
let arr = []; let arr = [];
for (let item in this.items) { for (let item in this.items) {
if (this.items[item] && this.items[item] != 0) if (this.items[item] && this.items[item] != 0)
...@@ -258,6 +259,7 @@ export default { ...@@ -258,6 +259,7 @@ export default {
afterRender(data) { afterRender(data) {
if (!this.sync) { if (!this.sync) {
this.$nextTick(() => { this.$nextTick(() => {
this.productList = data;
let count = 0; let count = 0;
for (let i of data.data) { for (let i of data.data) {
this.items[count] = i.productId + ""; this.items[count] = i.productId + "";
...@@ -298,6 +300,7 @@ export default { ...@@ -298,6 +300,7 @@ export default {
data() { data() {
return { return {
originData: [], originData: [],
productList: [],
value1: 1, value1: 1,
sync: false, sync: false,
// 用户导入参数 // 用户导入参数
......
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