|
|
@ -46,11 +46,15 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="200"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" |
|
|
|
@click="handleUpdate(scope.row)" :disabled="scope.row.id == 1 || scope.row.id == 2">修改</el-button> |
|
|
|
<el-button size="mini" type="text" icon="el-icon-delete" |
|
|
|
@click="handleDelete(scope.row)" :disabled="scope.row.id == 1 || scope.row.id == 2">删除</el-button> |
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" |
|
|
|
:disabled="scope.row.id == 1 || scope.row.id == 2">修改</el-button> |
|
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" |
|
|
|
:disabled="scope.row.id == 1 || scope.row.id == 2">删除</el-button> |
|
|
|
<!-- 启用 禁用 --> |
|
|
|
<el-button size="mini" type="text" icon="el-icon-connection" @click="handleStatusUpd(scope.row)" |
|
|
|
:disabled="scope.row.id == 1 || scope.row.id == 2"> |
|
|
|
{{scope.row.status - 0 ? '启用' : '禁用'}} |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
@ -252,6 +256,7 @@ |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
/** 删除按钮操作 */ |
|
|
|
handleDelete(row) { |
|
|
|
const idList = row.id ? [row.id] : this.ids; |
|
|
@ -268,29 +273,21 @@ |
|
|
|
}) |
|
|
|
.catch(() => {}); |
|
|
|
}, |
|
|
|
/** 导出按钮操作 */ |
|
|
|
handleExport() { |
|
|
|
this.download1( |
|
|
|
"/treatment/exportTreatment", { |
|
|
|
...this.queryParams.params, |
|
|
|
}, |
|
|
|
`诊疗档案.xlsx` |
|
|
|
); |
|
|
|
}, |
|
|
|
/** 下载按钮操作 */ |
|
|
|
handleDownload() { |
|
|
|
window.open( |
|
|
|
`${process.env.VUE_APP_API_QZURL}/acupuncture/profile/TreamentTemplate.xlsx` |
|
|
|
); |
|
|
|
// this.download1( |
|
|
|
// "/patient/export", {}, |
|
|
|
// `患者档案导入模版.xlsx` |
|
|
|
// ); |
|
|
|
}, |
|
|
|
/** 导入按钮操作 */ |
|
|
|
handleImport() { |
|
|
|
this.fileList = []; |
|
|
|
this.importOpen = true; |
|
|
|
/** 删除按钮操作 */ |
|
|
|
handleStatusUpd(row) { |
|
|
|
let form = JSON.parse(JSON.stringify(row)) |
|
|
|
form.status = form.status == 1 ? 0 : 1 |
|
|
|
let title = form.status ? '启用' : '禁用' |
|
|
|
this.$modal |
|
|
|
.confirm(`是否确认 "${title}" 组织名称为 "${row.name}" 数据?`) |
|
|
|
.then(function() { |
|
|
|
return tenantsUpd(form); |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.getList(); |
|
|
|
this.$modal.msgSuccess("操作成功"); |
|
|
|
}) |
|
|
|
.catch(() => {}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|