Commit 2cbc57a4 by 胡悦

修复bug

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