|
@@ -8,37 +8,46 @@
|
|
|
<span class="label">{{
|
|
|
type === "video" ? "视频名称:" : "图片名称:"
|
|
|
}}</span>
|
|
|
- <a-input v-model:value="search.video_name" v-if="type === 'video'" />
|
|
|
- <a-input v-model:value="search.image_name" v-if="type === 'picture'" />
|
|
|
+ <a-input
|
|
|
+ v-model:value="search.videoName"
|
|
|
+ v-if="type === 'video'"
|
|
|
+ placeholder="请输入"
|
|
|
+ />
|
|
|
+ <a-input
|
|
|
+ v-model:value="search.imageName"
|
|
|
+ v-if="type === 'picture'"
|
|
|
+ placeholder="请输入"
|
|
|
+ />
|
|
|
</div>
|
|
|
<div class="search-item">
|
|
|
<span class="label">{{
|
|
|
type === "video" ? "视频类型:" : "图片类型:"
|
|
|
}}</span>
|
|
|
<a-select
|
|
|
+ placeholder="请选择"
|
|
|
style="width: 200px"
|
|
|
v-if="type === 'video'"
|
|
|
- v-model:value="search.video_type"
|
|
|
- placeholder="请选择"
|
|
|
+ v-model:value="search.videotype"
|
|
|
>
|
|
|
- <a-select-option value="shanghai">Zone one</a-select-option>
|
|
|
- <a-select-option value="beijing">Zone two</a-select-option>
|
|
|
+ <a-select-option value="H">横板视频</a-select-option>
|
|
|
+ <a-select-option value="S">竖板视频</a-select-option>
|
|
|
</a-select>
|
|
|
<a-select
|
|
|
+ placeholder="请选择"
|
|
|
style="width: 200px"
|
|
|
v-if="type === 'picture'"
|
|
|
- v-model:value="search.image_type"
|
|
|
- placeholder="请选择"
|
|
|
+ v-model:value="search.imagetype"
|
|
|
>
|
|
|
- <a-select-option value="shanghai">Zone one</a-select-option>
|
|
|
- <a-select-option value="beijing">Zone two</a-select-option>
|
|
|
+ <a-select-option value="H">横版大图</a-select-option>
|
|
|
+ <a-select-option value="S">竖版大图</a-select-option>
|
|
|
+ <a-select-option value="X">小图</a-select-option>
|
|
|
</a-select>
|
|
|
</div>
|
|
|
<div class="search-item">
|
|
|
<span class="label">推广书籍:</span>
|
|
|
<a-select
|
|
|
style="width: 200px"
|
|
|
- v-model:value="search.type"
|
|
|
+ v-model:value="search.bookname"
|
|
|
placeholder="请选择"
|
|
|
>
|
|
|
<a-select-option value="shanghai">Zone one</a-select-option>
|
|
@@ -50,15 +59,23 @@
|
|
|
}}</span>
|
|
|
<div class="search-item" v-show="openFlag">
|
|
|
<span class="label">需求方:</span>
|
|
|
- <a-input v-model:value="search.demander" type="text" />
|
|
|
+ <a-input
|
|
|
+ v-model:value="search.demander"
|
|
|
+ type="text"
|
|
|
+ placeholder="请输入"
|
|
|
+ />
|
|
|
</div>
|
|
|
<div class="search-item" v-show="openFlag">
|
|
|
<span class="label">文案:</span>
|
|
|
- <a-input v-model:value="search.editor" type="text" />
|
|
|
+ <a-input v-model:value="search.editor" type="text" placeholder="请输入" />
|
|
|
</div>
|
|
|
<div class="search-item" v-show="openFlag">
|
|
|
<span class="label">上传者:</span>
|
|
|
- <a-input v-model:value="search.uploader" type="text" />
|
|
|
+ <a-input
|
|
|
+ v-model:value="search.uploader"
|
|
|
+ type="text"
|
|
|
+ placeholder="请输入"
|
|
|
+ />
|
|
|
</div>
|
|
|
<div class="search-item">
|
|
|
<span class="label"></span>
|
|
@@ -80,11 +97,11 @@ const PictureLibrary = defineComponent({
|
|
|
openFlag: true, // 展开/收起
|
|
|
search: {
|
|
|
is_pubilc: 1, // 1公共素材 0个人素材
|
|
|
- video_name: "", // 视频名称
|
|
|
- video_type: "", // 视频类型
|
|
|
- image_name: "", // 图片名称
|
|
|
- image_type: "", // 图片类型
|
|
|
- book_name: "", // 推广书籍
|
|
|
+ videoName: "", // 视频名称
|
|
|
+ videotype: "", // 视频类型
|
|
|
+ imageName: "", // 图片名称
|
|
|
+ imagetype: "", // 图片类型
|
|
|
+ bookname: "", // 推广书籍
|
|
|
demander: "", // 需求方
|
|
|
editor: "", // 文案
|
|
|
uploader: "", // 上传者
|
|
@@ -96,26 +113,44 @@ const PictureLibrary = defineComponent({
|
|
|
mounted() {
|
|
|
console.log("TYPE", this.$props.materialType);
|
|
|
this.type = this.$props.materialType;
|
|
|
+ this.onSubmit();
|
|
|
},
|
|
|
methods: {
|
|
|
// 搜索
|
|
|
onSubmit() {
|
|
|
console.log(this.search);
|
|
|
+ let param: any = {
|
|
|
+ is_pubilc: this.search.is_pubilc,
|
|
|
+ book_name: this.search.bookname,
|
|
|
+ demander: this.search.demander,
|
|
|
+ editor: this.search.editor,
|
|
|
+ uploader: this.search.uploader,
|
|
|
+ };
|
|
|
+ if (this.type === "video") {
|
|
|
+ param.video_name = this.search.videoName;
|
|
|
+ param.video_type = this.search.videotype;
|
|
|
+ }
|
|
|
+ if (this.type === "picture") {
|
|
|
+ param.image_name = this.search.imageName;
|
|
|
+ param.image_type = this.search.imagetype;
|
|
|
+ }
|
|
|
+ console.log("上传搜索条件", param);
|
|
|
+ this.$emit("search", param);
|
|
|
},
|
|
|
// 重置
|
|
|
reset() {
|
|
|
- this.search= {
|
|
|
+ this.search = {
|
|
|
is_pubilc: this.search.is_pubilc, // 1公共素材 0个人素材
|
|
|
- video_name: "", // 视频名称
|
|
|
- video_type: "", // 视频类型
|
|
|
- image_name: "", // 图片名称
|
|
|
- image_type: "", // 图片类型
|
|
|
- book_name: "", // 推广书籍
|
|
|
+ videoName: "", // 视频名称
|
|
|
+ videotype: "", // 视频类型
|
|
|
+ imageName: "", // 图片名称
|
|
|
+ imagetype: "", // 图片类型
|
|
|
+ bookname: "", // 推广书籍
|
|
|
demander: "", // 需求方
|
|
|
editor: "", // 文案
|
|
|
uploader: "", // 上传者
|
|
|
- }
|
|
|
- }
|
|
|
+ };
|
|
|
+ },
|
|
|
},
|
|
|
});
|
|
|
|