|
@@ -157,6 +157,7 @@
|
|
|
</template>
|
|
|
<media-com ref="mediaComRef"
|
|
|
/></el-tab-pane>
|
|
|
+
|
|
|
<el-tab-pane name="excelComRef" label="表格数据"
|
|
|
><template #label>
|
|
|
<span
|
|
@@ -183,6 +184,19 @@
|
|
|
</template>
|
|
|
<TestData ref="cssjComRef"
|
|
|
/></el-tab-pane>
|
|
|
+ <el-tab-pane name="fileComRef" label="工序文件">
|
|
|
+ <template #label>
|
|
|
+ <span
|
|
|
+ >工序文件
|
|
|
+ <el-badge
|
|
|
+ :value="tabCount.file"
|
|
|
+ class="item"
|
|
|
+ type="primary"
|
|
|
+ />
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ <FileCom ref="fileComRef"
|
|
|
+ /></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</el-main>
|
|
|
</el-container>
|
|
@@ -203,6 +217,7 @@ import FaultCom from "@/views/pro/traceability/components/faultCom.vue";
|
|
|
import MediaCom from "./components/mediaCom.vue";
|
|
|
import ExcelCom from "./components/excelCom.vue";
|
|
|
import TestData from "./components/testData.vue";
|
|
|
+import FileCom from "./components/fileCom.vue";
|
|
|
|
|
|
// 传入一个url,后面不带/
|
|
|
const { form, data, option, search, page, toDeleteIds, Methords, Utils } =
|
|
@@ -226,6 +241,7 @@ const faultComRef = ref(null);
|
|
|
const mediaComRef = ref(null);
|
|
|
const excelComRef = ref(null);
|
|
|
const cssjComRef = ref(null);
|
|
|
+const fileComRef = ref(null);
|
|
|
let defaultTabName = ref("traceabilityComRef");
|
|
|
//tab页组件
|
|
|
const tabNameComRef = new Map([
|
|
@@ -238,11 +254,12 @@ const tabNameComRef = new Map([
|
|
|
["mediaComRef", mediaComRef],
|
|
|
["excelComRef", excelComRef],
|
|
|
["cssjComRef", cssjComRef],
|
|
|
+ ["fileComRef", fileComRef],
|
|
|
]);
|
|
|
let temRow = ref({});
|
|
|
const tabsEvent = (pane, ev) => {
|
|
|
defaultTabName.value = pane.props.name;
|
|
|
- //console.log(pane.props.name, temRow.value.seqNo);
|
|
|
+ console.log(temRow.value,'22')
|
|
|
if (temRow.value.seqNo) {
|
|
|
tabNameComRef.get(pane.props.name)?.value.refreshTra(temRow.value);
|
|
|
}
|
|
@@ -282,6 +299,7 @@ let tabCount = reactive({
|
|
|
medias: "",
|
|
|
excel: "",
|
|
|
testData: "",
|
|
|
+ file: "",
|
|
|
});
|
|
|
|
|
|
const handleCellClick = (row, column, event) => {
|