web
10 天以前 53dea912dd48c7435720cd9e83e3da53f0a45109
src/views/facility/facilityList/index.vue
@@ -79,10 +79,9 @@
});
//查询监控点
const pointList = ref();
const cascaderOption = { label: 'pointName', value: 'id', children: 'childrenList', checkStrictly: true, expandTrigger: 'hover', emitPath: false }; //级联选择器配置
const getPoint = async () => {
    await pointApi().getParentPoint().then((res) => {
        pointList.value = res.data
    await pointApi().search({limit: 100, page: 1}).then((res) => {
        pointList.value = res.data.list
    })
}
@@ -358,7 +357,14 @@
                    </el-select>
                </el-form-item>
                <el-form-item label="选择监控点" prop="pointId">
                    <el-cascader v-model="form.pointId" :options="pointList" :show-all-levels="false" :props="cascaderOption" />
                    <el-select v-model="form.pointId" :placeholder="inpTip+formLabel.pointId">
                        <el-option
                            v-for="(item,index) in pointList"
                            :label="item.pointName"
                            :value="item.id"
                            :key="index"
                        ></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="安装日期" prop="installDate">
                    <el-date-picker
@@ -389,7 +395,7 @@
        <!-- 设备参数弹窗 -->
        <el-dialog title="设备参数" v-model="openParamForm" width="50vw" center align-center append-to-body>
            <!--表格-->
            <el-table ref='tableRef'  :data="tableParamData" height="75vh" @selection-change="handleSelectionParams" >
            <el-table ref='tableRef'  :data="tableParamData" height="70vh" @selection-change="handleSelectionParams" >
                <el-table-column type="selection" width="55" align ="center" />
                <el-table-column
                    v-for="(item, key, index) of tableParamHeader"