|
|
@@ -64,10 +64,12 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column label="清单" align="center" header-align="center" width="120">
|
|
|
+ <el-table-column label="小程序" align="center" header-align="center" width="120">
|
|
|
<template v-slot="{row}">
|
|
|
- <span v-if="row.checklistNum> 0" @click="handleChecklist(row)"> <i class="el-icon-document-checked" /> </span>
|
|
|
- <span v-else @click="handleChecklist(row)"> 绑定 </span>
|
|
|
+ <el-link>
|
|
|
+ <span v-if="row.appNum> 0" @click="handleApp(row)"><i class="el-icon-apple" /></span>
|
|
|
+ <span v-else @click="handleApp(row)">绑定</span>
|
|
|
+ </el-link>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
@@ -87,7 +89,7 @@
|
|
|
<Doctor ref="EditDoctor" title="编辑" @formSuccess="getData" />
|
|
|
<qrcode ref="qrcode" />
|
|
|
<div id="qrcode" ref="qrcodeModal" style="position:fixed;top:-9999px;" />
|
|
|
- <ChecklistTargetConfig ref="ChecklistTargetConfig" :target-type="targetType" />
|
|
|
+ <AppTargetConfig ref="AppTargetConfig" :target-type="targetType" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -101,7 +103,7 @@ import Doctor from './components/Doctor'
|
|
|
import Pagination from '@/components/Pagination'
|
|
|
import qrcodeComponents from '@/views/hos/components/qrcode.vue'
|
|
|
import { getDoctorByPage, deleteDoctorById } from '@/api/hos/doctorApi'
|
|
|
-import ChecklistTargetConfig from '@/components/ChecklistTargetConfig'
|
|
|
+import AppTargetConfig from '@/components/AppTargetConfig'
|
|
|
import { getSettingById } from '@/api/system/settingApi'
|
|
|
import { getUserData } from '@/utils/auth'
|
|
|
|
|
|
@@ -111,7 +113,7 @@ export default {
|
|
|
components: {
|
|
|
Pagination,
|
|
|
Doctor,
|
|
|
- ChecklistTargetConfig,
|
|
|
+ AppTargetConfig,
|
|
|
qrcode: qrcodeComponents
|
|
|
},
|
|
|
filters: {
|
|
|
@@ -167,14 +169,10 @@ export default {
|
|
|
getData() {
|
|
|
this.listLoading = true
|
|
|
getDoctorByPage(this.conditions).then((resp) => {
|
|
|
- const { code, msg, data, total } = resp
|
|
|
+ const { data, total } = resp
|
|
|
this.listLoading = false
|
|
|
- if (code === 200) {
|
|
|
- this.total = total
|
|
|
- this.dataList = data
|
|
|
- } else {
|
|
|
- this.$message.error(msg)
|
|
|
- }
|
|
|
+ this.total = total
|
|
|
+ this.dataList = data
|
|
|
}).catch((error) => {
|
|
|
console.log(error)
|
|
|
})
|
|
|
@@ -200,13 +198,9 @@ export default {
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
deleteDoctorById(doctorId).then((resp) => {
|
|
|
- const { code, msg } = resp
|
|
|
- if (code === 200) {
|
|
|
- this.getData()
|
|
|
- this.$message.success(msg)
|
|
|
- } else {
|
|
|
- this.$message.error(msg)
|
|
|
- }
|
|
|
+ const { msg } = resp
|
|
|
+ this.getData()
|
|
|
+ this.$message.success(msg)
|
|
|
}).catch((error) => {
|
|
|
console.log(error)
|
|
|
})
|
|
|
@@ -295,9 +289,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 显示清单绑定配置
|
|
|
- handleChecklist(data) {
|
|
|
+ handleApp(data) {
|
|
|
const { doctorId } = data
|
|
|
- this.$refs['ChecklistTargetConfig'].showModel(doctorId)
|
|
|
+ this.$refs['AppTargetConfig'].showModel(doctorId)
|
|
|
}
|
|
|
}
|
|
|
}
|