parent
34318fa53c
commit
1b4370d8ad
@ -0,0 +1,63 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-col :span="8" v-if="false">
|
||||||
|
<el-form-item label="产品标签" :disabled="$store.getters.usersort">
|
||||||
|
<el-select v-model="form1.cpbq" placeholder="请选择产品标签" clearable @clear="isclear" multiple>
|
||||||
|
<el-option v-for="item in options" :key="item" :label="item" :value="item">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: '',
|
||||||
|
components: {},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
options: [],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
props: {
|
||||||
|
form1: {
|
||||||
|
type: Object,
|
||||||
|
default: null
|
||||||
|
},
|
||||||
|
mytype: {
|
||||||
|
type: String,
|
||||||
|
default: "3"
|
||||||
|
},
|
||||||
|
|
||||||
|
},
|
||||||
|
created() { },
|
||||||
|
mounted() { this.listIS(this.mytype) },
|
||||||
|
methods: {
|
||||||
|
isclear() {
|
||||||
|
this.$emit("isclear")
|
||||||
|
},
|
||||||
|
listIS(type) {
|
||||||
|
let obj = {
|
||||||
|
1: "labelTypeHZP",
|
||||||
|
2: "labelTypeYP",
|
||||||
|
3: "labelTypeYLQX",
|
||||||
|
4: "labelTypeYP",
|
||||||
|
5: "labelTypeYP",
|
||||||
|
}
|
||||||
|
this.options = []
|
||||||
|
|
||||||
|
this.$api.cosmetics.getDicts({ dict: obj[type] || "zw" }).then(res => {
|
||||||
|
console.log(798, res);
|
||||||
|
if (res.code == 200) {
|
||||||
|
res.data.map(element => {
|
||||||
|
this.options.push(element.dictLabel)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style scoped lang='scss'></style>
|
Loading…
Reference in new issue