parent
c85b99090d
commit
817ccc7511
@ -55,6 +55,6 @@ defineExpose({
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
/* 因为 joolun 实现依赖 avue 组件,该页面使用了 card.scc */
|
||||
@import url('../wx-msg/card.scss');
|
||||
/* 因为 joolun 实现依赖 avue 组件,该页面使用了 card.scss */
|
||||
@import '../wx-msg/card.scss';
|
||||
</style>
|
||||
|
@ -51,7 +51,7 @@
|
||||
>
|
||||
<WxMaterialSelect
|
||||
type="image"
|
||||
:account-id="accountId"
|
||||
:account-id="accountId!"
|
||||
@select-material="onMaterialSelected"
|
||||
/>
|
||||
</el-dialog>
|
||||
@ -93,11 +93,11 @@ const showImageDialog = ref(false)
|
||||
const fileList = ref<UploadFiles>([])
|
||||
interface UploadData {
|
||||
type: UploadType
|
||||
accountId: number | undefined
|
||||
accountId: number
|
||||
}
|
||||
const uploadData: UploadData = reactive({
|
||||
type: UploadType.Image,
|
||||
accountId: accountId
|
||||
accountId: accountId!
|
||||
})
|
||||
|
||||
/** 素材选择完成事件*/
|
||||
|
@ -125,7 +125,7 @@
|
||||
</el-container>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
<script setup lang="ts" name="NewsForm">
|
||||
import { Editor } from '@/components/Editor'
|
||||
import { createEditorConfig } from '../editor-config'
|
||||
import CoverSelect from './CoverSelect.vue'
|
||||
|
@ -76,7 +76,7 @@ import {
|
||||
|
||||
const message = useMessage() // 消息
|
||||
|
||||
const accountId = ref<number>(0)
|
||||
const accountId = ref<number>(-1)
|
||||
provide('accountId', accountId)
|
||||
|
||||
const loading = ref(true) // 列表的加载中
|
||||
@ -90,16 +90,7 @@ interface QueryParams {
|
||||
const queryParams: QueryParams = reactive({
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
accountId: 0
|
||||
})
|
||||
|
||||
interface UploadData {
|
||||
type: 'image' | 'video' | 'audio'
|
||||
accountId: number
|
||||
}
|
||||
const uploadData: UploadData = reactive({
|
||||
type: 'image',
|
||||
accountId: 0
|
||||
accountId: accountId
|
||||
})
|
||||
|
||||
// ========== 草稿新建 or 修改 ==========
|
||||
@ -126,8 +117,8 @@ const onBeforeDialogClose = async (onDone: () => {}) => {
|
||||
// ======================== 列表查询 ========================
|
||||
/** 设置账号编号 */
|
||||
const setAccountId = (id: number) => {
|
||||
queryParams.accountId = id
|
||||
uploadData.accountId = id
|
||||
accountId.value = id
|
||||
// queryParams.accountId = id
|
||||
}
|
||||
|
||||
/** 查询列表 */
|
||||
|
@ -339,7 +339,7 @@ div {
|
||||
|
||||
.left {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
display: block;
|
||||
float: left;
|
||||
width: 350px;
|
||||
height: 715px;
|
||||
|
Loading…
Reference in New Issue
Block a user