File tree Expand file tree Collapse file tree 5 files changed +11
-20
lines changed Expand file tree Collapse file tree 5 files changed +11
-20
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,6 @@ defineExpose({
55
55
</script >
56
56
57
57
<style lang="scss" scoped>
58
- /* 因为 joolun 实现依赖 avue 组件,该页面使用了 card.scc */
59
- @import url ( ' ../wx-msg/card.scss' ) ;
58
+ /* 因为 joolun 实现依赖 avue 组件,该页面使用了 card.scss */
59
+ @import ' ../wx-msg/card.scss' ;
60
60
</style >
Original file line number Diff line number Diff line change 51
51
>
52
52
<WxMaterialSelect
53
53
type =" image"
54
- :account-id =" accountId"
54
+ :account-id =" accountId! "
55
55
@select-material =" onMaterialSelected"
56
56
/>
57
57
</el-dialog >
@@ -93,11 +93,11 @@ const showImageDialog = ref(false)
93
93
const fileList = ref <UploadFiles >([])
94
94
interface UploadData {
95
95
type: UploadType
96
- accountId: number | undefined
96
+ accountId: number
97
97
}
98
98
const uploadData: UploadData = reactive ({
99
99
type: UploadType .Image ,
100
- accountId: accountId
100
+ accountId: accountId !
101
101
})
102
102
103
103
/** 素材选择完成事件*/
Original file line number Diff line number Diff line change 125
125
</el-container >
126
126
</template >
127
127
128
- <script setup lang="ts">
128
+ <script setup lang="ts" name="NewsForm" >
129
129
import { Editor } from ' @/components/Editor'
130
130
import { createEditorConfig } from ' ../editor-config'
131
131
import CoverSelect from ' ./CoverSelect.vue'
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ import {
76
76
77
77
const message = useMessage () // 消息
78
78
79
- const accountId = ref <number >(0 )
79
+ const accountId = ref <number >(- 1 )
80
80
provide (' accountId' , accountId )
81
81
82
82
const loading = ref (true ) // 列表的加载中
@@ -90,16 +90,7 @@ interface QueryParams {
90
90
const queryParams: QueryParams = reactive ({
91
91
pageNo: 1 ,
92
92
pageSize: 10 ,
93
- accountId: 0
94
- })
95
-
96
- interface UploadData {
97
- type: ' image' | ' video' | ' audio'
98
- accountId: number
99
- }
100
- const uploadData: UploadData = reactive ({
101
- type: ' image' ,
102
- accountId: 0
93
+ accountId: accountId
103
94
})
104
95
105
96
// ========== 草稿新建 or 修改 ==========
@@ -126,8 +117,8 @@ const onBeforeDialogClose = async (onDone: () => {}) => {
126
117
// ======================== 列表查询 ========================
127
118
/** 设置账号编号 */
128
119
const setAccountId = (id : number ) => {
129
- queryParams . accountId = id
130
- uploadData .accountId = id
120
+ accountId . value = id
121
+ // queryParams .accountId = id
131
122
}
132
123
133
124
/** 查询列表 */
Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ div {
339
339
340
340
.left {
341
341
position : relative ;
342
- display : inline- block ;
342
+ display : block ;
343
343
float : left ;
344
344
width : 350px ;
345
345
height : 715px ;
You can’t perform that action at this time.
0 commit comments