Compare commits
No commits in common. "a4ec4eb0d40107b311c8df01679eab8fe4a8b32f" and "b48e4b51a030adc3f0ad3e912458c26fc58d6acb" have entirely different histories.
a4ec4eb0d4
...
b48e4b51a0
@ -389,16 +389,11 @@ export async function initCanvasData(dvId, busiFlag, callBack) {
|
||||
dvMainStore.setCanvasViewInfo(canvasViewInfoPreview)
|
||||
// 刷新联动信息
|
||||
getPanelAllLinkageInfo(dvInfo.id).then(rsp => {
|
||||
if(rsp && rsp.data){
|
||||
dvMainStore.setNowPanelTrackInfo(rsp.data)
|
||||
}
|
||||
|
||||
})
|
||||
// 刷新跳转信息
|
||||
queryVisualizationJumpInfo(dvInfo.id).then(rsp => {
|
||||
if(rsp && rsp.data){
|
||||
dvMainStore.setNowPanelJumpInfo(rsp.data)
|
||||
}
|
||||
})
|
||||
callBack({ canvasDataResult, canvasStyleResult, dvInfo, canvasViewInfoPreview })
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import { ref, watch, onMounted, onBeforeUnmount, shallowRef, nextTick } from 'vue'
|
||||
import { ref, watch, onMounted, onBeforeUnmount, shallowRef } from 'vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
// import Assocmodule from '@/viewsnew/application/SfcEditor/NavbarEditor/assocPage.vue'
|
||||
import PermissionSet from '@/views/system/manage/index.vue'
|
||||
@ -7,7 +7,6 @@ import UserInfoSet from '@/views/system/manage/user/userinfo.vue'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import dataVisualization from '@/data-visualization/index.vue'
|
||||
import FormCreate from '@/views/BuiltInPage/FormCreate.vue'
|
||||
|
||||
const router = useRouter()
|
||||
const navtitle: any = ref('')
|
||||
const navmenulist: any = ref([
|
||||
@ -25,10 +24,8 @@ function menuclick(index: any) {
|
||||
currentMoudleId.value = navmenulist.value[index].module_id
|
||||
if (navmenulist.value[index].module_id && navmenulist.value[index].module_id !== '') {
|
||||
showcontent.value = ''
|
||||
currentMoudleType.value = ''
|
||||
currentMoudleId.value = navmenulist.value[index].module_id
|
||||
currentrow.value = navmenulist.value[index]
|
||||
nextTick(() => {
|
||||
if (currentrow.value.module_type == '03') {
|
||||
currentMoudleType.value = 'dataV'
|
||||
showcontent.value = 'dataVisualization'
|
||||
@ -43,17 +40,14 @@ function menuclick(index: any) {
|
||||
currentrow: currentrow.value
|
||||
}
|
||||
localStorage.setItem('currentInfo', JSON.stringify(currentInfo))
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
function childmenuclick(item: any) {
|
||||
if (item.module_id && item.module_id !== '') {
|
||||
showcontent.value = ''
|
||||
currentMoudleType.value = ''
|
||||
if (item.module_id && item.module_id !== '') {
|
||||
currentrow.value = item
|
||||
currentMoudleId.value = item.module_id
|
||||
nextTick(() => {
|
||||
if (currentrow.value.module_type == '03') {
|
||||
currentMoudleType.value = 'dataV'
|
||||
showcontent.value = 'dataVisualization'
|
||||
@ -68,7 +62,6 @@ function childmenuclick(item: any) {
|
||||
currentrow: currentrow.value
|
||||
}
|
||||
localStorage.setItem('currentInfo', JSON.stringify(currentInfo))
|
||||
})
|
||||
}
|
||||
}
|
||||
// 时间相关逻辑移动到独立组件中
|
||||
@ -117,8 +110,6 @@ onBeforeUnmount(() => {
|
||||
|
||||
});
|
||||
function init(){
|
||||
showcontent.value = ''
|
||||
currentMoudleType.value = ''
|
||||
userList.value = JSON.parse(localStorage.getItem('userInfo') || '{}')
|
||||
navtitle.value = userList.value.app_name
|
||||
applicationId.value = userList.id
|
||||
@ -244,11 +235,11 @@ function userdetails() {
|
||||
</div>
|
||||
</div>
|
||||
<div class="system-box-content" style="height: calc(100vh - 65px);">
|
||||
<dataVisualization v-if="showcontent === 'dataVisualization'" :appId="currentrow.module_id"
|
||||
<dataVisualization v-if="showcontent == 'dataVisualization'" :appId="currentrow.module_id"
|
||||
:busiFlag="currentMoudleType" />
|
||||
<FormCreate v-if="showcontent === 'FormCreate'" :appId="currentrow.module_id" />
|
||||
<PermissionSet v-if="showcontent === 'PermissionSet'" :isshowheader="true" />
|
||||
<UserInfoSet v-if="showcontent === 'UserInfoSet'" :userList="userList" :applicationId="applicationId" />
|
||||
<FormCreate v-if="showcontent == 'FormCreate'" :appId="currentrow.module_id" />
|
||||
<PermissionSet v-if="showcontent == 'PermissionSet'" :isshowheader="true" />
|
||||
<UserInfoSet v-if="showcontent == 'UserInfoSet'" :userList="userList" :applicationId="applicationId" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user