|
@@ -19,7 +19,7 @@
|
|
<span style="width: 100%">
|
|
<span style="width: 100%">
|
|
<el-input placeholder="搜索..." v-model="noteC" clearable> </el-input>
|
|
<el-input placeholder="搜索..." v-model="noteC" clearable> </el-input>
|
|
</span>
|
|
</span>
|
|
- <el-button type="primary">查询</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="selectContent">查询</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="noteList">
|
|
<div class="noteList">
|
|
<div class="noteBg" v-for="(item, index) in noteList" :key="index">
|
|
<div class="noteBg" v-for="(item, index) in noteList" :key="index">
|
|
@@ -90,6 +90,20 @@ export default {
|
|
console.error(err);
|
|
console.error(err);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ selectContent(){
|
|
|
|
+ let params = {
|
|
|
|
+ cn: this.noteC,
|
|
|
|
+ };
|
|
|
|
+ this.ajax
|
|
|
|
+ .get(this.$store.state.api + "selectNoteContent", params)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ this.noteList = res.data[0];
|
|
|
|
+ })
|
|
|
|
+ .catch((err) => {
|
|
|
|
+ this.$message.error("查询失败");
|
|
|
|
+ console.error(err);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
addNote() {
|
|
addNote() {
|
|
let params = {
|
|
let params = {
|
|
uid: this.userid,
|
|
uid: this.userid,
|