修改
This commit is contained in:
parent
c5415758cc
commit
b78422e226
@ -9,10 +9,42 @@ export function specialDiseaseRoute(id) {
|
||||
}
|
||||
|
||||
|
||||
//查询
|
||||
//查询主路径详情
|
||||
export function selectSpecialDisease(id) {
|
||||
return request({
|
||||
url: `/system/specialDiseaseNode/selectSpecialDisease?specialDiseaseRouteId=${id}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//查询触发条件详情
|
||||
export function triggerCondition(id) {
|
||||
return request({
|
||||
url: `/system/triggerCondition/${id}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
//修改保存触发条件
|
||||
export function triggerConditionedit(data) {
|
||||
return request({
|
||||
url: `/system/triggerCondition/edit`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//删除修改触发条件id
|
||||
export function triggerConditiondel(ids) {
|
||||
return request({
|
||||
url: `/system/triggerCondition/${ids}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
//删除主路径
|
||||
export function specialDiseaseRoutedel(id) {
|
||||
return request({
|
||||
url: `/system/specialDiseaseRoute/${id}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
@ -297,6 +297,9 @@ import miniProgram from '../components/miniProgram.vue'
|
||||
import {
|
||||
selectTaskTypeList, taskPartitionList, taskStatusDictList
|
||||
} from '@/api/system/specialDiseaseNode'
|
||||
import {
|
||||
triggerCondition, triggerConditionedit
|
||||
} from "@/api/system/editorialSpecialization";
|
||||
export default {
|
||||
components: { wangeditor, question, propaganda, message, officialAccount, miniProgram },
|
||||
name: "specialDiseaseNode",
|
||||
@ -362,7 +365,7 @@ export default {
|
||||
created() {
|
||||
if (this.$route.query) {
|
||||
this.updata.suitRange = this.$route.query.suitRange
|
||||
// selectSpecialDisease(this.$route.query.id).then(res => {})
|
||||
triggerCondition(this.$route.query.id).then(res => { })
|
||||
}
|
||||
this.taskinfo();
|
||||
},
|
||||
@ -397,7 +400,9 @@ export default {
|
||||
//暂存
|
||||
TemporaryStorage() {
|
||||
this.$refs.wangeditor.emit()
|
||||
console.log(this.lists)
|
||||
triggerConditionedit(this.lists).then(res => {
|
||||
|
||||
})
|
||||
},
|
||||
//问卷传值
|
||||
questionontemplate(item) {
|
||||
|
||||
@ -22,12 +22,12 @@
|
||||
</el-form-item>
|
||||
<el-form-item style="float: right;">
|
||||
<!-- <el-button type="primary" plain size="mini">AI生成触发条件</el-button> -->
|
||||
<el-button type="primary" plain size="mini" @click="add">人工添加主路径</el-button>
|
||||
<!-- <el-button type="primary" plain size="mini" @click="add">人工添加主路径</el-button> -->
|
||||
<el-button type="primary" plain size="mini" @click="goManageNodeInformation">人工添加触发条件</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div class="list">
|
||||
<div class="item" @click="edit">
|
||||
<div class="list" v-if="list">
|
||||
<div class="item" @click.stop="edit">
|
||||
<div class="title">
|
||||
<el-tag>主路径</el-tag>
|
||||
<span>{{ list.routeName }}</span>
|
||||
@ -47,12 +47,12 @@
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<i class="el-icon-edit" @click="edit"></i>
|
||||
<i class="el-icon-delete"></i>
|
||||
<i class="el-icon-edit" @click.stop="edit"></i>
|
||||
<i class="el-icon-delete" @click.stop="delspecialDiseaseRoute"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" v-for="item in list.triggerConditionList" :key="item.triggerConditionId"
|
||||
@click="goManageNodeInformation(item)">
|
||||
@click.stop="goManageNodeInformation(item)">
|
||||
<div class="title">
|
||||
<el-tag type="success">触发条件</el-tag>
|
||||
<span>
|
||||
@ -81,7 +81,7 @@
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<i class="el-icon-edit" @click="goManageNodeInformation"></i>
|
||||
<i class="el-icon-edit" @click.stop="goManageNodeInformation"></i>
|
||||
<i class="el-icon-delete"></i>
|
||||
</div>
|
||||
</div>
|
||||
@ -91,7 +91,7 @@
|
||||
|
||||
<script>
|
||||
import {
|
||||
specialDiseaseRoute, selectSpecialDisease
|
||||
specialDiseaseRoute, selectSpecialDisease, triggerConditiondel, specialDiseaseRoutedel
|
||||
} from "@/api/system/editorialSpecialization";
|
||||
export default {
|
||||
name: "editorialSpecialization",
|
||||
@ -110,20 +110,23 @@ export default {
|
||||
{ required: true, message: '不能为空', trigger: 'change' }
|
||||
],
|
||||
},
|
||||
list: {},
|
||||
list: undefined,
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.form.version = this.$route.query.version
|
||||
this.form.routeName = this.$route.query.routeName
|
||||
specialDiseaseRoute(this.$route.query.id).then(res => {
|
||||
this.list = res.data
|
||||
this.list.percentage = this.list.agreeNumber / this.list.totalNumber * 100
|
||||
})
|
||||
this.info();
|
||||
},
|
||||
watch: {
|
||||
},
|
||||
methods: {
|
||||
info() {
|
||||
specialDiseaseRoute(this.$route.query.id).then(res => {
|
||||
this.list = res.data
|
||||
this.list.percentage = this.list.agreeNumber / this.list.totalNumber * 100
|
||||
})
|
||||
},
|
||||
edit() {
|
||||
this.$router.push({
|
||||
path: "/specialdisease/specialDiseaseNode",
|
||||
|
||||
@ -76,41 +76,38 @@
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<!-- <el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
||||
v-hasPermi="['system:specialDiseaseRoute:add']">新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
|
||||
v-hasPermi="['system:specialDiseaseRoute:edit']">修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
|
||||
v-hasPermi="['system:specialDiseaseRoute:remove']">删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
||||
v-hasPermi="['system:specialDiseaseRoute:export']">导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row> -->
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">新增主路径</el-button>
|
||||
</el-col>
|
||||
<!-- <el-col :span="1.5">
|
||||
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
|
||||
v-hasPermi="['system:specialDiseaseRoute:edit']">修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
|
||||
v-hasPermi="['system:specialDiseaseRoute:remove']">删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
||||
v-hasPermi="['system:specialDiseaseRoute:export']">导出</el-button>
|
||||
</el-col> -->
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
<el-table v-loading="loading" :data="specialDiseaseRouteList" @selection-change="handleSelectionChange">
|
||||
<el-table-column label="序号" type="index" width="55" align="center" />
|
||||
<el-table-column label="路径名称" align="center" prop="routeName" />
|
||||
<el-table-column label="版本号" align="center" prop="version" />
|
||||
<el-table-column label="路径分类" align="center" prop="routeClassify">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.routeClassify == 'ALL' ? '全部' : '' }}
|
||||
{{ scope.row.routeClassify == 'DEPARTMENT_MANAGE_PATH' ? '科室管理路径' : '' }}
|
||||
{{ scope.row.routeClassify == 'SPECIAL_DIEASE_MANAGE_PATH' ? '专病管理路径' : '' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="发布状态" align="center" prop="releaseStatus">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.releaseStatus == 'ALL' ? '全部' : '' }}
|
||||
{{ scope.row.releaseStatus == 'PUBLISHED' ? '已发布' : '' }}
|
||||
{{ scope.row.releaseStatus == 'UNPUBLISHED' ? '未发布' : '' }}
|
||||
{{ scope.row.releaseStatus == 'PUBLISHED' ? '已发布' : '未发布' }}
|
||||
<!-- {{ scope.row.releaseStatus == 'UNPUBLISHED' ? '未发布' : '' }} -->
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="更新时间" align="center" prop="updateTime" />
|
||||
@ -327,18 +324,17 @@ export default {
|
||||
// this.open = true;
|
||||
// this.title = "修改专病路径信息";
|
||||
// });
|
||||
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/specialdisease/editorialSpecialization",
|
||||
query: {
|
||||
id: row.id,
|
||||
diseaseTypeName: row.diseaseTypeName,
|
||||
version: row.version,
|
||||
routeName: row.routeName,
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
// this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/specialdisease/editorialSpecialization",
|
||||
query: {
|
||||
id: row.id,
|
||||
diseaseTypeName: row.diseaseTypeName,
|
||||
version: row.version,
|
||||
routeName: row.routeName,
|
||||
}
|
||||
});
|
||||
// })
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
@ -362,13 +358,16 @@ export default {
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除专病路径信息编号为"' + ids + '"的数据项?').then(function () {
|
||||
return delSpecialDiseaseRoute(ids);
|
||||
//删除主路径
|
||||
this.$confirm('此操作会删除主路径, 是否继续?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => { });
|
||||
specialDiseaseRoutedel(row.id).then(res => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除主路径成功");
|
||||
})
|
||||
})
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user