专病路径-克隆

This commit is contained in:
shidongli 2024-08-13 15:06:57 +08:00
parent 6df60e5d8f
commit eb6181675e
2 changed files with 25 additions and 1 deletions

View File

@ -41,7 +41,14 @@ export function specialDiseaseRoutedel(id) {
method: 'delete'
})
}
// 克隆
export function cloneRoute(id) {
return request({
url: `system/specialDiseaseRoute/cloneRoute?id=${id}`,
method: 'post',
})
}
// 修改专病路径信息
export function updateSpecialDiseaseRoute(data) {
return request({

View File

@ -76,8 +76,11 @@
<!-- <el-button size="mini" type="text">复制</el-button> -->
<el-button size="mini" type="text" @click="handleUpdate(scope.row)"
v-hasPermi="['system:specialDiseaseRoute:edit']">编辑</el-button>
<el-button size="mini" type="text" @click="handlecopy(scope.row)"
>克隆</el-button>
<el-button size="mini" type="text" @click="handleDelete(scope.row)"
v-hasPermi="['system:specialDiseaseRoute:remove']">删除</el-button>
</template>
</el-table-column>
</el-table>
@ -144,7 +147,7 @@
<script>
import {
listSpecialDiseaseRoute, getSpecialDiseaseRoute, addSpecialDiseaseRoute, updateSpecialDiseaseRoute,
editReleaseStatus, selectDiseaseCount, getDepartmentList, getdiseaseList, specialDiseaseRoutedel
editReleaseStatus, selectDiseaseCount, getDepartmentList, getdiseaseList, specialDiseaseRoutedel,cloneRoute
} from "@/api/system/specialDiseaseRoute";
import {
servicepackageinfo
@ -448,6 +451,20 @@ export default {
});
})
},
/** 克隆按钮操作 */
handlecopy(row){
this.$confirm('此操作会克隆主路径, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(() => {
cloneRoute(row.id).then(res => {
this.getList();
this.$modal.msgSuccess("克隆成功");
this.$refs.DepartmentList.Departmentlist()
})
})
},
/** 删除按钮操作 */
handleDelete(row) {
//