|
@@ -1268,7 +1268,7 @@
|
|
|
class="hc-attachment-item"
|
|
|
>
|
|
|
<div class="hc-attachment-file-name">
|
|
|
- <HcIcon name="arrow-up-down" class="text-blue" />
|
|
|
+ <HcIcon name="drag-move-2" class="text-blue" />
|
|
|
<HcIcon name="attachment" class="ml-2" />
|
|
|
<div class="name">{{ item1?.name }}</div>
|
|
|
</div>
|
|
@@ -3092,8 +3092,11 @@ const abolishOneSave = async () => {
|
|
|
const attachmentModal = ref(false)
|
|
|
const attachmentModalShow = () => {
|
|
|
attachmentModal.value = true
|
|
|
- initSortable()
|
|
|
+
|
|
|
getAttachmentList()
|
|
|
+ nextTick(()=>{
|
|
|
+ initSortable()
|
|
|
+ })
|
|
|
}
|
|
|
const attachmentListLoaing = ref(false)
|
|
|
const attachmentList = ref([])
|
|
@@ -3166,7 +3169,9 @@ const saveFileOrder = async () => {
|
|
|
|
|
|
// 监听attachmentList变化时初始化拖拽
|
|
|
watch(() => attachmentList.value, () => {
|
|
|
- initSortable()
|
|
|
+ nextTick(()=>{
|
|
|
+ initSortable()
|
|
|
+ })
|
|
|
}, { deep: true })
|
|
|
//预览
|
|
|
const previewFile = (item) => {
|