|
|
|
|
@ -13,8 +13,8 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn">
|
|
|
|
|
<div class="submit">提交任务</div>
|
|
|
|
|
<div class="btn" v-if="currentComponent">
|
|
|
|
|
<div class="submit" @click="submit">提交任务</div>
|
|
|
|
|
<div class="retrain">重新实训</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="container" v-if="menuIndex != 0">
|
|
|
|
|
@ -264,11 +264,14 @@
|
|
|
|
|
<main-content
|
|
|
|
|
v-if="menuIndex == 0"
|
|
|
|
|
:currentComponent="currentComponent"
|
|
|
|
|
ref="contentRef"
|
|
|
|
|
></main-content>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
import { ref } from "vue";
|
|
|
|
|
import { defineExpose } from "vue";
|
|
|
|
|
import * as portraitModel from "@/api/portraitModel";
|
|
|
|
|
import mainContent from "@/views/components/mainContent.vue";
|
|
|
|
|
import rfmAnalysis from "./components/rfmAnalysis.vue";
|
|
|
|
|
@ -282,7 +285,9 @@ import viscosityAnalysis from "./components/viscosityAnalysis.vue";
|
|
|
|
|
import AARRRAnalysis from "./components/AARRRAnalysis.vue";
|
|
|
|
|
import portraitAnalysis from "./components/portraitAnalysis.vue";
|
|
|
|
|
import { onMounted } from "vue";
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
|
const currentComponent = ref(null);
|
|
|
|
|
const contentRef = ref(null);
|
|
|
|
|
const menuIndex = ref(1);
|
|
|
|
|
const tabIndex = ref(0);
|
|
|
|
|
const fileTable = ref([]);
|
|
|
|
|
@ -348,6 +353,7 @@ const tabList = ref([
|
|
|
|
|
backImg: "src/assets/images/icon10.png",
|
|
|
|
|
},
|
|
|
|
|
]);
|
|
|
|
|
// defineExpose({ submitMethod });
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
getTableData("用户属性表");
|
|
|
|
|
});
|
|
|
|
|
@ -384,6 +390,12 @@ const changeTab = (item) => {
|
|
|
|
|
menuIndex.value = 0;
|
|
|
|
|
// tabIndex = item.id;
|
|
|
|
|
};
|
|
|
|
|
const submit = () => {
|
|
|
|
|
contentRef.value.submitMethod();
|
|
|
|
|
};
|
|
|
|
|
// defineExpose({
|
|
|
|
|
// submit,
|
|
|
|
|
// });
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
@ -437,12 +449,12 @@ const changeTab = (item) => {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.btn{
|
|
|
|
|
.btn {
|
|
|
|
|
display: flex;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 70px;
|
|
|
|
|
top: 110px;
|
|
|
|
|
.submit{
|
|
|
|
|
.submit {
|
|
|
|
|
width: 99px;
|
|
|
|
|
height: 31px;
|
|
|
|
|
background-image: url("@/assets/images/submit.png");
|
|
|
|
|
@ -450,8 +462,9 @@ const changeTab = (item) => {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
line-height: 31px;
|
|
|
|
|
padding-left: 30px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
.retrain{
|
|
|
|
|
.retrain {
|
|
|
|
|
width: 99px;
|
|
|
|
|
height: 31px;
|
|
|
|
|
background-image: url("@/assets/images/retrain.png");
|
|
|
|
|
@ -460,6 +473,7 @@ const changeTab = (item) => {
|
|
|
|
|
line-height: 31px;
|
|
|
|
|
padding-left: 30px;
|
|
|
|
|
margin-left: 20px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.container {
|
|
|
|
|
|