|
@@ -8,16 +8,17 @@
|
|
<div class="link-content">
|
|
<div class="link-content">
|
|
<div class="link-box">
|
|
<div class="link-box">
|
|
<div class="link-item-box">
|
|
<div class="link-item-box">
|
|
- <a v-for="item in tableData" :key="item.id" class="link-item" :href="item.url">
|
|
|
|
|
|
+ <a v-for="item in tableData" :key="item.id" class="link-item" :href="item.url" target="_blank">
|
|
{{ item.designation }}
|
|
{{ item.designation }}
|
|
</a>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="link-btn">
|
|
<div class="link-btn">
|
|
- <el-button type="text">添加</el-button>
|
|
|
|
|
|
+ <el-button type="text" @click="showAdd">添加</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-card>
|
|
</el-card>
|
|
|
|
+ <link-add ref="linkAdd" @refreshData="getTablelist" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -25,8 +26,13 @@
|
|
import { fetchLinkList } from '@/api/link'
|
|
import { fetchLinkList } from '@/api/link'
|
|
import { hasValidRecords } from '@/utils/convert'
|
|
import { hasValidRecords } from '@/utils/convert'
|
|
|
|
|
|
|
|
+import LinkAdd from './components/LinkAdd'
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
name: 'HomeLink',
|
|
name: 'HomeLink',
|
|
|
|
+ components: {
|
|
|
|
+ LinkAdd
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
// table
|
|
// table
|
|
@@ -66,8 +72,10 @@ export default {
|
|
message: '获取消息列表出错: ' + error.message
|
|
message: '获取消息列表出错: ' + error.message
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ showAdd() {
|
|
|
|
+ this.$refs['linkAdd'].open()
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -77,6 +85,8 @@ export default {
|
|
height: calc(100% - 40px) !important;
|
|
height: calc(100% - 40px) !important;
|
|
margin: 20px 0;
|
|
margin: 20px 0;
|
|
background-color: rgba(0,0,0,0.02);
|
|
background-color: rgba(0,0,0,0.02);
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
}
|
|
}
|
|
|
|
|
|
.link-box {
|
|
.link-box {
|