|
@@ -175,6 +175,15 @@
|
|
|
{{ $t('message.device.formI18nButton.exportDevice') }}
|
|
|
</el-button>
|
|
|
</el-dropdown-item>
|
|
|
+ <el-dropdown-item>
|
|
|
+ <!-- 批量检测状态 -->
|
|
|
+ <el-button @click="batchCheckStatus()">
|
|
|
+ <el-icon>
|
|
|
+ <ele-Refresh />
|
|
|
+ </el-icon>
|
|
|
+ {{ $t('message.device.formI18nButton.batchCheckStatus') }}
|
|
|
+ </el-button>
|
|
|
+ </el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</template>
|
|
|
</el-dropdown>
|
|
@@ -347,6 +356,18 @@ export default defineComponent({
|
|
|
excelDicRef.value.openDialog(type);
|
|
|
};
|
|
|
|
|
|
+ const batchCheckStatus = () => {
|
|
|
+ const loading = ElMessage({
|
|
|
+ message: '同步中,请稍后...',
|
|
|
+ type: 'info',
|
|
|
+ duration: 0,
|
|
|
+ });
|
|
|
+ api.device.syncStatus().then(() => {
|
|
|
+ ElMessage.success('同步成功');
|
|
|
+ typeList();
|
|
|
+ }).finally(() => loading.close());
|
|
|
+ };
|
|
|
+
|
|
|
//批量启用
|
|
|
const setDeviceStatus1 = (row?: TableDataRow) => {
|
|
|
let keys: string[] = [];
|
|
@@ -485,10 +506,10 @@ export default defineComponent({
|
|
|
};
|
|
|
|
|
|
return {
|
|
|
-
|
|
|
addDicRef,
|
|
|
excelDicRef,
|
|
|
onOpenexcelDic,
|
|
|
+ batchCheckStatus,
|
|
|
editDicRef,
|
|
|
detailRef,
|
|
|
queryRef,
|