素材库
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user