|
@@ -33,7 +33,7 @@
|
|
|
<template v-if="fieldType == 4">
|
|
|
<el-radio-group v-model="selected">
|
|
|
<div v-for="option in customField.option">
|
|
|
- <el-radio :label="option.id">{{ option.name }}</el-radio>
|
|
|
+ <el-radio :label="option.id" @click.native.prevent="clickItem(option)">{{ option.name }}</el-radio>
|
|
|
</div>
|
|
|
</el-radio-group>
|
|
|
</template>
|
|
@@ -94,12 +94,19 @@ export default {
|
|
|
row: {},
|
|
|
selected: [],
|
|
|
patent:{},
|
|
|
- search:{}
|
|
|
+ search:{},
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
},
|
|
|
methods: {
|
|
|
+ clickItem(option){
|
|
|
+ if(option.id == this.selected){
|
|
|
+ this.$set(this,'selected',null)
|
|
|
+ }else{
|
|
|
+ this.$set(this,'selected',option.id)
|
|
|
+ }
|
|
|
+ },
|
|
|
handleCloseLabel(label) {
|
|
|
this.dynamicLabels.splice(this.dynamicLabels.indexOf(label), 1);
|
|
|
},
|
|
@@ -332,7 +339,7 @@ export default {
|
|
|
taskId:this.taskId,
|
|
|
fieldType:this.fieldType,
|
|
|
fieldId:this.fieldId,
|
|
|
- fieldValue:[this.selected],
|
|
|
+ fieldValue:this.selected?[this.selected]:[],
|
|
|
optionType:2
|
|
|
}]
|
|
|
break
|