Commit 19690151 by 陈羽

update: update

parent 20bdd743
......@@ -182,13 +182,6 @@ export default {
that.searchInput = '';
}
}
},
mounted() {
const that = this;
if (Object.keys(that.departObj)) {
that.currentPage = 1;
that.getTableList();
}
}
};
</script>
......
......@@ -184,7 +184,7 @@
</el-popover>
</template>
</el-table-column> -->
<el-table-column label="操作" fixed="right" width="110">
<el-table-column label="操作" fixed="right" width="200">
<template slot-scope="scope">
<el-button type="text" @click="handleDel(scope.$index, scope.row)">删除</el-button>
<el-button type="text" @click="getPreviewData(scope.$index, scope.row)">预览</el-button>
......
......@@ -203,7 +203,7 @@ export default {
if (resData.result) {
resData.result.value = resData.result.enterpriseName;
}
resolve(resData.result ? [resData.result] : []);
resolve(Array.isArray(resData.result) ? resData.result : []);
return false;
}
errMsg.errorMsg(resData);
......@@ -337,9 +337,6 @@ export default {
} else {
this.type = 'add';
}
this.$nextTick(() => {
this.getSearchList('');
});
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
......
......@@ -204,9 +204,11 @@ export default {
},
watch: {
brandId(newV) {
console.log('brandId');
this.getTableList();
},
$route(to, from) {
console.log('route');
if (!this.$route.query.ecmPlanId) {
this.getTableList();
}
......
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