Compare commits
No commits in common. "f7e9ae7b68ab22a3617d3dac3747370d8702be77" and "fc2779822e4a853b9ec578ffcb16419177857783" have entirely different histories.
f7e9ae7b68
...
fc2779822e
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue