| | |
| | | <div style="width: auto"> |
| | | <a-tag |
| | | v-for="(item, index) in form.important_kwd" |
| | | :key="index" |
| | | :key="item" |
| | | closable |
| | | bordered |
| | | @close="form.important_kwd.splice(index, 1)" |
| | | @close="deleteKey(item)" |
| | | style="margin-right: 10px" |
| | | > |
| | | {{ item }} |
| | |
| | | console.log(props.item); |
| | | nextTick(()=>{ |
| | | Object.assign(form, props.item); |
| | | console.log(form.important_kwd); |
| | | }) |
| | | formRef.value.resetFields(); |
| | | keyVisible.value = false; |
| | | }; |
| | | |
| | | const deleteKey = (row) => { |
| | | console.log(form.important_kwd); |
| | | console.log(row); |
| | | // form.important_kwd.splice(index, 1); |
| | | form.important_kwd = form.important_kwd.filter((item) => item !== row); |
| | | }; |
| | | |
| | | const addKey = () => { |
| | | form.important_kwd_key = ''; |
| | | formInput.value.focus(); |