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

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

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