|
@@ -87,20 +87,9 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="安装地点" required>
|
|
|
<el-input v-model="formData.goafDevLocation" placeholder="请输入安装地点" style="width:260px" />
|
|
|
- <!-- <el-select
|
|
|
- v-model="formData.goafDevLocation"
|
|
|
- class="safe-area-item"
|
|
|
- filterable
|
|
|
- placeholder="请输入安装地点"
|
|
|
- >
|
|
|
- <el-option :value="0" label="请输入安装地点" disabled />
|
|
|
- <el-option
|
|
|
- v-for="item in goaf"
|
|
|
- :key="item.goafId"
|
|
|
- :value="item.goafId"
|
|
|
- :label="item.goafName"
|
|
|
- />
|
|
|
- </el-select> -->
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="告警阈值" required>
|
|
|
+ <el-input-number v-model="formData.goafAlarmThreshold" placeholder="告警阈值" :controls="false" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="设备类型" required>
|
|
|
<el-select
|
|
@@ -126,8 +115,9 @@
|
|
|
style="width: 260px"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="组织部门">
|
|
|
+ <el-form-item label="设备负责人部门">
|
|
|
<el-cascader
|
|
|
+ v-model="formData.goafDevGroupid"
|
|
|
:options="treeData"
|
|
|
:props="{ checkStrictly: true, emitPath: false }"
|
|
|
style="min-width: 260px"
|
|
@@ -153,7 +143,6 @@
|
|
|
</div>
|
|
|
</el-drawer>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
import { toTree } from '@/utils/build-tree'
|
|
|
import { getGroupByList } from '@/api/system/groupApi'
|
|
@@ -189,7 +178,8 @@ export default {
|
|
|
goafDevTypeId: '',
|
|
|
goafDevAccountId: undefined,
|
|
|
goafDevAccountName: '',
|
|
|
- goafInstallTime: ''
|
|
|
+ goafInstallTime: '',
|
|
|
+ goafAlarmThreshold: 0
|
|
|
},
|
|
|
rules: {},
|
|
|
ctrlLevelList: [],
|
|
@@ -334,14 +324,15 @@ export default {
|
|
|
goafDevTypename: '',
|
|
|
goafDevAccountId: undefined,
|
|
|
goafDevAccountName: '',
|
|
|
- goafInstallTime: ''
|
|
|
+ goafInstallTime: '',
|
|
|
+ goafAlarmThreshold: 0
|
|
|
}
|
|
|
},
|
|
|
handleUserSelect(accountId) {
|
|
|
const item = this.userList.filter((item) => item.accountId === accountId)
|
|
|
const user = item[0]
|
|
|
this.formData.groupId = user.groupId
|
|
|
- this.formData.groupName = user.groupName
|
|
|
+ this.formData.goafDevGroupname = user.groupName
|
|
|
this.formData.goafDevAccountName = user.accountName
|
|
|
this.formData.positionId = user.positionId
|
|
|
this.formData.positionName = user.positionName
|