|
@@ -249,13 +249,6 @@
|
|
|
:showProgress="false" :canChoose="true" :showError="false" :show-progress="false" disablePreview
|
|
:showProgress="false" :canChoose="true" :showError="false" :show-progress="false" disablePreview
|
|
|
:image-styles="imageStyle" @update:modelValue="(val) => handleFileUpdate(val, '1')"
|
|
:image-styles="imageStyle" @update:modelValue="(val) => handleFileUpdate(val, '1')"
|
|
|
customClass="avatar-uploader">
|
|
customClass="avatar-uploader">
|
|
|
- <view class="file-item">
|
|
|
|
|
- <image v-if="!isPdf(fileListID1.path)" class="avatar" :src="updateUrl + (fileListID1.path)">
|
|
|
|
|
- </image>
|
|
|
|
|
- <view v-else>
|
|
|
|
|
- <image class="icon" :src="icon_doc" />
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
</cwg-file-picker-wrapper>
|
|
</cwg-file-picker-wrapper>
|
|
|
<!-- <view v-else>-->
|
|
<!-- <view v-else>-->
|
|
|
<!-- <view class="file-item">-->
|
|
<!-- <view class="file-item">-->
|
|
@@ -278,13 +271,6 @@
|
|
|
:showProgress="false" :canChoose="true" :showError="false" :show-progress="false" disablePreview
|
|
:showProgress="false" :canChoose="true" :showError="false" :show-progress="false" disablePreview
|
|
|
:image-styles="imageStyle" @update:modelValue="(val) => handleFileUpdate(val, '2')"
|
|
:image-styles="imageStyle" @update:modelValue="(val) => handleFileUpdate(val, '2')"
|
|
|
customClass="avatar-uploader">
|
|
customClass="avatar-uploader">
|
|
|
- <view class="file-item">
|
|
|
|
|
- <image v-if="!isPdf(fileListID2.path)" class="avatar" :src="updateUrl + (fileListID2.path)">
|
|
|
|
|
- </image>
|
|
|
|
|
- <view v-else>
|
|
|
|
|
- <image class="icon" :src="icon_doc" />
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
</cwg-file-picker-wrapper>
|
|
</cwg-file-picker-wrapper>
|
|
|
</uni-col>
|
|
</uni-col>
|
|
|
<uni-col :xs="24" :sm="24" :md="4" :lg="4" :xl="4">
|
|
<uni-col :xs="24" :sm="24" :md="4" :lg="4" :xl="4">
|
|
@@ -470,13 +456,16 @@
|
|
|
</view>
|
|
</view>
|
|
|
<uni-row class="demo-uni-row uni-row1" :gutter="20">
|
|
<uni-row class="demo-uni-row uni-row1" :gutter="20">
|
|
|
<uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
|
|
<uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
|
|
|
- <cwg-file-picker :limit="9" :multiple="true" :editable="true" :fileMediatype="'all'"
|
|
|
|
|
- uploadUrl="/custom/file/upload/10" :baseUrl="updateUrl" :imageWidth="100" :imageHeight="60"
|
|
|
|
|
|
|
+ <cwg-file-picker-wrapper :limit="9" :multiple="true" :editable="true" :fileMediatype="'all'"
|
|
|
|
|
+ uploadUrl="/custom/file/upload/10" :baseUrl="updateUrl" :imageWidth="100" :imageHeight="60" noFileList
|
|
|
:showPreviewDelete="false" :canDelete="false" :uploadError="false" :showProgress="false"
|
|
:showPreviewDelete="false" :canDelete="false" :uploadError="false" :showProgress="false"
|
|
|
:image-styles="imageStyle" @update:modelValue="(val) => handleFileUpdate(val, '10')"
|
|
:image-styles="imageStyle" @update:modelValue="(val) => handleFileUpdate(val, '10')"
|
|
|
custom-class="fileOther" :showError="false">
|
|
custom-class="fileOther" :showError="false">
|
|
|
- <button type="primary" class="btn btn-danger waves-effect waves-light">{{ t('Btn.Upload') }}</button>
|
|
|
|
|
- </cwg-file-picker>
|
|
|
|
|
|
|
+ <template #add-button="{ handleChoose }">
|
|
|
|
|
+ <button type="primary" class="btn btn-danger waves-effect waves-light btn-upload" @click="handleChoose">{{ t('Btn.Upload') }}</button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ </cwg-file-picker-wrapper>
|
|
|
<view class="fileList">
|
|
<view class="fileList">
|
|
|
<view id="files" v-for="(item, index) in fileListOthers" :key="index">
|
|
<view id="files" v-for="(item, index) in fileListOthers" :key="index">
|
|
|
|
|
|
|
@@ -486,13 +475,6 @@
|
|
|
:showProgress="false" :imageWidth="200" :imageHeight="150" :showPreviewDelete="true"
|
|
:showProgress="false" :imageWidth="200" :imageHeight="150" :showPreviewDelete="true"
|
|
|
:disablePreview="true" :image-styles="imageStyle" :canChoose="true"
|
|
:disablePreview="true" :image-styles="imageStyle" :canChoose="true"
|
|
|
@update:modelValue="(val) => handleFileUpdate(val, '1')">
|
|
@update:modelValue="(val) => handleFileUpdate(val, '1')">
|
|
|
- <view class="file-item">
|
|
|
|
|
- <image v-if="!isPdf(item.path) || !isPdf(item.againPath)" class="avatar"
|
|
|
|
|
- :src="updateUrl + (item.againPath || item.path)"></image>
|
|
|
|
|
- <view v-else>
|
|
|
|
|
- <image class="icon" :src="icon_doc" />
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
</cwg-file-picker-wrapper>
|
|
</cwg-file-picker-wrapper>
|
|
|
<view class="options">
|
|
<view class="options">
|
|
|
<u-button style="margin-right: 20px;" :disabled="item.status == 2" @click.stop="showFile(item)">
|
|
<u-button style="margin-right: 20px;" :disabled="item.status == 2" @click.stop="showFile(item)">
|
|
@@ -1041,7 +1023,7 @@ function changeCountry(value: any) {
|
|
|
function handleFileUpdate(value, type) {
|
|
function handleFileUpdate(value, type) {
|
|
|
console.log(value, type, 'uplaod')
|
|
console.log(value, type, 'uplaod')
|
|
|
if (type == 10) {
|
|
if (type == 10) {
|
|
|
- uni.showToast({ title: t('card.New1.d5'), icon: 'none' })
|
|
|
|
|
|
|
+ // uni.showToast({ title: t('card.New1.d5'), icon: 'none' })
|
|
|
getCustomFileList();
|
|
getCustomFileList();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1859,4 +1841,7 @@ onUnmounted(() => {
|
|
|
color: var(--bs-heading-color);
|
|
color: var(--bs-heading-color);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+.btn-upload{
|
|
|
|
|
+ width: px2rpx(120);
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|