|
@@ -43,13 +43,13 @@
|
|
|
v-clickoutside="handleClose"
|
|
|
style="width: 100%"
|
|
|
class="select-table"
|
|
|
- :class="{'require-check':requireCheck} "
|
|
|
+ :class="{ 'require-check': requireCheck }"
|
|
|
>
|
|
|
<a-input
|
|
|
placeholder="请选择项目名称"
|
|
|
@focus="topMiddle = true"
|
|
|
v-model="keyValue"
|
|
|
- @change="getData"
|
|
|
+ @change="getData(productId)"
|
|
|
:disabled="disabled"
|
|
|
/>
|
|
|
<div
|
|
@@ -160,31 +160,32 @@ export default {
|
|
|
default() {
|
|
|
return false
|
|
|
},
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
taobaoSpecialOfferList: {
|
|
|
- advertiserId: "fd41614705a047dd65ab0e34e9150cfe",
|
|
|
- advertiserName: " 淘宝(中国)软件有限公司",
|
|
|
- createTime: "2021-03-03 10:15:30",
|
|
|
- designResponsibleName: "辛巴特",
|
|
|
+ advertiserId: 'fd41614705a047dd65ab0e34e9150cfe',
|
|
|
+ advertiserName: ' 淘宝(中国)软件有限公司',
|
|
|
+ createTime: '2021-03-03 10:15:30',
|
|
|
+ designResponsibleName: '辛巴特',
|
|
|
id: 3660879,
|
|
|
maxBid: 30000,
|
|
|
- mediaId: "1",
|
|
|
+ mediaId: '1',
|
|
|
productId: 1410280,
|
|
|
- productName: "头条-淘宝特价版",
|
|
|
+ productName: '头条-淘宝特价版',
|
|
|
projectId: 1530887,
|
|
|
- projectName: "头条-淘宝特价版",
|
|
|
- responsibleName: "董琪",
|
|
|
- roleCode: "operator",
|
|
|
+ projectName: '头条-淘宝特价版',
|
|
|
+ responsibleName: '董琪',
|
|
|
+ roleCode: 'operator',
|
|
|
saleId: null,
|
|
|
saleName: null,
|
|
|
- updateTime: "2021-03-03 21:23:04",
|
|
|
- userId: "a0d58df3392c4583b55ce3b041792aa7",
|
|
|
- userName: "王晓娟"
|
|
|
+ updateTime: '2021-03-03 21:23:04',
|
|
|
+ userId: 'a0d58df3392c4583b55ce3b041792aa7',
|
|
|
+ userName: '王晓娟',
|
|
|
},
|
|
|
+ productId: '',
|
|
|
loading: false,
|
|
|
busy: false,
|
|
|
wrapperCol: {
|
|
@@ -245,7 +246,8 @@ export default {
|
|
|
return { orientationId: item.orientationId, orientationName: item.orientationName }
|
|
|
})
|
|
|
},
|
|
|
- getData() {
|
|
|
+ getData(productId) {
|
|
|
+ this.productId = productId
|
|
|
if (this.keyValue == '') {
|
|
|
this.$emit('update:projectId', '')
|
|
|
}
|
|
@@ -254,6 +256,7 @@ export default {
|
|
|
userId: this.userInfo().id,
|
|
|
pageNo: this.ipagination.current,
|
|
|
projectName: this.keyValue,
|
|
|
+ productId: productId?productId:'',
|
|
|
}).then((res) => {
|
|
|
if (res.code == 0) {
|
|
|
let defaultList = res.result.records.map((item, index) => {
|
|
@@ -261,13 +264,12 @@ export default {
|
|
|
...item,
|
|
|
projectId: item.projectId + '',
|
|
|
key: index,
|
|
|
- };
|
|
|
+ }
|
|
|
})
|
|
|
if (this.type === 'taobao') {
|
|
|
- this.data = defaultList.filter(item => item.productId === 1410280);
|
|
|
- }
|
|
|
- else {
|
|
|
- this.data = defaultList;
|
|
|
+ this.data = defaultList.filter((item) => item.productId === 1410280)
|
|
|
+ } else {
|
|
|
+ this.data = defaultList
|
|
|
}
|
|
|
// this.dataElse = res.result.records.map((item, index) => {
|
|
|
// return {
|
|
@@ -319,23 +321,21 @@ export default {
|
|
|
pageSize: this.ipagination.pageSize,
|
|
|
pageNo: this.ipagination.current,
|
|
|
projectName: this.keyValue,
|
|
|
+ productId: this.productId?this.productId:null,
|
|
|
}).then((res) => {
|
|
|
if (res.code == 0) {
|
|
|
this.busy = true
|
|
|
let defaultList = res.result.records.map((item, index) => {
|
|
|
- return {
|
|
|
- ...item,
|
|
|
- projectId: item.projectId + '',
|
|
|
- }
|
|
|
- })
|
|
|
- this.data = data.concat(
|
|
|
-
|
|
|
- )
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ projectId: item.projectId + '',
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.data = data.concat()
|
|
|
if (this.type === 'taobao') {
|
|
|
- this.data = defaultList.filter(item => item.productId === 1410280);
|
|
|
- }
|
|
|
- else {
|
|
|
- this.data = data.concat(defaultList);
|
|
|
+ this.data = defaultList.filter((item) => item.productId === 1410280)
|
|
|
+ } else {
|
|
|
+ this.data = data.concat(defaultList)
|
|
|
}
|
|
|
// this.data = res.result.records.map((item, index) => {
|
|
|
// return {
|