数据介绍等

dev
e 3 years ago
parent fc8e3a41a3
commit 0a3143d77f
  1. 1
      src/assets/css/main.css
  2. 16
      src/views/data/Framework.vue
  3. 4
      src/views/data/Introduce.vue

@ -30,7 +30,6 @@ li {
.content-box { .content-box {
padding-bottom: 30px;
-webkit-transition: left .3s ease-in-out; -webkit-transition: left .3s ease-in-out;
transition: left .3s ease-in-out; transition: left .3s ease-in-out;
background: #f0f0f0; background: #f0f0f0;

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="wrap">
<el-container> <el-container>
<el-aside width="300px"> <el-aside width="300px">
<div class="plus"> <div class="plus">
@ -18,7 +18,7 @@
</el-aside> </el-aside>
<el-main style="padding-top: 0"> <el-main style="padding-top: 0">
<el-card shadow="hover"> <el-card class="main-wrap" shadow="hover">
<el-form label-width="80px" class="flex-between mgb20"> <el-form label-width="80px" class="flex-between mgb20">
<div class="flex-center"> <div class="flex-center">
<el-form-item label="更新时间" style="margin: 0 20px 0 0"> <el-form-item label="更新时间" style="margin: 0 20px 0 0">
@ -624,7 +624,16 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.wrap, .el-container{
min-height: calc(100vh - 290px);
}
.el-aside, .main-wrap{
height: calc(100vh - 290px);
overflow: auto;
}
/deep/.el-container{ /deep/.el-container{
height: 100%;
padding-bottom: 0;
.el-aside{ .el-aside{
padding: 15px; padding: 15px;
background-color: #fff; background-color: #fff;
@ -646,5 +655,8 @@ export default {
} }
} }
} }
.el-main{
height: 100%;
}
} }
</style> </style>

@ -154,16 +154,16 @@ export default {
const keyword = this.newKeyword const keyword = this.newKeyword
if (keyword) { if (keyword) {
if (this.keywordList.find(e => e.keyword === keyword)) return this.$message.error('请不要输入重复关键字!') if (this.keywordList.find(e => e.keyword === keyword)) return this.$message.error('请不要输入重复关键字!')
this.confirmEdit()
this.$post(this.api.addKeyword,{ this.$post(this.api.addKeyword,{
categoryId: this.categoryId, categoryId: this.categoryId,
keyword keyword
}).then(res => { }).then(res => {
this.newKeyword = '' this.newKeyword = ''
this.getKeyword() this.getKeyword()
this.confirmEdit()
}).catch(res => {}) }).catch(res => {})
} else { } else {
this.$message.error('请输入关键字!') this.confirmEdit()
} }
} }
} }

Loading…
Cancel
Save