shanyunduo.cheng

空数据展示

<template>
<div style="margin: 40px" v-loading="loading">
<el-empty description="找不到这条数据!" v-if="isEmpty"></el-empty>
<template v-else>
<el-form
ref="form"
:model="form"
......@@ -16,14 +18,14 @@
></el-input>
</el-form-item>
<el-form-item >
<el-form-item>
<el-alert
title="提示:站点之间用回车符分隔"
type="warning"
show-icon
size="small"
:closable="false"
style="height: 30px;width:fit-content"
style="height: 30px; width: fit-content"
>
</el-alert>
</el-form-item>
......@@ -51,14 +53,14 @@
</el-col>
</el-row>
<el-form-item >
<el-form-item>
<el-alert
title="提示:URSA之间用分号分隔,例:F2;F3;P_"
type="warning"
show-icon
size="small"
:closable="false"
style="height: 30px;width:fit-content"
style="height: 30px; width: fit-content"
>
</el-alert>
</el-form-item>
......@@ -214,6 +216,7 @@
</el-button>
<el-button size="small" @click="close">取消</el-button>
</el-row>
</template>
</div>
</template>
......@@ -248,9 +251,10 @@ export default {
serviceCode: [],
subCategory: [],
disable: false,
nameDisabled:false,
nameDisabled: false,
btnLoading: false,
loading: true,
isEmpty: false,
};
},
methods: {
......@@ -345,6 +349,9 @@ export default {
message: response.msg,
type: "error",
});
this.isEmpty = true;
} else if (response.data == null) {
this.isEmpty = true;
} else {
let info = response.data;
info.typeOfGoods = info.typeOfGoods
......@@ -372,6 +379,7 @@ export default {
message: response.msg,
type: "error",
});
this.isEmpty = true;
} else {
let info = response.data.list;
info.typeOfGoods = info.typeOfGoods
......