mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
受众查看接口替换
This commit is contained in:
@@ -30,9 +30,9 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getToken } from '@/utils/token'
|
import { getToken } from '@/utils/token'
|
||||||
import usergroupApi from "@/api/modules/usergroup";
|
|
||||||
import userApi from "@/api/system/user";
|
import userApi from "@/api/system/user";
|
||||||
import orgApi from "@/api/system/organiza";
|
import orgApi from "@/api/system/organiza";
|
||||||
|
import apiAudience from "@/api/boe/audience.js";
|
||||||
export default{
|
export default{
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
@@ -76,15 +76,23 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
let that = this;
|
let that = this;
|
||||||
if (that.$route.query.id) {
|
if (this.$route.query.id) {
|
||||||
usergroupApi.detail(that.$route.query.id).then((res) => {
|
let req = {audienceId:this.$route.query.id}
|
||||||
if (res.status == 200) {
|
apiAudience.detail(req).then((res) => {
|
||||||
that.form = res.result;
|
if (res.status == 200) {
|
||||||
that.oldUserGroupItems = JSON.parse(JSON.stringify( res.result.userGroupItems ));
|
that.form = res.result;
|
||||||
that.tableData = res.result.userGroupItems;
|
that.tableData = res.result.memberList;
|
||||||
that.queryTableData();
|
that.queryTableData();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// usergroupApi.detail(that.$route.query.id).then((res) => {
|
||||||
|
// if (res.status == 200) {
|
||||||
|
// that.form = res.result;
|
||||||
|
// that.oldUserGroupItems = JSON.parse(JSON.stringify( res.result.userGroupItems ));
|
||||||
|
// that.tableData = res.result.userGroupItems;
|
||||||
|
// that.queryTableData();
|
||||||
|
// }
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
|||||||
Reference in New Issue
Block a user