diff --git a/src/Utils/helper.ts b/src/Utils/helper.ts index 0a0adc5..57ac44c 100644 --- a/src/Utils/helper.ts +++ b/src/Utils/helper.ts @@ -557,4 +557,18 @@ export default class helper { return textStatus; }; + // 设备类型(Homegrown 国产炉 Import 进口炉) + static getEquipmentType = (val: any) => { + let text = ''; + switch (val) { + case 'Homegrown': + text = '国产炉'; + break; + case 'Import': + text = '进口炉'; + break; + } + return text; + }; + } diff --git a/src/pages/device/components/devicePointDialog.vue b/src/pages/device/components/devicePointDialog.vue index b94912d..3b1f068 100644 --- a/src/pages/device/components/devicePointDialog.vue +++ b/src/pages/device/components/devicePointDialog.vue @@ -65,12 +65,12 @@ + :loading="loading" :columns="columns" v-model:pagination="pagination" + :table-style="{ height: '500px' }" @request="onRequest" flat bordered>