Browse Source

修改删除问题

lex-xin 5 years ago
parent
commit
2ba8f668e7

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


+ 1 - 1
dist/static/css/chunk-2485a652.143aa450.css → dist/static/css/chunk-67a67e2a.48e142f0.css

@@ -1 +1 @@
-.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.bannerImg[data-v-13db4bae],.bannerImg[data-v-60bd2106],.bannerImg[data-v-386f59a6]{height:60px}
+.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.bannerImg[data-v-5a0dd57e],.bannerImg[data-v-386f59a6],.bannerImg[data-v-aeae42b6]{height:60px}

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.d5f7d6b4.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-67a67e2a.d346d830.js


+ 5 - 3
src/views/contentManager/components/activity.vue

@@ -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) { // 停止

+ 1 - 1
src/views/contentManager/components/information.vue

@@ -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 {

Some files were not shown because too many files changed in this diff