parent
7cc8d9067c
commit
973cfe33a8
|
|
@ -52,7 +52,7 @@
|
||||||
<icon icon="ep:circle-check" />
|
<icon icon="ep:circle-check" />
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-dialog title="选择图片" v-model="dialogImageVisible" width="90%" append-to-body>
|
<el-dialog title="选择图片" v-model="dialogImageVisible" width="90%" append-to-body>
|
||||||
<wx-material-select :obj-data="objDataRef" @selectMaterial="selectMaterial" />
|
<wx-material-select :obj-data="objDataRef" @select-material="selectMaterial" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- 文件上传 -->
|
<!-- 文件上传 -->
|
||||||
|
|
@ -104,7 +104,7 @@
|
||||||
素材库选择<i class="el-icon-circle-check el-icon--right"></i>
|
素材库选择<i class="el-icon-circle-check el-icon--right"></i>
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-dialog title="选择语音" v-model="dialogVoiceVisible" width="90%" append-to-body>
|
<el-dialog title="选择语音" v-model="dialogVoiceVisible" width="90%" append-to-body>
|
||||||
<WxMaterialSelect :objData="objData" @selectMaterial="selectMaterial" />
|
<WxMaterialSelect :objData="objData" @select-material="selectMaterial" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- 文件上传 -->
|
<!-- 文件上传 -->
|
||||||
|
|
@ -162,7 +162,7 @@
|
||||||
<icon icon="ep:circle-check" />
|
<icon icon="ep:circle-check" />
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-dialog title="选择视频" v-model="dialogVideoVisible" width="90%" append-to-body>
|
<el-dialog title="选择视频" v-model="dialogVideoVisible" width="90%" append-to-body>
|
||||||
<wx-material-select :objData="objDataRef" @selectMaterial="selectMaterial" />
|
<wx-material-select :objData="objDataRef" @select-material="selectMaterial" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- 文件上传 -->
|
<!-- 文件上传 -->
|
||||||
|
|
@ -196,7 +196,7 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
<el-row>
|
<el-row>
|
||||||
<div class="select-item" v-if="objDataRef.articles.size > 0">
|
<div class="select-item" v-if="objDataRef.articles.length > 0">
|
||||||
<wx-news :articles="objDataRef.articles" />
|
<wx-news :articles="objDataRef.articles" />
|
||||||
<el-col class="ope-row">
|
<el-col class="ope-row">
|
||||||
<el-button type="danger" circle @click="deleteObj">
|
<el-button type="danger" circle @click="deleteObj">
|
||||||
|
|
@ -218,7 +218,7 @@
|
||||||
<el-dialog title="选择图文" v-model="dialogNewsVisible" width="90%" append-to-body>
|
<el-dialog title="选择图文" v-model="dialogNewsVisible" width="90%" append-to-body>
|
||||||
<wx-material-select
|
<wx-material-select
|
||||||
:objData="objDataRef"
|
:objData="objDataRef"
|
||||||
@selectMaterial="selectMaterial"
|
@select-material="selectMaterial"
|
||||||
:newsType="newsType"
|
:newsType="newsType"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
@ -270,7 +270,7 @@
|
||||||
<el-dialog title="选择图片" v-model="dialogThumbVisible" width="80%" append-to-body>
|
<el-dialog title="选择图片" v-model="dialogThumbVisible" width="80%" append-to-body>
|
||||||
<wx-material-select
|
<wx-material-select
|
||||||
:objData="{ type: 'image', accountId: objDataRef.accountId }"
|
:objData="{ type: 'image', accountId: objDataRef.accountId }"
|
||||||
@selectMaterial="selectMaterial"
|
@select-material="selectMaterial"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -482,7 +482,7 @@ export default defineComponent({
|
||||||
// 创建 tempObjItem 对象,并设置对应的值
|
// 创建 tempObjItem 对象,并设置对应的值
|
||||||
let tempObjItem = {
|
let tempObjItem = {
|
||||||
type: '',
|
type: '',
|
||||||
articles: '',
|
articles: [],
|
||||||
thumbMediaId: '',
|
thumbMediaId: '',
|
||||||
thumbMediaUrl: '',
|
thumbMediaUrl: '',
|
||||||
introduction: '',
|
introduction: '',
|
||||||
|
|
@ -560,7 +560,7 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
const deleteObj = () => {
|
const deleteObj = () => {
|
||||||
if (objDataRef.type === 'news') {
|
if (objDataRef.type === 'news') {
|
||||||
objDataRef.articles = ''
|
objDataRef.articles = []
|
||||||
} else if (objDataRef.type === 'image') {
|
} else if (objDataRef.type === 'image') {
|
||||||
objDataRef.mediaId = null
|
objDataRef.mediaId = null
|
||||||
objDataRef.url = null
|
objDataRef.url = null
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue