|
@@ -279,6 +279,36 @@
|
|
<!-- end: '24:00'-->
|
|
<!-- end: '24:00'-->
|
|
<!-- }"></el-time-select>-->
|
|
<!-- }"></el-time-select>-->
|
|
<!-- </el-form-item>-->
|
|
<!-- </el-form-item>-->
|
|
|
|
+ <el-form-item label="公众号点播配置" prop="courseMaAppId">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="form.courseMaAppId"
|
|
|
|
+ placeholder="请选择公众号"
|
|
|
|
+ clearable
|
|
|
|
+ size="small"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in maAppList"
|
|
|
|
+ :key="item.appId"
|
|
|
|
+ :label="item.appName"
|
|
|
|
+ :value="item.appId"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="小程序点播配置" prop="courseMiniAppId">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="form.courseMiniAppId"
|
|
|
|
+ placeholder="请选择公众号"
|
|
|
|
+ clearable
|
|
|
|
+ size="small"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in miniAppList"
|
|
|
|
+ :key="item.appId"
|
|
|
|
+ :label="item.appName"
|
|
|
|
+ :value="item.appId"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item label="备注" prop="remark">
|
|
<el-form-item label="备注" prop="remark">
|
|
<el-input v-model="form.remark" type="textarea" :rows="2" placeholder="请输入备注" />
|
|
<el-input v-model="form.remark" type="textarea" :rows="2" placeholder="请输入备注" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -345,6 +375,7 @@ import {docList} from "@/api/his/doctor";
|
|
import {getVoiceApiList } from "@/api/company/companyVoiceApi";
|
|
import {getVoiceApiList } from "@/api/company/companyVoiceApi";
|
|
import {getCitysArea} from "../../../api/company/company";
|
|
import {getCitysArea} from "../../../api/company/company";
|
|
import {cateList} from "@/api/his/packageCate";
|
|
import {cateList} from "@/api/his/packageCate";
|
|
|
|
+import { getConfigByKey } from '@/api/system/config'
|
|
export default {
|
|
export default {
|
|
name: "Company",
|
|
name: "Company",
|
|
data() {
|
|
data() {
|
|
@@ -403,6 +434,8 @@ export default {
|
|
// 表单参数
|
|
// 表单参数
|
|
form: {
|
|
form: {
|
|
restartTime: '13:10',
|
|
restartTime: '13:10',
|
|
|
|
+ courseMaAppId: null,
|
|
|
|
+ courseMiniAppId: null,
|
|
},
|
|
},
|
|
// 表单校验
|
|
// 表单校验
|
|
rules: {
|
|
rules: {
|
|
@@ -469,6 +502,8 @@ export default {
|
|
open:false,
|
|
open:false,
|
|
title:"后台扣款"
|
|
title:"后台扣款"
|
|
},
|
|
},
|
|
|
|
+ maAppList: [],
|
|
|
|
+ miniAppList: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -572,7 +607,9 @@ export default {
|
|
remark: null,
|
|
remark: null,
|
|
linkName: null,
|
|
linkName: null,
|
|
limitUserCount: null,
|
|
limitUserCount: null,
|
|
- isDel: null
|
|
|
|
|
|
+ isDel: null,
|
|
|
|
+ courseMaAppId: null,
|
|
|
|
+ courseMiniAppId: null,
|
|
};
|
|
};
|
|
this.resetForm("form");
|
|
this.resetForm("form");
|
|
},
|
|
},
|
|
@@ -613,6 +650,7 @@ export default {
|
|
/** 新增按钮操作 */
|
|
/** 新增按钮操作 */
|
|
handleAdd() {
|
|
handleAdd() {
|
|
this.reset();
|
|
this.reset();
|
|
|
|
+ this.getAppList()
|
|
this.open = true;
|
|
this.open = true;
|
|
this.doctorIds=[]
|
|
this.doctorIds=[]
|
|
this.title = "添加公司";
|
|
this.title = "添加公司";
|
|
@@ -620,6 +658,7 @@ export default {
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
this.reset();
|
|
this.reset();
|
|
|
|
+ this.getAppList()
|
|
this.doctorIds=[]
|
|
this.doctorIds=[]
|
|
const companyId = row.companyId || this.ids
|
|
const companyId = row.companyId || this.ids
|
|
getCompany(companyId).then(response => {
|
|
getCompany(companyId).then(response => {
|
|
@@ -643,6 +682,26 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ getAppList() {
|
|
|
|
+ this.maAppList = []
|
|
|
|
+ this.miniAppList = []
|
|
|
|
+ const key = "courseMa.config"
|
|
|
|
+ getConfigByKey(key).then(response => {
|
|
|
|
+ const {code,data} = response
|
|
|
|
+ if (code === 200) {
|
|
|
|
+ let value = data?.configValue
|
|
|
|
+ if (value) {
|
|
|
|
+ const appList = JSON.parse(value);
|
|
|
|
+ this.maAppList = appList.filter(v => v.type === '1').map(v => {
|
|
|
|
+ return { appId: v.appid, appName: v.name }
|
|
|
|
+ })
|
|
|
|
+ this.miniAppList = appList.filter(v => v.type === '2').map(v => {
|
|
|
|
+ return { appId: v.appid, appName: v.name }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
/** 提交按钮 */
|
|
/** 提交按钮 */
|
|
submitForm() {
|
|
submitForm() {
|
|
this.$refs["form"].validate(valid => {
|
|
this.$refs["form"].validate(valid => {
|