标准清单发布/更新流程 添加重复的标准后 添加弹窗显示暂无数据 点击清空 数据回来了 应该一直有数据

This commit is contained in:
yanyizhou
2021-10-21 10:39:14 +08:00
parent bed01d4afb
commit 9fbe5c0e1c
@@ -288,6 +288,7 @@
</div> </div>
<el-table <el-table
:data="standardData" :data="standardData"
v-loading="loading"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
border border
@@ -578,6 +579,7 @@ export default {
}, },
//标准查询按钮 //标准查询按钮
getStandDataBtn(){ getStandDataBtn(){
this.loading = true
this.pageNo = 1; this.pageNo = 1;
this.getStandData(); this.getStandData();
}, },
@@ -591,6 +593,7 @@ export default {
_this: this _this: this
}, res => { }, res => {
this.standardData = res.data.list; this.standardData = res.data.list;
this.loading = false
this.standardData.forEach(item => { this.standardData.forEach(item => {
if(item.attrInfoMap === null){ if(item.attrInfoMap === null){
this.$set(item, "ZCCSSRQ", ''); this.$set(item, "ZCCSSRQ", '');
@@ -607,6 +610,8 @@ export default {
//点击添加事件 //点击添加事件
addList() { addList() {
this.standModel = true; this.standModel = true;
this.loading = true
this.getStandDataBtn()
}, },
//添加标准select的改变 //添加标准select的改变
selectThree(data) { selectThree(data) {