Fixiaobai
2023-09-19 88859106604b03bed968f2f55508e3a5b83f4ce9
src/components/view/processInspectionUpdate.vue
@@ -127,9 +127,10 @@
                            <el-button v-if="!scope.row.isSelectDevice" type="text" @click="clickTableSelect(scope)">{{
                            scope.row.dname == null ? "请选择" : scope.row.dname
                        }}</el-button>
                        <el-select @blur="blurNode(scope)" v-else-if="scope.row.isSelectDevice" style="width: 100%;" @change="clickNodeSure(scope.row)"
                            v-model="filterText" placeholder="请选择">
                            <el-option v-for="item in materialOptions" :key="item.id" :label="item.device" :value="item.id">
                            <el-select @blur="blurNode(scope)" v-else-if="scope.row.isSelectDevice" style="width: 100%;"
                                @change="clickNodeSure(scope.row)" v-model="filterText" placeholder="请选择">
                                <el-option v-for="item in materialOptions" :key="item.id" :label="item.device"
                                    :value="item.id">
                            </el-option>
                        </el-select>
                        </el-col>
@@ -378,7 +379,7 @@
                }
            }).then(res => {
                this.materialOptions = res.data;
                if(this.materialOptions.length===1){
                if (this.materialOptions.length === 1&&row.did!=null) {
                    this.$message({
                    message: '该项目下只有一个试验设备,无需选择!',
                    type: 'warning'