main
王宇航 2024-05-23 10:28:33 +08:00
parent 2a7bd832b9
commit cd0511317f
2 changed files with 67 additions and 70 deletions

View File

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