|
@@ -794,17 +794,17 @@ export default {
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
this.reset()
|
|
|
- this.getAppList()
|
|
|
+ this.getAppList(null)
|
|
|
this.open = true
|
|
|
this.doctorIds = []
|
|
|
this.title = '添加公司'
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
+ const companyId = row.companyId || this.ids
|
|
|
this.reset()
|
|
|
- this.getAppList()
|
|
|
+ this.getAppList(companyId)
|
|
|
this.doctorIds = []
|
|
|
- const companyId = row.companyId || this.ids
|
|
|
getCompany(companyId).then(response => {
|
|
|
this.form = response.data
|
|
|
this.form.usedNum = row.usedNum
|
|
@@ -827,11 +827,12 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- getAppList() {
|
|
|
+ getAppList(companyId) {
|
|
|
this.maAppList = []
|
|
|
this.miniAppList = []
|
|
|
this.customAppList = []
|
|
|
- listAll().then(response => {
|
|
|
+ console.info(companyId)
|
|
|
+ listAll(companyId).then(response => {
|
|
|
const { code, data } = response
|
|
|
if (code === 200) {
|
|
|
if (data) {
|