Compare commits

..

No commits in common. "f7e9ae7b68ab22a3617d3dac3747370d8702be77" and "fc2779822e4a853b9ec578ffcb16419177857783" have entirely different histories.

2 changed files with 70 additions and 67 deletions

View File

@ -13,71 +13,74 @@
<script> <script>
import {listDynamic, getDynamic, treeDynamic} from "@/api/app/dynamic"; import {listDynamic, getDynamic, treeDynamic} from "@/api/app/dynamic";
export default {
data() { // export default {
return { //
id: '', // data() {
// // return {
loading: true, // id: '',
// // //
ids: [], // loading: true,
// // //
single: true, // ids: [],
// // //
multiple: true, // single: true,
// // //
showSearch: true, // multiple: true,
// // //
total: 0, // showSearch: true,
// App // //
dynamicList: [], // total: 0,
// // // App
title: "", // dynamicList: [],
// // //
open: false, // title: "",
// //
// open: false,
created() { //
this.getList(); //
this.getDynamic(this.id); // created() {
}, // this.getList();
// this.getDynamic(this.id);
mounted: function () { // },
this.id = this.$route().params.id; //
}, // mounted: function () {
methods: { // this.id = this.$route().params.dynamicId;
// },
getList() { // methods: {
this.loading = true; //
listDynamic(this.queryParams).then(response => { // getList() {
this.registerList = response.rows; // this.loading = true;
this.total = response.total; // listDynamic(this.queryParams).then(response => {
this.loading = false; // this.registerList = response.rows;
}); // this.total = response.total;
}, // this.loading = false;
handleDetail(row) { // });
const id = row.id || row.ids; // },
this.queryParams.dynamicId = id; // handleDetail(row) {
// const id = row.id || row.ids;
treeDynamic(this.queryParams).then(response => { //
this.form = response.data; // this.$router.push({path: '/app/dynamic/detail'});
this.open = true; // this.queryParams.dynamicId = id;
this.title = "App用户动态详情"; //
// treeDynamic(this.queryParams).then(response => {
// Access the data here // this.form = response.data;
console.log(this.form); // Or use the data in any way you need // this.open = true;
}); // this.title = "App";
}, //
getDynamic(id){ // // Access the data here
getDynamic(id).then(response => { // console.log(this.form); // Or use the data in any way you need
console.log(response.data); // });
}) // },
} // getDynamic(id){
// getDynamic(id).then(response => {
} // console.log(response.data);
// })
} // }
} //
} // }
//
// }
// }
// }
</script> </script>

View File

@ -262,7 +262,7 @@ export default {
/** 详情按钮操作 跳转到新页面*/ /** 详情按钮操作 跳转到新页面*/
handleDetail(row) { handleDetail(row) {
const id = row.id || 0; const id = row.id || 0;
this.$router.push({path: '/app/content/dynamic_detail?id='+ id}) this.$router.push({path: '/dynamic/detail'+ id})
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {