Commit c2efb733 authored by 胡占生's avatar 胡占生 🇨🇳

fix:修复算法场景修改保存报错问题

parent 901ce925
...@@ -369,13 +369,13 @@ export default { ...@@ -369,13 +369,13 @@ export default {
handleAlgUpdate(row) { handleAlgUpdate(row) {
row.isEdit=true row.isEdit=true
}, },
handleAlgSave(row) { handleAlgSave(row) {
row.isEdit=false row.isEdit=false
}, },
handleAlgDelete(index,row) { handleAlgDelete(index,row) {
this.form.variables.splice(index, 1) this.form.variables.splice(index, 1)
}, },
algAdd(){ algAdd(){
this.form.variables.push({ this.form.variables.push({
variableKey:'', variableKey:'',
variableType:'', variableType:'',
......
...@@ -378,7 +378,7 @@ ...@@ -378,7 +378,7 @@
this.form =JSON.parse(JSON.stringify(response.data)) this.form =JSON.parse(JSON.stringify(response.data))
arr=response.data.pieceDtos arr=response.data.pieceDtos
this.form.pieceDtos=[] this.form.pieceDtos=[]
// this.form.alarmTypes=this.form.alarmTypes.split(',') this.form.alarmTypes=[]
this.form.cameraIdList=this.form.cameraIdList.split(',') this.form.cameraIdList=this.form.cameraIdList.split(',')
this.form.cameraIdList=this.changeArr(this.form.cameraIdList) this.form.cameraIdList=this.changeArr(this.form.cameraIdList)
arr.forEach(item => { arr.forEach(item => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment