|
|
@@ -2,10 +2,10 @@
|
|
|
<div style="width: 100%">
|
|
|
<div>
|
|
|
<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
|
|
|
- <el-tab-pane label="场景管理" name="scene">
|
|
|
+ <el-tab-pane label="公司模板" name="scene">
|
|
|
<SceneManagerVue />
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="场景标签管理" name="label">
|
|
|
+ <el-tab-pane label="场景标签" name="label">
|
|
|
<LabelManagerVue />
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="车间模板" name="workspace">
|
|
|
@@ -13,38 +13,32 @@
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</div>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
-<script setup lang="ts">
|
|
|
-import { ref } from 'vue';
|
|
|
-import type { TabsPaneContext } from 'element-plus';
|
|
|
-import LabelManagerVue from './LabelManager.vue';
|
|
|
-import WorkspaceManagerVue from './WorkspaceManager.vue';
|
|
|
-import SceneManagerVue from './SceneManager.vue';
|
|
|
|
|
|
+<script setup lang="ts">
|
|
|
+ import { ref } from 'vue';
|
|
|
+ import type { TabsPaneContext } from 'element-plus';
|
|
|
+ import LabelManagerVue from './LabelManager.vue';
|
|
|
+ import WorkspaceManagerVue from './WorkspaceManager.vue';
|
|
|
+ import SceneManagerVue from './SceneManager.vue';
|
|
|
|
|
|
-const activeName = ref('scene');
|
|
|
-export type LabelType = 'scene' | 'label' | 'workspace';
|
|
|
-const currentLabel = ref<LabelType>('scene');
|
|
|
+ const activeName = ref('scene');
|
|
|
+ export type LabelType = 'scene' | 'label' | 'workspace';
|
|
|
+ const currentLabel = ref<LabelType>('scene');
|
|
|
|
|
|
-const handleClick = (tab: TabsPaneContext) => {
|
|
|
- console.log(tab.paneName);
|
|
|
- if (tab.paneName === 'scene') {
|
|
|
- currentLabel.value = 'scene';
|
|
|
- } else {
|
|
|
- if (tab.paneName === 'label') {
|
|
|
- currentLabel.value = 'label';
|
|
|
+ const handleClick = (tab: TabsPaneContext) => {
|
|
|
+ console.log(tab.paneName);
|
|
|
+ if (tab.paneName === 'scene') {
|
|
|
+ currentLabel.value = 'scene';
|
|
|
} else {
|
|
|
- currentLabel.value = 'workspace';
|
|
|
-
|
|
|
+ if (tab.paneName === 'label') {
|
|
|
+ currentLabel.value = 'label';
|
|
|
+ } else {
|
|
|
+ currentLabel.value = 'workspace';
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
-};
|
|
|
+ };
|
|
|
</script>
|
|
|
-
|
|
|
+
|
|
|
<style scoped></style>
|
|
|
-
|