From cf1caab5f892e1030c05a94b438f2f4437070c35 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期一, 24 六月 2024 21:22:07 +0800
Subject: [PATCH] update
---
src/views/console/workstation/index.vue | 25 ++++++++++++++++++-------
1 files changed, 18 insertions(+), 7 deletions(-)
diff --git a/src/views/console/workstation/index.vue b/src/views/console/workstation/index.vue
index 3d2d445..c4eddba 100644
--- a/src/views/console/workstation/index.vue
+++ b/src/views/console/workstation/index.vue
@@ -93,7 +93,9 @@
<el-tabs tab-position="top" class="custom-tabs" v-model="normal">
<el-tab-pane label="鏈哄櫒淇℃伅" name="1">
<el-container>
- <el-header>鍩虹鏁版嵁</el-header>
+ <el-header>
+ <h2>鍩虹鏁版嵁</h2>
+ </el-header>
<el-main>
<el-row>
<el-col :span="4">
@@ -125,14 +127,14 @@
</el-container>
<el-container>
<el-header>
- <span>閲囬泦淇℃伅</span>
- <el-button @click="editFlag = !editFlag"
- style="margin-left: auto;" text type="primary"
- size="small">閰嶇疆宸ヤ綅閲囬泦</el-button>
+ <h2>閲囬泦淇℃伅</h2>
+ <el-button v-show="list.length > 0"
+ @click="editFlag = !editFlag" style="margin-left: auto;"
+ text type="primary" size="small">閰嶇疆宸ヤ綅閲囬泦</el-button>
<el-button v-show="editFlag" @click="saveInfo" text
type="primary" size="small">淇濆瓨</el-button>
- <el-button text type="primary"
- size="small">淇敼DMP閰嶇疆</el-button>
+ <el-button text type="primary" size="small"
+ @click="editDMP">淇敼DMP閰嶇疆</el-button>
</el-header>
<el-main>
<el-table :data="list" height="200px">
@@ -491,6 +493,15 @@
this.queryList()
},
methods: {
+ editDMP() {
+ this.$HTTP.get(`/api/blade-system/param/detail?paramKey=system.dmp.url`).then(res => {
+ if (res.success) {
+ window.open(res.data.paramValue)
+ } else {
+ this.$message.error(res.msg)
+ }
+ })
+ },
renderContent(h, { data }) {
let img = data.groupTag == 'fms_beltline'
return h('span', {
--
Gitblit v1.9.3