修改bug
This commit is contained in:
parent
59117b9a27
commit
67a25a2ad0
Binary file not shown.
After Width: | Height: | Size: 271 KiB |
|
@ -25,7 +25,7 @@
|
|||
</a-button>
|
||||
</div>
|
||||
</a-upload>
|
||||
<a-modal :open="previewVisible" :footer="null" @cancel="handleCancel()">
|
||||
<a-modal :open="previewVisible" width="80%" :footer="null" @cancel="handleCancel()">
|
||||
<img alt="example" style="width: 100%" :src="previewImage" />
|
||||
</a-modal>
|
||||
</div>
|
||||
|
|
|
@ -47,6 +47,9 @@
|
|||
|
||||
.ant-modal-body {
|
||||
padding: 0;
|
||||
background: url(../public/resource/img/modalback.png);
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
|
||||
> .scrollbar > .scrollbar__bar.is-horizontal {
|
||||
display: none;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<LayoutHeader fixed v-if="getShowFullHeaderRef" />
|
||||
<Layout :class="[layoutClass]">
|
||||
<LayoutSideBar v-if="getShowSidebar || getIsMobile" />
|
||||
<Layout :class="`${prefixCls}-main`" style="background-image: url('../resource/img/bj.png');">
|
||||
<Layout :class="`${prefixCls}-main`" >
|
||||
<LayoutMultipleHeader />
|
||||
<LayoutContent />
|
||||
<LayoutFooter />
|
||||
|
|
|
@ -77,7 +77,12 @@ import JInput from "/@/components/Form/src/jeecg/components/JInput.vue";
|
|||
import { cloneDeep } from "lodash-es";
|
||||
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
|
||||
|
||||
|
||||
|
||||
const { createMessage } = useMessage();
|
||||
const formRef = ref();
|
||||
const queryParam = reactive<any>({});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
|
@ -202,7 +207,7 @@ function handleInitAccount(record) {
|
|||
var userInfo = {userName: record.tel,realname: record.name,orgCode:record.id}
|
||||
console.log("🚀 ~ handleInitAccount ~ userInfo:", userInfo)
|
||||
defHttp.post({ url: '/sys/user/initialization', params: userInfo }).then(res => {
|
||||
handleSuccess();
|
||||
handleSuccess();
|
||||
})
|
||||
|
||||
}
|
||||
|
@ -260,7 +265,7 @@ function getTableAction(record) {
|
|||
// label: '信息推送',
|
||||
// onClick: handlePushInfo.bind(null, record),
|
||||
// auth: 'orgapplyinfo:nu_org_apply_info:edit',
|
||||
// ifShow: record.buildStatus == '5'
|
||||
// ifShow: record.buildStatus == '5'n
|
||||
// },
|
||||
];
|
||||
}
|
||||
|
|
|
@ -171,7 +171,17 @@
|
|||
allow-clear placeholder="请输入驳回原因"></a-textarea>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12" v-show="formData.buildStatus == '3'">
|
||||
<a-col :span="12" v-if="formData.auditBy">
|
||||
<a-form-item label="审核人" v-bind="validateInfos.auditBy" id="OrgApplyInfoForm-auditBy">
|
||||
{{formData.auditBy}}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12" v-if="formData.auditBy">
|
||||
<a-form-item label="审核时间" v-bind="validateInfos.auditTime" id="OrgApplyInfoForm-auditTime">
|
||||
{{formData.auditTime}}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12" v-show="formData.buildStatus == '3' || formData.contract">
|
||||
<a-form-item label="加盟合同" v-bind="validateInfos.contract" id="OrgApplyInfoForm-contract">
|
||||
<JUpload v-model:value="formData.contract" :maxCount="1"></JUpload>
|
||||
</a-form-item>
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
<a-row v-if="formData.buildStatus == '3'">
|
||||
<a-col :span="12">
|
||||
<a-form-item label="加盟合同" v-bind="validateInfos.contract" id="OrgApplyInfoForm-contract">
|
||||
<JUpload v-model:value="formData.contract" :maxCount="1" accept=".pdf"></JUpload>
|
||||
<JUpload v-model:value="formData.contract" :maxCount="1" accept=".pdf" :beforeUpload="checkFileType"></JUpload>
|
||||
</a-form-item>
|
||||
<div style="margin-top: 15px;margin-left:20%;color:#8e8e8e;font-size:12px;">说明:请上传pdf文件,并且只能上传一份文件</div>
|
||||
</a-col>
|
||||
|
@ -141,6 +141,8 @@ const formData = reactive<Record<string, any>>({
|
|||
franchiseTime: null,
|
||||
contract: null,
|
||||
contractNote: null,
|
||||
auditBy: '',
|
||||
auditTime: null,
|
||||
});
|
||||
const tempNullVal = ref('')
|
||||
const { createMessage } = useMessage();
|
||||
|
@ -167,6 +169,14 @@ const disabled = computed(() => {
|
|||
return props.formDisabled;
|
||||
});
|
||||
|
||||
const checkFileType = (file) => {
|
||||
const isPDF = file.type === 'application/pdf' || file.name.endsWith('.pdf');
|
||||
if (!isPDF) {
|
||||
createMessage.error('只能上传 PDF 文件!');
|
||||
return false; // 阻止上传
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增
|
||||
|
|
Loading…
Reference in New Issue