merge
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { inject, onMounted, reactive } from 'vue';
|
||||
import { inject, onMounted, reactive, ref } from 'vue';
|
||||
|
||||
const appProperty = reactive({
|
||||
name: '',
|
||||
@@ -33,6 +33,17 @@ const appProperty = reactive({
|
||||
|
||||
const getNode: any = inject('getNode');
|
||||
|
||||
const applist = ref<any>([
|
||||
'轨道参数',
|
||||
'列车参数',
|
||||
'基础结构参数',
|
||||
'隧道外围土体参数',
|
||||
'动力学计算',
|
||||
'车辆平稳性分析',
|
||||
'轮轨力分析',
|
||||
'振动信号分析',
|
||||
]);
|
||||
|
||||
// const attributeFun = () => {
|
||||
// setNodeAttribute(appProperty);
|
||||
// };
|
||||
@@ -42,6 +53,12 @@ const getNode: any = inject('getNode');
|
||||
// };
|
||||
|
||||
const getStyleFun = (flag: any) => {
|
||||
if (applist.value.includes(appProperty.name)) {
|
||||
return {
|
||||
color: '#67c23a',
|
||||
title: '已完成',
|
||||
};
|
||||
}
|
||||
const styles: any = {
|
||||
active: {
|
||||
color: '#409eff',
|
||||
|
||||
Reference in New Issue
Block a user