|
@@ -48,7 +48,7 @@
|
|
<el-form-item label="是否停机" prop="ifStop">
|
|
<el-form-item label="是否停机" prop="ifStop">
|
|
<el-select v-model="formData.ifStop" placeholder="请选择是否停机" clearable>
|
|
<el-select v-model="formData.ifStop" placeholder="请选择是否停机" clearable>
|
|
<el-option
|
|
<el-option
|
|
- v-for="dict in getStrDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING)"
|
|
|
|
|
|
+ v-for="dict in getBoolDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING)"
|
|
:key="dict.value"
|
|
:key="dict.value"
|
|
:label="dict.label"
|
|
:label="dict.label"
|
|
:value="dict.value"
|
|
:value="dict.value"
|
|
@@ -221,7 +221,7 @@
|
|
</template>
|
|
</template>
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
import { IotMaintainApi, IotMaintainVO } from '@/api/pms/maintain'
|
|
import { IotMaintainApi, IotMaintainVO } from '@/api/pms/maintain'
|
|
-import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
|
|
|
|
|
|
+import {DICT_TYPE, getBoolDictOptions, getStrDictOptions} from '@/utils/dict'
|
|
import DeviceList from '@/views/pms/failure/DeviceList.vue'
|
|
import DeviceList from '@/views/pms/failure/DeviceList.vue'
|
|
import * as UserApi from '@/api/system/user'
|
|
import * as UserApi from '@/api/system/user'
|
|
import { useUserStore } from '@/store/modules/user'
|
|
import { useUserStore } from '@/store/modules/user'
|