|
@@ -121,10 +121,19 @@
|
|
|
</template>
|
|
|
<FaultCom ref="faultComRef" />
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane name="bugComRef" label="缺陷项">缺陷项</el-tab-pane>
|
|
|
- <el-tab-pane name="imgComRef" label="图片采集"
|
|
|
- >图片采集</el-tab-pane
|
|
|
- >
|
|
|
+<!-- <el-tab-pane name="bugComRef" label="缺陷项">缺陷项</el-tab-pane>-->
|
|
|
+ <el-tab-pane name="mediaComRef" label="图片采集"
|
|
|
+ ><template #label>
|
|
|
+ <span
|
|
|
+ >图片采集
|
|
|
+ <el-badge
|
|
|
+ :value="tabCount.medias"
|
|
|
+ class="item"
|
|
|
+ type="primary"
|
|
|
+ />
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ <media-com ref="mediaComRef"/></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</el-main>
|
|
|
</el-container>
|
|
@@ -144,6 +153,7 @@ import RecordCom from "@/views/pro/traceability/components/recordCom.vue";
|
|
|
import CheckCom from "@/views/pro/traceability/components/checkCom.vue";
|
|
|
import EquitCom from "@/views/pro/traceability/components/equitCom.vue";
|
|
|
import FaultCom from "@/views/pro/traceability/components/faultCom.vue";
|
|
|
+import MediaCom from "./components/mediaCom.vue";
|
|
|
|
|
|
// 传入一个url,后面不带/
|
|
|
const { form, data, option, search, page, toDeleteIds, Methords, Utils } =
|
|
@@ -163,6 +173,7 @@ const recordComRef = ref(null);
|
|
|
const checkComRef = ref(null);
|
|
|
const equitComRef = ref(null);
|
|
|
const faultComRef = ref(null);
|
|
|
+const mediaComRef = ref(null);
|
|
|
let defaultTabName = ref("traceabilityComRef");
|
|
|
//tab页组件
|
|
|
const tabNameComRef = new Map([
|
|
@@ -172,6 +183,7 @@ const tabNameComRef = new Map([
|
|
|
["checkComRef", checkComRef],
|
|
|
["equitComRef", equitComRef],
|
|
|
["faultComRef", faultComRef],
|
|
|
+ ["mediaComRef", mediaComRef],
|
|
|
]);
|
|
|
let temRow = ref({});
|
|
|
const tabsEvent = (pane, ev) => {
|
|
@@ -216,6 +228,7 @@ let tabCount = reactive({
|
|
|
check: "",
|
|
|
equit: "",
|
|
|
fault: "",
|
|
|
+ medias: "",
|
|
|
});
|
|
|
|
|
|
const handleCellClick = (row, column, event) => {
|