@@ -30,6 +33,14 @@
+
+
+
+ 订单为空
+
+
+
+
@@ -58,6 +69,7 @@ export default {
auditResults: '',
username: Vue.ls.get(USER_INFO).username,
sysOrgCode: Vue.ls.get(USER_INFO).orgCode,
+ dataShow: false,
}
},
computed: {
@@ -98,15 +110,21 @@ export default {
this.receive = false;
},
getdata() {
+ this.dataShow = false;
getAction(this.list, {}).then(res => {
//如果为200,则获取数据
if (res.code == 200) {
this.dataList = res.result.records;
- this.activeKey = [0];
- //将其procurementContent转为json
- this.dataList.forEach(item => {
- item.procurementContent = JSON.parse(item.procurementContent);
- });
+ if (this.dataList.length == 0) {
+ this.dataShow = false;
+ } else {
+ this.activeKey = [0];
+ //将其procurementContent转为json
+ this.dataList.forEach(item => {
+ item.procurementContent = JSON.parse(item.procurementContent);
+ });
+ this.dataShow = true;
+ }
} else {
this.$message.error(res.message);
}