|
@@ -223,6 +223,7 @@
|
|
|
<script>
|
|
|
import { listQwCompany, getQwCompany, delQwCompany, addQwCompany, updateQwCompany, exportQwCompany } from "@/api/qw/qwCompany";
|
|
|
import { getCompanyList } from "@/api/company/company";
|
|
|
+import { listAll } from '@/api/course/coursePlaySourceConfig'
|
|
|
export default {
|
|
|
name: "QwCompany",
|
|
|
watch: {
|
|
@@ -288,6 +289,9 @@ export default {
|
|
|
// 表单参数
|
|
|
form: {},
|
|
|
companys:[],
|
|
|
+ maAppList:[],
|
|
|
+ miniAppList:[],
|
|
|
+ customAppList:[],
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
corpId: [{ required: true, message: '请输入企业CorpID', trigger: 'blur' }],
|
|
@@ -358,6 +362,27 @@ export default {
|
|
|
this.resetForm("queryForm");
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
+ getAppList() {
|
|
|
+ this.maAppList = []
|
|
|
+ this.miniAppList = []
|
|
|
+ this.customAppList = []
|
|
|
+ listAll().then(response => {
|
|
|
+ const { code, data } = response
|
|
|
+ if (code === 200) {
|
|
|
+ if (data) {
|
|
|
+ this.maAppList = data.filter(v => v.type == 2).map(v => {
|
|
|
+ return { appId: v.appid, appName: v.name }
|
|
|
+ })
|
|
|
+ this.miniAppList = data.filter(v => v.type == 1).map(v => {
|
|
|
+ return { appId: v.appid, appName: v.name }
|
|
|
+ })
|
|
|
+ this.customAppList = data.filter(v => v.type == 3).map(v => {
|
|
|
+ return { appId: v.appid, appName: v.name }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
this.ids = selection.map(item => item.id)
|