mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 02:46:44 +08:00
受众查看接口替换
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<el-button type="primary" class="findBtn" size="medium" @click="tableDataReset">重置</el-button>
|
||||
</div>
|
||||
<el-table ref="multipleTable" :data="tableDataShow" tooltip-effect="dark" style="width: 100%">
|
||||
|
||||
|
||||
<el-table-column label="姓名" prop="name" align="center" ></el-table-column>
|
||||
<el-table-column prop="userNo" label="工号" align="center"></el-table-column>
|
||||
<el-table-column prop="departName" label="部门" align="center"></el-table-column>
|
||||
@@ -30,9 +30,9 @@
|
||||
|
||||
<script>
|
||||
import { getToken } from '@/utils/token'
|
||||
import usergroupApi from "@/api/modules/usergroup";
|
||||
import userApi from "@/api/system/user";
|
||||
import orgApi from "@/api/system/organiza";
|
||||
import apiAudience from "@/api/boe/audience.js";
|
||||
export default{
|
||||
data(){
|
||||
return{
|
||||
@@ -76,15 +76,23 @@
|
||||
},
|
||||
mounted() {
|
||||
let that = this;
|
||||
if (that.$route.query.id) {
|
||||
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();
|
||||
}
|
||||
if (this.$route.query.id) {
|
||||
let req = {audienceId:this.$route.query.id}
|
||||
apiAudience.detail(req).then((res) => {
|
||||
if (res.status == 200) {
|
||||
that.form = res.result;
|
||||
that.tableData = res.result.memberList;
|
||||
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:{
|
||||
|
||||
Reference in New Issue
Block a user