Browse Source

随访队列列表

newMaster
1747191978@qq.com 4 months ago
parent
commit
2f828641ec
  1. 17
      acupuncture-后台/src/api/followupFile.js
  2. 41
      acupuncture-后台/src/views/followFile/index.vue

17
acupuncture-后台/src/api/followupFile.js

@ -1,16 +1,9 @@
import request from "@/utils/request";
// 公共队列
export function commonQueue(data) {
return request({
url: "/followup/commonQueue",
method: "post",
data: data,
});
}
// 随访队列
export function followupQuery(data) {
return request({
url: "/followup/query",
url: "/admin/followup/query",
method: "post",
data: data,
});
@ -18,7 +11,7 @@ export function followupQuery(data) {
// 新增随访队列
export function followupAdd(data) {
return request({
url: "/followup/add",
url: "/admin/followup/add",
method: "post",
data: data,
});
@ -26,7 +19,7 @@ export function followupAdd(data) {
// 新增随访队列
export function followupUpd(data) {
return request({
url: "/followup/upd",
url: "/admin/followup/upd",
method: "post",
data: data,
});
@ -34,7 +27,7 @@ export function followupUpd(data) {
// 新增随访队列
export function followupDel(data) {
return request({
url: "/followup/del",
url: "/admin/followup/del",
method: "post",
data: data,
});

41
acupuncture-后台/src/views/followFile/index.vue

@ -132,34 +132,35 @@
show-overflow-tooltip
min-width="100"
/>
<el-table-column
label="状态"
align="center"
prop="status"
show-overflow-tooltip
min-width="100"
>
<template slot-scope="scope">
<span v-if="scope.row.status == 0" style="color: #F56C6C">禁用</span>
<span v-else style="color: #67C23A">启用</span>
</template>
</el-table-column>
<el-table-column
fixed="right"
label="类型"
align="center"
show-overflow-tooltip
min-width="100"
min-width="130"
>
<template slot-scope="scope">
<span v-if="scope.row.type == 0">公共队列</span>
<span v-else-if="scope.row.type == 1" >{{scope.row.tenantName}}</span>
</template>
</el-table-column>
<el-table-column
label="状态"
align="center"
prop="status"
show-overflow-tooltip
min-width="80"
fixed="right"
>
<template slot-scope="scope">
<span v-if="scope.row.type == 1">公共队列</span>
<span v-else-if="scope.row.status == 1" style="color: #67C23A">本院队列</span>
<span v-if="scope.row.status == 0" style="color: #F56C6C">禁用</span>
<span v-else style="color: #67C23A">启用</span>
</template>
</el-table-column>
<el-table-column
label="创建人/创建时间"
align="center"
min-width="140"
fixed="right"
>
<template slot-scope="scope">
<div>{{ scope.row.createBy }}</div>
@ -175,7 +176,7 @@
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
:disabled="scope.row.type == 1"
:disabled="scope.row.type != 0"
>修改</el-button
>
<el-button
@ -183,7 +184,7 @@
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
:disabled="scope.row.type == 1"
:disabled="scope.row.type != 0"
>删除</el-button
>
</template>
@ -397,11 +398,7 @@ export default {
getList() {
this.loading = true;
followupQuery(this.queryParams).then((res) => {
let commonQueue = JSON.parse(localStorage.getItem('commonQueue'))
this.listDat = res.data.list;
commonQueue?.forEach(i=>{
this.listDat.unshift(i)
})
this.total = res.data.total;
this.loading = false;
});

Loading…
Cancel
Save