This commit is contained in:
faiz 2024-06-25 15:27:15 +08:00
parent bc0e6ba142
commit d61156cf9d
2 changed files with 24 additions and 17 deletions

View File

@ -436,7 +436,7 @@ export default {
form: {}, form: {},
rules:{ rules:{
flowObj: [ flowObj: [
{ required: true, message: '请选择活动区域', trigger: 'change' } { required: true, message: '请选择流转对象', trigger: 'change' }
], ],
} }
} }

View File

@ -3,14 +3,14 @@
<div class="app-container"> <div class="app-container">
<div class="filter-container"> <div class="filter-container">
<el-input v-model="listQuery.product_name" placeholder="产品名称" style="width: 200px;" class="filter-item" /> <el-input v-model="listQuery.product_name" placeholder="产品名称" style="width: 200px;" class="filter-item" />
<el-select v-model="listQuery.os_status" placeholder="平台状态" class="filter-item">
<el-cascader <el-option
v-model="listQuery.os_status" v-for="item in os_arr"
placeholder="平台状态" :key="item.value"
:options="os_arr" :label="item.label"
class="filter-item" :value="item.value">
@change="handleChange" </el-option>
/> </el-select>
<el-button class="filter-item" type="primary" icon="el-icon-search" @click="getList"> <el-button class="filter-item" type="primary" icon="el-icon-search" @click="getList">
搜索 搜索
@ -79,13 +79,17 @@ export default {
limit: 10, limit: 10,
product_name: '' product_name: ''
}, },
os_arr: { 1: '美团', 2: '快手', 3: '抖音' }, os_arr: [{
form: {}, value: '1',
rules:{ label: '美团'
flowObj: [ }, {
{ required: true, message: '请选择活动区域', trigger: 'change' } value: '2',
], label: '快手'
} }, {
value: '3',
label: '抖音'
}],
form: {}
} }
}, },
created() { created() {
@ -100,11 +104,14 @@ export default {
methods: { methods: {
getList() { getList() {
this.$axios.get('/admin/index/productNameList', { params: this.listQuery }).then(response => { this.$axios.get('/admin/index/productNameList', { params: this.listQuery }).then(response => {
console.log(response)
this.listLoading = false
console.log(this.listLoading)
this.list = response.data.data this.list = response.data.data
this.total = response.data.total this.total = response.data.total
this.timetype_arr = response.ext.timetype this.timetype_arr = response.ext.timetype
this.oss = response.ext.oss this.oss = response.ext.oss
this.listLoading = false
}).catch(() => { }).catch(() => {
}) })
} }