This commit is contained in:
2024-04-09 15:03:53 +08:00
parent 810532a948
commit fb4d5e435b
2 changed files with 31 additions and 22 deletions

View File

@ -19,6 +19,11 @@
</el-select>
</el-form-item>
</el-form>
<el-form :inline="true" :model="updata" class="demo-form-inline">
<el-form-item label="任务名称">
<el-input v-model="updata.routeName" placeholder="审批人"></el-input>
</el-form-item>
</el-form>
</div>
<div class="nodes">
<div class="nodenames">

View File

@ -26,8 +26,8 @@
<el-button type="primary" plain size="mini" @click="goManageNodeInformation">人工添加触发条件</el-button>
</el-form-item>
</el-form>
<el-form label-width="100px" ref="form" :model="form">
<el-form-item label="所属服务包" prop="servicePackageId" required="servicePackageId">
<el-form label-width="100px" ref="form" :model="form" :rules="rules">
<el-form-item label="所属服务包" prop="servicePackageId">
<el-select v-model="form.servicePackageId" placeholder="请选择所属服务包" style="width:600px" multiple>
<el-option v-for="item in addpackagelist" :key="item.id" :label="item.packageName"
:value="item.id" />
@ -237,8 +237,8 @@ export default {
specialDiseaseRoute(this.$route.query.id).then(res => {
this.list = res.data
this.list.percentage = this.list.agreeNumber / this.list.totalNumber * 100
res.data.routePackageList.forEach(e => {
this.form.servicePackageId.push(e.servicePackageId)
res.data.routePackageList?.forEach(e => {
e.servicePackageId ? this.form.servicePackageId.push(e.servicePackageId) : ''
})
//
servicepackageinfo({ departmentId: res.data.departmentId }).then(res => {
@ -357,25 +357,29 @@ export default {
})
this.form.routePackageList = routePackageList
}
this.$confirm('是否确认保存?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(() => {
updateSpecialDiseaseRoute(this.form).then(response => {
this.$notify({
type: 'success',
title: '提示',
message: '保存成功,即将返回上一页',
duration: 3000
});
setTimeout(() => {
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
this.$router.push({
path: "/specialdisease/specialDiseaseRoute",
this.$refs["form"].validate(valid => {
if (valid) {
this.$confirm('是否确认保存?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(() => {
updateSpecialDiseaseRoute(this.form).then(response => {
this.$notify({
type: 'success',
title: '提示',
message: '保存成功,即将返回上一页',
duration: 3000
});
})
}, 3000);
});
setTimeout(() => {
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
this.$router.push({
path: "/specialdisease/specialDiseaseRoute",
});
})
}, 3000);
});
})
}
})
},
//