|
@@ -194,7 +194,7 @@
|
|
|
>
|
|
>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
|
<el-row>
|
|
<el-row>
|
|
|
- <el-col :span="22">
|
|
|
|
|
|
|
+ <el-col :span="24">
|
|
|
<el-form-item label="所属机构" prop="orgId">
|
|
<el-form-item label="所属机构" prop="orgId">
|
|
|
<tree-select
|
|
<tree-select
|
|
|
v-model="form.orgId"
|
|
v-model="form.orgId"
|
|
@@ -202,7 +202,7 @@
|
|
|
:show-count="true"
|
|
:show-count="true"
|
|
|
:normalizer="tenantIdnormalizer"
|
|
:normalizer="tenantIdnormalizer"
|
|
|
:props="{ checkStrictly: true, label: 'name' }"
|
|
:props="{ checkStrictly: true, label: 'name' }"
|
|
|
- placeholder="请选择归属机构"
|
|
|
|
|
|
|
+ placeholder="请选择所属机构"
|
|
|
@select="changeSelect"
|
|
@select="changeSelect"
|
|
|
clearValueText="清除"
|
|
clearValueText="清除"
|
|
|
:noChildrenText="''"
|
|
:noChildrenText="''"
|
|
@@ -218,6 +218,7 @@
|
|
|
<el-select
|
|
<el-select
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
v-model="form.assetType"
|
|
v-model="form.assetType"
|
|
|
|
|
+ :popper-append-to-body="false"
|
|
|
placeholder="请选择设备类别"
|
|
placeholder="请选择设备类别"
|
|
|
@change="changeSelectDevice"
|
|
@change="changeSelectDevice"
|
|
|
>
|
|
>
|
|
@@ -234,6 +235,7 @@
|
|
|
<el-form-item label="设备分类" prop="deviceType">
|
|
<el-form-item label="设备分类" prop="deviceType">
|
|
|
<el-select
|
|
<el-select
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
|
|
+ :popper-append-to-body="false"
|
|
|
v-model="form.deviceType"
|
|
v-model="form.deviceType"
|
|
|
placeholder="请选择设备分类"
|
|
placeholder="请选择设备分类"
|
|
|
>
|
|
>
|
|
@@ -365,8 +367,6 @@ import { getToken } from "@/utils/auth";
|
|
|
import orgDropDown from "../../../components/orgTree/orgDropDown.vue";
|
|
import orgDropDown from "../../../components/orgTree/orgDropDown.vue";
|
|
|
import OrgTree from "@/components/orgTree";
|
|
import OrgTree from "@/components/orgTree";
|
|
|
import tableList from "@/mixins/tableList";
|
|
import tableList from "@/mixins/tableList";
|
|
|
-import treeselect from "@riophae/vue-treeselect";
|
|
|
|
|
-import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
|
import { deptTreeSelect } from "@/api/system/public";
|
|
import { deptTreeSelect } from "@/api/system/public";
|
|
|
import { getDeviceType } from "@/api/system/dict/data";
|
|
import { getDeviceType } from "@/api/system/dict/data";
|
|
|
import {
|
|
import {
|
|
@@ -383,7 +383,7 @@ export default {
|
|
|
mixins: [tableList],
|
|
mixins: [tableList],
|
|
|
dicts: ["sys_asset_type", "sys_device_type"],
|
|
dicts: ["sys_asset_type", "sys_device_type"],
|
|
|
name: "Device",
|
|
name: "Device",
|
|
|
- components: { OrgTree, treeselect, orgDropDown },
|
|
|
|
|
|
|
+ components: { OrgTree, orgDropDown },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
checkList: [],
|
|
checkList: [],
|
|
@@ -767,3 +767,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
+<style lang="scss">
|
|
|
|
|
+//.vue-treeselect--has-value .vue-treeselect__input {
|
|
|
|
|
+// line-height: 100%;
|
|
|
|
|
+// vertical-align: middle;
|
|
|
|
|
+//}
|
|
|
|
|
+</style>
|