|
|
|
@ -19,7 +19,7 @@
|
|
|
|
|
onkeypress="return event.keyCode != 13;"
|
|
|
|
|
label-width="100px"
|
|
|
|
|
>
|
|
|
|
|
<el-form-item label="渠道标签: " prop="fieldList" style="display: flex;flex-flow:nowrap;">
|
|
|
|
|
<el-form-item label="渠道标签: " style="display: flex;flex-flow:nowrap;">
|
|
|
|
|
<el-checkbox-group v-model="channelCustom.fieldList" style="display: flex;flex-flow:row wrap" @change="handleCheckboxChange">
|
|
|
|
|
<el-checkbox
|
|
|
|
|
v-for="item in monitoringModeTwoList"
|
|
|
|
@ -69,7 +69,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
channelCustomRules: {
|
|
|
|
|
fieldList: [
|
|
|
|
|
{ type: 'array', required: true, message: '请至少选择一种表格类型', trigger: 'change' }
|
|
|
|
|
{ required: true, message: '请输入渠道标签', trigger: 'blur' }
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
inputVisible: false, // 控制输入框的显隐
|
|
|
|
@ -108,7 +108,7 @@ export default {
|
|
|
|
|
// 回车/失去焦点
|
|
|
|
|
async handleInputConfirm() {
|
|
|
|
|
const inputValue = this.inputValue
|
|
|
|
|
if (inputValue) {
|
|
|
|
|
if (inputValue.trim()) {
|
|
|
|
|
const index = this.monitoringModeTwoList.findIndex(item => item.routeName === inputValue)
|
|
|
|
|
if (index === -1) { // 说明arr中不存在id为objid的对象
|
|
|
|
|
const res = await addChannel({ routeName: inputValue })
|
|
|
|
|