|
@@ -35,7 +35,7 @@
|
|
|
<template v-if="type === '新任命'">
|
|
|
<iframe
|
|
|
id="MyIframe"
|
|
|
- class="!w-100% !h-[calc(100vh-90px)]"
|
|
|
+ class="!w-100% !h-70vh"
|
|
|
src=""
|
|
|
frameborder="0"
|
|
|
></iframe>
|
|
@@ -44,11 +44,11 @@
|
|
|
<el-empty v-else description="暂无原始文件" />
|
|
|
</div>
|
|
|
<div class="flex-1">
|
|
|
- <FormPage ref="FormPageRef" formType="create" :itemData="itemData" />
|
|
|
+ <FormPage ref="FormPageRef" formType="create" :itemData="itemData" :readOnly="readOnly" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<template #footer>
|
|
|
- <el-button @click="handleStore" type="success">入 库</el-button>
|
|
|
+ <el-button v-if="!readOnly" @click="handleStore" type="success">入 库</el-button>
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
</template>
|
|
|
</Dialog>
|
|
@@ -155,6 +155,7 @@ const dealData = async (type, data) => {
|
|
|
|
|
|
// 重置
|
|
|
const resetData = () => {
|
|
|
+ readOnly.value = false
|
|
|
taskId.value = null
|
|
|
type.value = null
|
|
|
originUrl.value = null
|
|
@@ -164,8 +165,10 @@ const resetData = () => {
|
|
|
|
|
|
// 打开弹窗
|
|
|
const taskId = ref(null)
|
|
|
-const open = async (task_type, parse_result, task_id) => {
|
|
|
+const readOnly = ref(false)
|
|
|
+const open = async (task_type, parse_result, task_id, isDetail) => {
|
|
|
resetData()
|
|
|
+ readOnly.value = isDetail
|
|
|
taskId.value = task_id
|
|
|
type.value = task_type
|
|
|
|