|
@@ -45,7 +45,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { newsList, newsUpdate } from '@/api/contentManager'
|
|
|
+import { newsList, newsUpdate, newsDel } from '@/api/contentManager'
|
|
|
import pagination from '@/components/Pagination/index'
|
|
|
import store from '@/store'
|
|
|
export default {
|
|
@@ -77,7 +77,6 @@ export default {
|
|
|
type: 1
|
|
|
}
|
|
|
newsList(params).then(res => {
|
|
|
- console.log(res)
|
|
|
if(res.code == 200) {
|
|
|
this.tableList = res.data.rows
|
|
|
this.pageInfo.total = res.data.total
|
|
@@ -102,6 +101,7 @@ export default {
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
+ console.log(true)
|
|
|
newsDel({ id: row.id }).then(res => {
|
|
|
console.log(res)
|
|
|
if(res.code == 200) {
|
|
@@ -114,7 +114,9 @@ export default {
|
|
|
this.$message.error(res.msg)
|
|
|
}
|
|
|
})
|
|
|
- }).catch(() => { })
|
|
|
+ }).catch(() => {
|
|
|
+ console.log(false)
|
|
|
+ })
|
|
|
|
|
|
},
|
|
|
onStop(row, status) { // 停止
|