| | |
| | | v-if="inputVisible" |
| | | @change="handleInputConfirm" |
| | | filterable |
| | | allow-create |
| | | default-first-option |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.label" |
| | | :label="item.label" |
| | | :value="item.label" |
| | | v-for="item in optionstag" |
| | | :key="item.tagname" |
| | | :label="item.tagname" |
| | | :value="item.tagname" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | |
| | | </el-form-item></el-col |
| | | > |
| | | <el-col :span="8"> |
| | | <div style="text-align: right; padding-right: 10px;" > |
| | | <div style="text-align: right; padding-right: 10px"> |
| | | <el-button type="danger" round>删除</el-button> |
| | | </div> |
| | | </el-col> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listtag } from "@/api/system/label"; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | rules: {}, |
| | | rulesa: {}, |
| | | optionstag:[], |
| | | xjxsoptions: [ |
| | | { |
| | | value: "选项1", |
| | |
| | | }; |
| | | }, |
| | | |
| | | created() {}, |
| | | created() { |
| | | this.gettabList(); |
| | | |
| | | }, |
| | | |
| | | methods: { |
| | | getIndexInArray(arr, obj) { |
| | |
| | | ); |
| | | }, |
| | | // 标签----------------- |
| | | gettabList() { |
| | | const tagqueryParams = { |
| | | pageNum: 1, |
| | | pageSize: 1000, |
| | | tagcategoryid: "0", |
| | | }; |
| | | listtag(tagqueryParams).then((response) => { |
| | | console.log(response); |
| | | this.optionstag = response.rows; |
| | | }); |
| | | }, |
| | | handleClose(tag) { |
| | | this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1); |
| | | }, |