diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 4f3a807..c14453a 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -377,8 +377,8 @@ html, body, #app, .el-container, .el-aside, .el-main { //放大缩小按钮上外边距 .scale { margin-top: 10px; - z-index: 666; - position: static; + //z-index: 666; + //position: static; //top: -20px; } diff --git a/src/components/DetailComponent/ApprovalDetail.vue b/src/components/DetailComponent/ApprovalDetail.vue index 06362a5..0bc03e8 100644 --- a/src/components/DetailComponent/ApprovalDetail.vue +++ b/src/components/DetailComponent/ApprovalDetail.vue @@ -55,19 +55,9 @@ const props = defineProps({ default: false } }) -watch(() => props.loading, (newVal) => { - props.loading = newVal -}, {deep: true}) const form = ref() - -const localData = reactive({ - fileList: props.formData.fileList, - singleFile: props.formData.singleFile -}) - const schema = computed(()=>{ let arr - if(props.type == 'approval') { arr = [ { @@ -86,7 +76,7 @@ const schema = computed(()=>{ component: ()=>(
{ - props.formData.singleFile?.originalFileName ? + props.formData.singleFile?.originalFileName? handleDownload(props.formData.singleFile)} @@ -118,7 +108,7 @@ const schema = computed(()=>{ component: ()=>(
{ - props.formData.singleFile?.originalFileName ? + props.formData.singleFile?.originalFileName? handleDownload(props.formData.singleFile)} @@ -143,7 +133,7 @@ const schema = computed(()=>{ component: ()=>(
{ - props.formData.singleFile?.originalFileName ? + props.formData.singleFile?.originalFileName? handleDownload(props.formData.singleFile)} @@ -172,10 +162,13 @@ const handleDownload = (row) => { loading.close() }) } - watchEffect(()=>{ Object.keys(props.formData).length && (form.value.setValues(props.formData)) }) + +watch(() => props.loading, (newVal) => { + props.loading = newVal +}, {deep: true}) diff --git a/src/components/DetailComponent/FileComponent.vue b/src/components/DetailComponent/FileComponent.vue index ae58aef..9ae988a 100644 --- a/src/components/DetailComponent/FileComponent.vue +++ b/src/components/DetailComponent/FileComponent.vue @@ -1,7 +1,7 @@