Commit 2cbc57a4 by 胡悦

修复bug

1 parent ef138cbf
......@@ -210,13 +210,13 @@ getTableData()
</a-popconfirm>
<a-button type="text" @click="edit(record)" v-if="record.systemPublishStatus === 1 || record.systemPublishStatus === 2">编辑</a-button>
<a-button type="text" @click="previewOA(record)">OA截图</a-button>
<a-image-preview
:src="data.imgUrl"
v-model:visible="data.imgVisible"
/>
</template>
</a-table>
<a-pagination class="pagination" :total="data.total" @change="changePage" @page-size-change="changeSize" show-total show-jumper show-page-size />
<a-image-preview
:src="data.imgUrl"
v-model:visible="data.imgVisible"
/>
</div>
</template>
......
......@@ -25,7 +25,7 @@ const data = ref({
pcImgLoading: false,
errMeg: ''
})
const width = ref('400px');
const width = ref('640px');
const formRef = ref();
onBeforeMount(() => {
......@@ -318,7 +318,7 @@ onBeforeUnmount(() => {
:defaultConfig="editorConfig"
:mode="mode"
v-model="valueHtml"
style="height: 400px; overflow-y: hidden"
style="height: 400px; overflow-y: hidden;"
@onCreated="handleCreated"
@onChange="handleChange"
@customPaste="customPaste"
......@@ -361,5 +361,6 @@ onBeforeUnmount(() => {
}
.editor-box {
border: 1px solid #DCDEE0;
width: 70%;
}
</style>
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-07-23 16:43:07
* @LastEditors: huyue
* @LastEditTime: 2024-10-17 17:47:54
* @LastEditTime: 2024-10-21 15:09:55
-->
<script lang="ts" setup>
import { ref } from 'vue'
......@@ -77,6 +77,7 @@ const edit = (item: Partial<TableItem>) => {
});
}
const previewOA = (record: Partial<TableItem>) => {
console.log(record)
if (record?.oaCover) {
data.value.imgVisible = true
data.value.imgUrl = record?.oaCover
......@@ -121,13 +122,13 @@ getTableData()
</a-popconfirm>
<a-button type="text" @click="edit(record)" v-if="record.publishStatus === 2 || record.publishStatus === 3">编辑</a-button>
<a-button type="text" @click="previewOA(record)">OA截图</a-button>
<a-image-preview
:src="data.imgUrl"
v-model:visible="data.imgVisible"
/>
</template>
</a-table>
<a-pagination class="pagination" :total="data.total" @change="changePage" @page-size-change="changeSize" show-total show-jumper show-page-size />
<a-image-preview
:src="data.imgUrl"
v-model:visible="data.imgVisible"
/>
</div>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!