|
|
@@ -632,18 +632,14 @@
|
|
|
<el-col :span="18">
|
|
|
<div style="margin-left: 60px;margin-bottom: 15px">
|
|
|
规则框类型:
|
|
|
- <el-radio-group v-model="infoDraw.type">
|
|
|
- <el-radio :label="'0'" @click="change(0)">识别框</el-radio>
|
|
|
- <el-radio :label="'1'" @click="change(1)">屏蔽框</el-radio>
|
|
|
+ <el-radio-group v-model="infoDraw.type" @input="raidoChange">
|
|
|
+ <el-radio :label="'0'">识别框</el-radio>
|
|
|
+ <el-radio :label="'1'">屏蔽框</el-radio>
|
|
|
</el-radio-group>
|
|
|
</div>
|
|
|
<PolygonDrawer ref="PolygonDrawer" :channelId="infoDraw.channelId" :pointId="infoDraw.pointId" :pointName="infoDraw.pointName" :taskId="infoDraw.taskId" :type="infoDraw.type" :tasks="infoDraw.tasks" />
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="openDraw = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="submitForm">确定</el-button>
|
|
|
- </div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -2068,6 +2064,12 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ },
|
|
|
+ raidoChange(val) {
|
|
|
+ if (this.$refs.PolygonDrawer.polygons.size != 0) {
|
|
|
+ this.$refs.PolygonDrawer.polygons = []
|
|
|
+ this.$refs.PolygonDrawer.redrawAllPolygons()
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|