Commit 9a717160 authored by chenqikuai's avatar chenqikuai

fix

parent 69f8e84f
...@@ -58,7 +58,7 @@ export const SUCCESS_FOR_Cert = { ...@@ -58,7 +58,7 @@ export const SUCCESS_FOR_Cert = {
}; };
export const NOT_PASSED_FOR_Cert = { export const NOT_PASSED_FOR_Cert = {
value: eStatusOfFilerCertification.NOT_PASSED, value: eStatusOfFilerCertification.NOT_PASSED,
label: "未通过", label: "实名失败",
style: red, style: red,
icon: error, icon: error,
}; };
......
...@@ -7,7 +7,10 @@ ...@@ -7,7 +7,10 @@
@change="handleFileChange" @change="handleFileChange"
/> />
<div v-loading="loading"> <div v-loading="loading">
<label class="cursor-pointer" @click="($refs.inputRef as any).click"> <label
class="cursor-pointer inline-block -mb-4"
@click="($refs.inputRef as any).click"
>
<img <img
v-show="!url" v-show="!url"
src="@/assets/img/uploadFileImg.png" src="@/assets/img/uploadFileImg.png"
...@@ -26,6 +29,7 @@ ...@@ -26,6 +29,7 @@
import { copyrightUploadFile } from "@/service/copyrightService"; import { copyrightUploadFile } from "@/service/copyrightService";
import { syMessage } from "cqk-sy-ui"; import { syMessage } from "cqk-sy-ui";
import { ref, watch } from "vue"; import { ref, watch } from "vue";
const props = defineProps<{ const props = defineProps<{
modelValue: { modelValue: {
url?: string; url?: string;
...@@ -35,18 +39,21 @@ const props = defineProps<{ ...@@ -35,18 +39,21 @@ const props = defineProps<{
const emit = defineEmits(["update:modelValue"]); const emit = defineEmits(["update:modelValue"]);
const loading = ref(false); const loading = ref(false);
const url = ref(""); const url = ref("");
URL.revokeObjectURL(url.value);
url.value = getImageUrl(props.modelValue) || "";
watch( watch(
() => props.modelValue, () => props.modelValue,
(newV) => { (newV) => {
URL.revokeObjectURL(url.value); URL.revokeObjectURL(url.value);
url.value = getImageUrl(props.modelValue) || ""; url.value = getImageUrl(props.modelValue) || "";
console.log(getImageUrl(props.modelValue), props.modelValue);
} }
); );
function getImageUrl(dta: any) { function getImageUrl(dta: any) {
if (!dta) return ""; if (!dta) return "";
return (dta.file && URL.createObjectURL(dta.file!)) || dta.url || ""; return (dta.file && URL.createObjectURL(dta.file)) || dta.url || "";
} }
const checkType = (fileName: string) => { const checkType = (fileName: string) => {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
:visible="visible" :visible="visible"
type="element" type="element"
:elementDialogProps="{ :elementDialogProps="{
title: '新建备案人', title: title,
}" }"
:no-padding="true" :no-padding="true"
showMask showMask
...@@ -119,9 +119,7 @@ ...@@ -119,9 +119,7 @@
prop="powerOfAttorneyImage" prop="powerOfAttorneyImage"
class="flex w-full" class="flex w-full"
> >
<CollectImage <CollectImage v-model="modelOfCert.powerOfAttorneyImage"
v-model="modelOfCert.powerOfAttorneyImage"
@update:model-value="handle"
>授权书图像</CollectImage >授权书图像</CollectImage
> >
</CustomizeFormItem> </CustomizeFormItem>
...@@ -262,14 +260,19 @@ import syRadio from "@/components/Radio/index.vue"; ...@@ -262,14 +260,19 @@ import syRadio from "@/components/Radio/index.vue";
import syDatePicker from "../../components/DatePicker/index.vue"; import syDatePicker from "../../components/DatePicker/index.vue";
import { checkEmail, checkIdNumber, checkPhone } from "@/utils/match"; import { checkEmail, checkIdNumber, checkPhone } from "@/utils/match";
function handle() {
console.log(...arguments);
}
const props = defineProps<{ const props = defineProps<{
visible: boolean; visible: boolean;
}>(); }>();
const emit = defineEmits(["update:visible", "addSuccess"]); const emit = defineEmits(["update:visible", "addSuccess"]);
const title = computed(() => {
if (mode.value === "add") {
return "新建备案人";
} else {
return "编辑备案人";
}
});
const certFormRef = ref<InstanceType<typeof ElForm>>(); const certFormRef = ref<InstanceType<typeof ElForm>>();
const contactFormRef = ref<InstanceType<typeof ElForm>>(); const contactFormRef = ref<InstanceType<typeof ElForm>>();
......
...@@ -73,6 +73,18 @@ defineProps<{ ...@@ -73,6 +73,18 @@ defineProps<{
const operateList = [ const operateList = [
{ {
name: "查看详情",
value: "查看详情",
click: (slotProps: any) => {
router.push({
name: "copyRightDetail",
query: {
id: slotProps.id,
},
});
},
},
{
name: "编辑", name: "编辑",
value: "编辑", value: "编辑",
click: (slotProps: any) => { click: (slotProps: any) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment