Commit e7105dd1 authored by lshan's avatar lshan

删除之前部分代码

parent d484d82d
...@@ -77,14 +77,10 @@ ...@@ -77,14 +77,10 @@
编辑 编辑
</a> </a>
<a-divider v-show="record.notify_status === 1" type="vertical" /> <a-divider v-show="record.notify_status === 1" type="vertical" />
<<<<<<< HEAD
<a v-if="record.notify_status==1" @click="onDelete(record)"> <a v-if="record.notify_status==1" @click="onDelete(record)">
删除 删除
</a> </a>
<a v-else-if="record.notify_status==2" style="color: rgba(249, 250, 251, var(--tw-text-opacity));"> <a v-else-if="record.notify_status==2" style="color: rgba(249, 250, 251, var(--tw-text-opacity));">
=======
<a v-show="record.notify_status === 1" @click="onDelete(record)">
>>>>>>> origin/dev
删除 删除
</a> </a>
</span> </span>
......
...@@ -140,7 +140,6 @@ export default Vue.extend({ ...@@ -140,7 +140,6 @@ export default Vue.extend({
}, },
created() { created() {
this.getList() this.getList()
this.search()
}, },
methods:{ methods:{
tableChange(e: any) { tableChange(e: any) {
...@@ -155,7 +154,6 @@ export default Vue.extend({ ...@@ -155,7 +154,6 @@ export default Vue.extend({
offset: (this.pagination.current - 1) * this.pagination.defaultPageSize offset: (this.pagination.current - 1) * this.pagination.defaultPageSize
} }
news.articleList(params).then(res => { news.articleList(params).then(res => {
console.log(res,'this getlist')
this.list = res.data.items this.list = res.data.items
this.pagination.total = res.data.total this.pagination.total = res.data.total
// if (this.searchPageReqParams.title) { // if (this.searchPageReqParams.title) {
...@@ -165,26 +163,15 @@ export default Vue.extend({ ...@@ -165,26 +163,15 @@ export default Vue.extend({
}, },
findTitle() { findTitle() {
const searchParams = this.searchPageReqParams.article_type === 1 ? "searchByPolicy" : "searchByTitle" const searchParams = this.searchPageReqParams.article_type === 1 ? "searchByPolicy" : "searchByTitle"
console.log(searchParams,'this searchParams'); console.log(searchParams);
news[searchParams]({title: this.searchPageReqParams.title}).then(res => { news[searchParams]({title: this.searchPageReqParams.title}).then(res => {
console.log(res,'this res') console.log(res,'this res')
this.list = res.data.items this.list = res.data.items
this.pagination.total = res.data.total this.pagination.total = res.data.total
console.log(this.list,'this.list');
}) })
}, },
search(){
this.getList
if(this.searchPageReqParams.article_type === 1){
this.list.filter(item=>{
console.log(item,'this item');
// return item.title.includes(this.searchPageReqParams.title);
})
}
},
query(){ query(){
console.log(this.searchPageReqParams); console.log(this.searchPageReqParams);
this.getList() this.getList()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment