|
@@ -26,7 +26,7 @@
|
|
|
content-type="button"
|
|
|
:is-link="true"
|
|
|
:show-pdf-number="form.showAppointPageNum"
|
|
|
- :pdf-source="getSourceUrl(form.filePath)"
|
|
|
+ :pdf-source="pdfPath"
|
|
|
/>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -86,9 +86,7 @@ const { selectionChange, multipleUpdate } = Methords; //选中和批量删除事
|
|
|
|
|
|
const crudRef = ref(null); //crudRef.value 获取avue-crud对象
|
|
|
const bomVersion = ref(null);
|
|
|
-const getSourceUrl = (filePath) => {
|
|
|
- return import.meta.env.VITE_APP_UPLOAD_URL + filePath;
|
|
|
-};
|
|
|
+const pdfPath = ref(null)
|
|
|
const startCreat = () => {
|
|
|
if (props.tableType === "wuliaocaiji") {
|
|
|
if (data.value && data.value.length > 0) {
|
|
@@ -184,7 +182,8 @@ const onSelectedFinish = (itemValue) => {
|
|
|
form.value.lower = itemValue.lower;
|
|
|
form.value.unit = itemValue.unit;
|
|
|
} else if (props.tableType === "ESOP") {
|
|
|
- form.value.filePath = itemValue.drawingPath;
|
|
|
+ form.value.filePath = itemValue.pdfPath;
|
|
|
+ pdfPath.value = import.meta.env.VITE_APP_UPLOAD_URL + itemValue.pdfPath
|
|
|
form.value.drawingCode = itemValue.drawingCode;
|
|
|
form.value.recordVersion = itemValue.drawingVersion;
|
|
|
form.value.sortNum = itemValue.sort;
|