修改
This commit is contained in:
parent
1316b81c25
commit
8a2bba13cf
@ -1,23 +1,31 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
// /system/partition/taskPartitionList 任务细分
|
// 任务细分
|
||||||
export function taskPartitionList(taskTypeId) {
|
export function taskPartitionList(taskTypeId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/system/partition/taskPartitionList?taskTypeId=${taskTypeId}`,
|
url: `/system/partition/taskPartitionList?taskTypeId=${taskTypeId}`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
///system/taskType/selectTaskTypeList 任务类型
|
// 任务类型
|
||||||
export function selectTaskTypeList() {
|
export function selectTaskTypeList() {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/taskType/selectTaskTypeList',
|
url: '/system/taskType/selectTaskTypeList',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// /system/taskStatus/taskStatusDictList 任务状态
|
// 任务状态
|
||||||
export function taskStatusDictList() {
|
export function taskStatusDictList() {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/taskStatus/taskStatusDictList',
|
url: '/system/taskStatus/taskStatusDictList',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//新增修改节点
|
||||||
|
export function specialDiseaseNode(data) {
|
||||||
|
return request({
|
||||||
|
url: `/system/specialDiseaseNode/edit`,
|
||||||
|
method: 'put',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@ -71,9 +71,9 @@
|
|||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button size="mini" type="text" @click="handleselect(scope.row)"
|
<el-button size="mini" type="text" @click="handleselect(scope.row)"
|
||||||
v-if="handleselectId != scope.row.propagandaCode">选择</el-button>
|
v-if="handleselectId != scope.row.id">选择</el-button>
|
||||||
<el-button size="mini" type="text" @click="nohandleselect(scope.row)"
|
<el-button size="mini" type="text" @click="nohandleselect(scope.row)"
|
||||||
v-if="handleselectId == scope.row.propagandaCode">取消选择</el-button>
|
v-if="handleselectId == scope.row.id">取消选择</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -197,9 +197,9 @@ export default {
|
|||||||
this.$emit("on-template", { templateId: '', templateName: '' });
|
this.$emit("on-template", { templateId: '', templateName: '' });
|
||||||
},
|
},
|
||||||
handleselect(item) {
|
handleselect(item) {
|
||||||
this.handleselectId = item.propagandaCode
|
this.handleselectId = item.id
|
||||||
this.handleselectName = item.propagandaTitle
|
this.handleselectName = item.propagandaTitle
|
||||||
this.$emit("on-template", { templateId: item.propagandaCode, templateName: item.propagandaTitle });
|
this.$emit("on-template", { templateId: item.id, templateName: item.propagandaTitle });
|
||||||
this.classificationOpen = false
|
this.classificationOpen = false
|
||||||
},
|
},
|
||||||
classificationOpenfalse() {
|
classificationOpenfalse() {
|
||||||
|
|||||||
@ -57,9 +57,9 @@
|
|||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button size="mini" type="text" @click="handleselect(scope.row)"
|
<el-button size="mini" type="text" @click="handleselect(scope.row)"
|
||||||
v-if="handleselectId != scope.row.questionnaireId">选择</el-button>
|
v-if="handleselectId != scope.row.id">选择</el-button>
|
||||||
<el-button size="mini" type="text" @click="nohandleselect(scope.row)"
|
<el-button size="mini" type="text" @click="nohandleselect(scope.row)"
|
||||||
v-if="handleselectId == scope.row.questionnaireId">取消选择</el-button>
|
v-if="handleselectId == scope.row.id">取消选择</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -93,7 +93,6 @@ export default {
|
|||||||
total: 0,
|
total: 0,
|
||||||
// 问卷基本信息表格数据
|
// 问卷基本信息表格数据
|
||||||
questionList: [],
|
questionList: [],
|
||||||
departmentlist: [],
|
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
@ -102,6 +101,7 @@ export default {
|
|||||||
departmentName: null,
|
departmentName: null,
|
||||||
diseaseTypeName: null,
|
diseaseTypeName: null,
|
||||||
questionnaireName: null,
|
questionnaireName: null,
|
||||||
|
questionnaireStatus: "PUBLISHED",
|
||||||
},
|
},
|
||||||
handleselectId: '',
|
handleselectId: '',
|
||||||
handleselectName: null,
|
handleselectName: null,
|
||||||
@ -129,9 +129,9 @@ export default {
|
|||||||
this.$emit("on-template", { templateId: '', templateName: '' });
|
this.$emit("on-template", { templateId: '', templateName: '' });
|
||||||
},
|
},
|
||||||
handleselect(item) {
|
handleselect(item) {
|
||||||
this.handleselectId = item.questionnaireId
|
this.handleselectId = item.id
|
||||||
this.handleselectName = item.questionnaireName
|
this.handleselectName = item.questionnaireName
|
||||||
this.$emit("on-template", { templateId: item.questionnaireId, templateName: item.questionnaireName });
|
this.$emit("on-template", { templateId: item.id, templateName: item.questionnaireName });
|
||||||
this.classificationOpen = false
|
this.classificationOpen = false
|
||||||
},
|
},
|
||||||
classificationOpenfalse() {
|
classificationOpenfalse() {
|
||||||
@ -150,16 +150,14 @@ export default {
|
|||||||
/** 查询科室下拉树结构 */
|
/** 查询科室下拉树结构 */
|
||||||
getTreeselect() {
|
getTreeselect() {
|
||||||
getDepartmentList({
|
getDepartmentList({
|
||||||
departmentName: this.departmentName
|
departmentName: this.departmentName,
|
||||||
|
questionnaireStatus: "PUBLISHED",
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
// response.data.forEach(e => {
|
// response.data.forEach(e => {
|
||||||
// e.label = e.departmentName
|
// e.label = e.departmentName
|
||||||
// })
|
// })
|
||||||
this.deptOptions = response.data;
|
this.deptOptions = response.data;
|
||||||
});
|
});
|
||||||
selectUserDepartment().then(res => {
|
|
||||||
this.departmentlist = res.data
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
/** 查询问卷基本信息列表 */
|
/** 查询问卷基本信息列表 */
|
||||||
getList() {
|
getList() {
|
||||||
|
|||||||
@ -131,6 +131,7 @@ export default ({
|
|||||||
fileName: '',
|
fileName: '',
|
||||||
fileSpan: '',
|
fileSpan: '',
|
||||||
}
|
}
|
||||||
|
this.editor.focus()
|
||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
fieldclick() {
|
fieldclick() {
|
||||||
@ -155,6 +156,7 @@ export default ({
|
|||||||
fileName: '',
|
fileName: '',
|
||||||
fileSpan: '',
|
fileSpan: '',
|
||||||
}
|
}
|
||||||
|
this.editor.focus()
|
||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
onCreated(editor) {
|
onCreated(editor) {
|
||||||
|
|||||||
@ -404,6 +404,8 @@ export default {
|
|||||||
width: 400px;
|
width: 400px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
margin: 0px;
|
||||||
|
color: black;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
|
|||||||
@ -83,8 +83,7 @@
|
|||||||
<el-input v-model="form.secondClassifyDescribe" style="width:100px"></el-input>
|
<el-input v-model="form.secondClassifyDescribe" style="width:100px"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="执行时间" prop="">
|
<el-form-item label="执行时间" prop="">
|
||||||
<el-time-select v-model="form.executionTime" style="width:120px"
|
<el-time-select v-model="form.executionTime" style="width:120px" placeholder="选择时间">
|
||||||
:picker-options="{ start: '08:30', step: '00:30', end: '18:30' }" placeholder="选择时间">
|
|
||||||
</el-time-select>
|
</el-time-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="问卷库模板选择" prop=""
|
<el-form-item label="问卷库模板选择" prop=""
|
||||||
@ -120,7 +119,7 @@
|
|||||||
<div class="text">
|
<div class="text">
|
||||||
短信预览:
|
短信预览:
|
||||||
</div>
|
</div>
|
||||||
<el-input style="border:none" class="textarea" v-model="form.messagePreview"></el-input>
|
<el-input class="textarea" v-model="form.messagePreview" disabled></el-input>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
@ -147,8 +146,7 @@
|
|||||||
<div class="text">
|
<div class="text">
|
||||||
提醒内容:
|
提醒内容:
|
||||||
</div>
|
</div>
|
||||||
<el-input v-model="form.officialRemindContent" placeholder="" class="textarea"
|
<el-input v-model="form.officialRemindContent" class="textarea" disabled></el-input>
|
||||||
style="border: none;"></el-input>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
@ -175,15 +173,13 @@
|
|||||||
<div class="text">
|
<div class="text">
|
||||||
提醒内容:
|
提醒内容:
|
||||||
</div>
|
</div>
|
||||||
<el-input v-model="form.input" placeholder="" class="textarea"
|
<el-input v-model="form.appletRemindContent" class="textarea" disabled></el-input>
|
||||||
style="border: none;"></el-input>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="flextwo">
|
<div class="flextwo">
|
||||||
<div class="text">
|
<div class="text">
|
||||||
提示说明:
|
提示说明:
|
||||||
</div>
|
</div>
|
||||||
<el-input v-model="form.input" placeholder="" class="textarea"
|
<el-input v-model="form.appletPromptDescription" class="textarea" disabled></el-input>
|
||||||
style="border: none;"></el-input>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="card" style="height: 250px;">
|
<!-- <div class="card" style="height: 250px;">
|
||||||
@ -269,7 +265,7 @@ import propaganda from '../components/propaganda.vue'
|
|||||||
import officialAccount from '../components/officialAccount.vue'
|
import officialAccount from '../components/officialAccount.vue'
|
||||||
import miniProgram from '../components/miniProgram.vue'
|
import miniProgram from '../components/miniProgram.vue'
|
||||||
import {
|
import {
|
||||||
selectTaskTypeList, taskPartitionList, taskStatusDictList
|
selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode
|
||||||
} from '@/api/system/specialDiseaseNode'
|
} from '@/api/system/specialDiseaseNode'
|
||||||
import {
|
import {
|
||||||
selectSpecialDisease
|
selectSpecialDisease
|
||||||
@ -280,8 +276,10 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
updata: {
|
updata: {
|
||||||
|
specialDiseaseRouteId: '',
|
||||||
suitRange: '',
|
suitRange: '',
|
||||||
routeName: '',
|
routeName: '',
|
||||||
|
specialDiseaseNodeList: [],
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
nodeContent: '',
|
nodeContent: '',
|
||||||
@ -298,6 +296,10 @@ export default {
|
|||||||
officialPushSign: '0',
|
officialPushSign: '0',
|
||||||
messagePushSign: '0',
|
messagePushSign: '0',
|
||||||
taskSubdivisiontemplateType: '',
|
taskSubdivisiontemplateType: '',
|
||||||
|
officialRemindContent: '',
|
||||||
|
messagePreview: '',
|
||||||
|
appletRemindContent: '',
|
||||||
|
appletPromptDescription: '',
|
||||||
},
|
},
|
||||||
itemindex: 0,
|
itemindex: 0,
|
||||||
listindex: 0,
|
listindex: 0,
|
||||||
@ -319,7 +321,11 @@ export default {
|
|||||||
appletPushSign: '0',
|
appletPushSign: '0',
|
||||||
officialPushSign: '0',
|
officialPushSign: '0',
|
||||||
messagePushSign: '0',
|
messagePushSign: '0',
|
||||||
|
messagePreview: '',
|
||||||
|
officialRemindContent: '',
|
||||||
taskSubdivisiontemplateType: '',
|
taskSubdivisiontemplateType: '',
|
||||||
|
appletRemindContent: '',
|
||||||
|
appletPromptDescription: '',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
@ -338,8 +344,9 @@ export default {
|
|||||||
if (this.$route.query) {
|
if (this.$route.query) {
|
||||||
this.updata.suitRange = this.$route.query.suitRange
|
this.updata.suitRange = this.$route.query.suitRange
|
||||||
this.updata.routeName = this.$route.query.routeName
|
this.updata.routeName = this.$route.query.routeName
|
||||||
selectSpecialDisease(this.$route.query.id).then(res => {
|
this.updata.specialDiseaseRouteId = this.$route.query.id
|
||||||
})
|
// selectSpecialDisease(this.$route.query.id).then(res => {
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeDestroy() { },
|
beforeDestroy() { },
|
||||||
@ -365,7 +372,7 @@ export default {
|
|||||||
this.form.messagePreview = item.templateContent
|
this.form.messagePreview = item.templateContent
|
||||||
},
|
},
|
||||||
//公众号传值
|
//公众号传值
|
||||||
officialAccountontemplate() {
|
officialAccountontemplate(item) {
|
||||||
this.form.officialTemplateId = item.templateId
|
this.form.officialTemplateId = item.templateId
|
||||||
this.form.officialTemplateName = item.templateName
|
this.form.officialTemplateName = item.templateName
|
||||||
this.form.officialRemindContent = item.templateContent
|
this.form.officialRemindContent = item.templateContent
|
||||||
@ -373,7 +380,15 @@ export default {
|
|||||||
//暂存
|
//暂存
|
||||||
TemporaryStorage() {
|
TemporaryStorage() {
|
||||||
this.$refs.wangeditor.emit()
|
this.$refs.wangeditor.emit()
|
||||||
console.log(this.lists)
|
this.lists.forEach(e => {
|
||||||
|
e.list.length > 0 ? e.list.forEach(el => {
|
||||||
|
el.routeNodeDay = e.routeNodeDay
|
||||||
|
el.routeNodeName = e.routeNodeName
|
||||||
|
this.updata.specialDiseaseNodeList.push(el)
|
||||||
|
}) : ""
|
||||||
|
})
|
||||||
|
specialDiseaseNode(this.updata).then(res => {
|
||||||
|
})
|
||||||
},
|
},
|
||||||
//问卷传值
|
//问卷传值
|
||||||
questionontemplate(item) {
|
questionontemplate(item) {
|
||||||
@ -411,6 +426,9 @@ export default {
|
|||||||
taskPartitionList(id).then(res => {
|
taskPartitionList(id).then(res => {
|
||||||
this.taskPartitionList = res.data
|
this.taskPartitionList = res.data
|
||||||
})
|
})
|
||||||
|
this.form.taskSubdivision = ''
|
||||||
|
this.form.taskSubdivisionName = ''
|
||||||
|
this.form.taskSubdivisiontemplateType = ''
|
||||||
this.selectTaskTypeList.forEach(el => {
|
this.selectTaskTypeList.forEach(el => {
|
||||||
if (id == el.id) {
|
if (id == el.id) {
|
||||||
this.form.taskTypeName = el.taskTypeName
|
this.form.taskTypeName = el.taskTypeName
|
||||||
@ -420,6 +438,7 @@ export default {
|
|||||||
changetaskSubdivision(e) {
|
changetaskSubdivision(e) {
|
||||||
this.taskPartitionList.forEach(el => {
|
this.taskPartitionList.forEach(el => {
|
||||||
if (e == el.id) {
|
if (e == el.id) {
|
||||||
|
this.form.executionTime = el.executionTime
|
||||||
this.form.taskSubdivisionName = el.taskTypeName
|
this.form.taskSubdivisionName = el.taskTypeName
|
||||||
this.form.taskSubdivisiontemplateType = el.templateType
|
this.form.taskSubdivisiontemplateType = el.templateType
|
||||||
}
|
}
|
||||||
@ -436,14 +455,18 @@ export default {
|
|||||||
templateName: '',
|
templateName: '',
|
||||||
taskType: '',
|
taskType: '',
|
||||||
taskTypeName: '',
|
taskTypeName: '',
|
||||||
|
officialRemindContent: '',
|
||||||
taskSubdivision: '',
|
taskSubdivision: '',
|
||||||
taskSubdivisionName: '',
|
taskSubdivisionName: '',
|
||||||
|
appletRemindContent: '',
|
||||||
|
appletPromptDescription: '',
|
||||||
taskStatus: '',
|
taskStatus: '',
|
||||||
secondClassifyDescribe: '',
|
secondClassifyDescribe: '',
|
||||||
executionTime: '',
|
executionTime: '',
|
||||||
appletPushSign: '0',
|
appletPushSign: '0',
|
||||||
officialPushSign: '0',
|
officialPushSign: '0',
|
||||||
messagePushSign: '0',
|
messagePushSign: '0',
|
||||||
|
messagePreview: '',
|
||||||
taskSubdivisiontemplateType: '',
|
taskSubdivisiontemplateType: '',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
@ -456,6 +479,7 @@ export default {
|
|||||||
templateName: '',
|
templateName: '',
|
||||||
taskType: '',
|
taskType: '',
|
||||||
taskTypeName: '',
|
taskTypeName: '',
|
||||||
|
officialRemindContent: '',
|
||||||
taskSubdivision: '',
|
taskSubdivision: '',
|
||||||
taskSubdivisionName: '',
|
taskSubdivisionName: '',
|
||||||
taskStatus: '',
|
taskStatus: '',
|
||||||
@ -463,7 +487,9 @@ export default {
|
|||||||
executionTime: '',
|
executionTime: '',
|
||||||
appletPushSign: '0',
|
appletPushSign: '0',
|
||||||
officialPushSign: '0',
|
officialPushSign: '0',
|
||||||
messagePushSign: '0',
|
messagePushSign: '0', appletRemindContent: '',
|
||||||
|
appletPromptDescription: '',
|
||||||
|
messagePreview: '',
|
||||||
taskSubdivisiontemplateType: '',
|
taskSubdivisiontemplateType: '',
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -503,12 +529,18 @@ export default {
|
|||||||
color: #64666A;
|
color: #64666A;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
::v-deep .el-input__inner {
|
||||||
|
color: black !important;
|
||||||
|
background-color: #fff !important;
|
||||||
|
cursor: default !important
|
||||||
|
}
|
||||||
|
|
||||||
.textarea {
|
.textarea {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
border: 1px solid #DCDFE6;
|
// border: 1px solid #DCDFE6;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user