| | |
| | | )" |
| | | :key="lix" |
| | | > |
| | | <div class="icon-box"> |
| | | <div class="icon-box" @click="clickHref(v)"> |
| | | <div> |
| | | <img :src="getIconByExtension(v.doc_name)" alt="" /> |
| | | </div> |
| | |
| | | maxRows: 5, |
| | | }" |
| | | /> |
| | | |
| | | <div class="btn-send"> |
| | | <div style="width: 100%;display: flex;justify-content: space-between"> |
| | | <a-button |
| | | :disabled="onFileSelectedLoading" |
| | | @click="selectFile" |
| | | type="text" |
| | | style="border-radius: 24px" |
| | | > |
| | | <icon-attachment |
| | | size="28" |
| | | style="color: #0960bd" |
| | | /> |
| | | <input |
| | | ref="fileInput" |
| | | type="file" |
| | | style="display: none" |
| | | @change="onFileSelected" |
| | | /> |
| | | </a-button> |
| | | <span |
| | | style="cursor: pointer;margin-left: 20px;"> |
| | | </span> |
| | | <a-button |
| | | :disabled="chatDis" |
| | | @click="sentClick" |
| | |
| | | <icon-send size="32" style="color: #0960bd" /> |
| | | </a-button> |
| | | </div> |
| | | <!-- <div class="btn-send">--> |
| | | <!-- <a-button--> |
| | | <!-- :disabled="chatDis"--> |
| | | <!-- @click="sentClick"--> |
| | | <!-- type="text"--> |
| | | <!-- style="border-radius: 24px"--> |
| | | <!-- :loading="loading"--> |
| | | <!-- >--> |
| | | <!-- <icon-send size="32" style="color: #0960bd" />--> |
| | | <!-- </a-button>--> |
| | | <!-- </div>--> |
| | | </div> |
| | | <!-- <div style="margin-top: 0px">--> |
| | | <!-- <a-upload--> |
| | |
| | | <!-- </template>--> |
| | | <!-- </a-upload>--> |
| | | <!-- </div>--> |
| | | <span |
| | | style=" |
| | | position: absolute; |
| | | top: 94px; |
| | | left: 20px; |
| | | z-index: 999; |
| | | cursor: pointer; |
| | | " |
| | | > |
| | | <icon-attachment |
| | | size="28" |
| | | @click="selectFile" |
| | | style="color: #0960bd" |
| | | /> |
| | | <input |
| | | ref="fileInput" |
| | | type="file" |
| | | style="display: none" |
| | | @change="onFileSelected" |
| | | /> |
| | | </span> |
| | | <!-- <span--> |
| | | <!-- style="--> |
| | | <!-- position: absolute;--> |
| | | <!-- top: 94px;--> |
| | | <!-- left: 20px;--> |
| | | <!-- z-index: 999;--> |
| | | <!-- cursor: pointer;--> |
| | | <!-- "--> |
| | | <!-- >--> |
| | | <!-- <icon-attachment--> |
| | | <!-- size="28"--> |
| | | <!-- @click="selectFile"--> |
| | | <!-- style="color: #0960bd"--> |
| | | <!-- />--> |
| | | <!-- <input--> |
| | | <!-- ref="fileInput"--> |
| | | <!-- type="file"--> |
| | | <!-- style="display: none"--> |
| | | <!-- @change="onFileSelected"--> |
| | | <!-- />--> |
| | | <!-- </span>--> |
| | | <div class="uploadFileList"> |
| | | <div |
| | | class="files" |
| | |
| | | > |
| | | <a-comment |
| | | :author="item.name" |
| | | :content="item.size + ''" |
| | | :content="(item.size/1024).toFixed(2) + 'K'" |
| | | style=" |
| | | background: var(--color-bg-2); |
| | | padding: 10px; |
| | | border-radius: 10px; |
| | | font-size: 12px; |
| | | " |
| | | > |
| | | <template #avatar> |
| | |
| | | } |
| | | |
| | | return dataItem; |
| | | }; |
| | | |
| | | const clickHref = (item) => { |
| | | // return Message.warning('暂无法查看'); |
| | | window.open(`/api/v1/document/show/${item.doc_id}`, '_blank'); |
| | | }; |
| | | |
| | | const getIconByExtension = computed(() => (extension) => { |
| | |
| | | padding: 10px; |
| | | border-radius: 14px; |
| | | min-width: 200px; |
| | | cursor: pointer; |
| | | .icon-text { |
| | | margin-left: 10px; |
| | | } |