素材库

This commit is contained in:
yanran200730
2023-03-07 14:29:54 +08:00
parent 5f6e420460
commit ebf652932a
4 changed files with 235 additions and 8 deletions

View File

@@ -281,7 +281,7 @@
<el-button @click="onDateForm" type="primary" :loading="isLoading2" style="width: 92px;">确认</el-button>
</div>
</ai-dialog>
<!-- <ChooseMaterial ref="ChooseMaterial" :instance="instance"></ChooseMaterial> -->
<ChooseMaterial ref="ChooseMaterial" :instance="instance" @change="onChooseChange"></ChooseMaterial>
</div>
</template>
<template #footer>
@@ -294,7 +294,7 @@
<script>
import Phone from './Phone'
// import ChooseMaterial from '../../../AppMaterialLibrary/components/ChooseMaterial.vue'
import ChooseMaterial from './ChooseMaterial.vue'
import { mapActions, mapState } from 'vuex'
export default {
@@ -308,7 +308,7 @@ export default {
components: {
Phone,
// ChooseMaterial
ChooseMaterial
},
data() {
@@ -390,6 +390,12 @@ export default {
methods: {
...mapActions(['initOpenData', 'transCanvas']),
onChooseChange (e) {
this.form.content = e.filter(v => v.msgType === '0').map(v => v.content).join(' ')
this.fileList = this.fileList.concat(e.filter(v => v.msgType !== '0'))
},
getInfo(id) {
this.instance.post(`/app/appmasssendingtask/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {