Commit 728cf469 by ext.wangyuman1

朋友圈bug修复

1 parent c1015020
...@@ -18,7 +18,13 @@ ...@@ -18,7 +18,13 @@
:label="item.label + '(' + item.list.length + ')'" :label="item.label + '(' + item.list.length + ')'"
:name="item.name" :name="item.name"
> >
<MaPage ref="page" :type="item.type" :isFriends ='isFriends' v-slot="{ list }" @listChange="listChange"> <MaPage
ref="page"
:type="item.type"
:isFriends="isFriends"
v-slot="{ list }"
@listChange="listChange"
>
<div v-if="item.type === '0'"> <div v-if="item.type === '0'">
<div v-if="list && list.length"> <div v-if="list && list.length">
<el-checkbox-group v-model="paneList[picindex].list" class="imgStyle"> <el-checkbox-group v-model="paneList[picindex].list" class="imgStyle">
...@@ -282,23 +288,35 @@ export default { ...@@ -282,23 +288,35 @@ export default {
this.ids = [] this.ids = []
}, },
centerSubmit() { centerSubmit() {
if (this.ids.length + this.talkListLength > this.maxlength2) { if (this.ids.length) {
if (this.isFriends) { if (this.isFriends) {
this.$message.error('除图片素材可选9条数据,其他类型仅可选择一条数据,且只能选择一种类型') if (this.ids[0].mediaType === '0') {
} else { // 朋友圈下的图片,最大数量为9
this.$message.error('最多新建或选择' + this.maxlength2 + '个素材') this.maxlength2 = 9
} else {
this.maxlength2 = 1
}
} }
if (this.ids.length + this.talkListLength > this.maxlength2) {
if (this.isFriends) {
this.$message.error('除图片素材可选9条数据,其他类型仅可选择一条数据,且只能选择一种类型')
} else {
this.$message.error('最多新建或选择' + this.maxlength2 + '个素材')
}
return return
} else {
this.dialogVisibel = false
this.$emit('itemArry', this.ids, this.maxlength2)
this.$emit('update:choseDialog', this.dialogVisibel)
this.$refs.multipleTable.forEach((item) => {
item.clearSelection()
})
this.ids = []
this.clearPaneList()
}
} else { } else {
this.dialogVisibel = false this.$message.error('请选择素材!')
this.$emit('itemArry', this.ids, this.maxlength2)
this.$emit('update:choseDialog', this.dialogVisibel)
this.$refs.multipleTable.forEach((item) => {
item.clearSelection()
})
this.ids = []
this.clearPaneList()
} }
}, },
// 单个选择 // 单个选择
......
...@@ -85,11 +85,11 @@ ...@@ -85,11 +85,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column show-overflow-tooltip prop="createBy" label="创建人"></el-table-column> <el-table-column show-overflow-tooltip prop="createBy" label="创建人"></el-table-column>
<el-table-column <el-table-column show-overflow-tooltip prop="executeTime" label="执行时间">
show-overflow-tooltip <template #default="{ row }">
prop="executeTime" {{ row.executeTime ? row.executeTime : '—' }}
label="执行时间" </template>
></el-table-column> </el-table-column>
<el-table-column show-overflow-tooltip prop="status" label="任务状态"> <el-table-column show-overflow-tooltip prop="status" label="任务状态">
<template #default="{ row }"> <template #default="{ row }">
<div> <div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!