first commit
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
const quickEntry = {
|
||||
template: `
|
||||
<div class="home-quick-entry">
|
||||
<el-card shadow="never">
|
||||
<div class="card-title" slot="header">快速入口</div>
|
||||
<div class="quickEntries">
|
||||
<div v-for="item in quickEntries" :key="item.id" @click="menuClick(item)" class="quickEntryItem"
|
||||
:style="'background-color: '+item.color">
|
||||
<el-image :src="item.imgUrl" alt="" >
|
||||
<div class="image-slot" slot="error">
|
||||
<i class="el-icon-picture-outline"></i>
|
||||
</div>
|
||||
</el-image>
|
||||
<span style="color: white; font-size: 16px">{{item.label}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</el-card>
|
||||
</div>
|
||||
`,
|
||||
data() {
|
||||
return {
|
||||
quickEntries: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
listQuickEntry() {
|
||||
|
||||
$.get("/platfotm/agenda/getQuickentry").then((res) => {
|
||||
if (res.code === 0) {
|
||||
this.quickEntries = res.data
|
||||
}
|
||||
})
|
||||
/*$.get("/platform/quickEntry/getQuickentry").then((res) => {
|
||||
if (res.code === 0) {
|
||||
this.quickEntries = res.data
|
||||
}
|
||||
})*/
|
||||
},
|
||||
menuClick(item) {
|
||||
// location.href=item.url
|
||||
sublime.jumpPagePjax(item.url)
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.listQuickEntry()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user