受众查看接口替换

This commit is contained in:
daihh
2023-02-21 19:03:52 +08:00
parent 40709ce6b3
commit 2164210aaf

View File

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