|
@ -14,6 +14,9 @@ |
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="问题描述" prop="questionDescribe"> |
|
|
|
|
|
<el-input v-model="dataForm.questionDescribe" placeholder="问题描述" clearable maxlength="50" @keyup.native="btKeyUpQuestionDescribe" style="width:200px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button> |
|
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -30,7 +33,6 @@ |
|
|
{{scope.$index+1}} |
|
|
{{scope.$index+1}} |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="itemId" label="项目关系ID" header-align="center" align="center"></el-table-column> |
|
|
|
|
|
<el-table-column prop="helpFamliyName" label="帮扶家庭" header-align="center" align="center"></el-table-column> |
|
|
<el-table-column prop="helpFamliyName" label="帮扶家庭" header-align="center" align="center"></el-table-column> |
|
|
<el-table-column prop="questionTypeName" label="问题类型" header-align="center" align="center"></el-table-column> |
|
|
<el-table-column prop="questionTypeName" label="问题类型" header-align="center" align="center"></el-table-column> |
|
|
<el-table-column prop="questionDescribe" label="问题描述" header-align="center" align="center"></el-table-column> |
|
|
<el-table-column prop="questionDescribe" label="问题描述" header-align="center" align="center"></el-table-column> |
|
@ -83,55 +85,60 @@ export default { |
|
|
}, |
|
|
}, |
|
|
dataForm: { |
|
|
dataForm: { |
|
|
id: '', |
|
|
id: '', |
|
|
familyId: '', |
|
|
familyId: '', |
|
|
questionType: '' |
|
|
questionType: '', |
|
|
|
|
|
questionDescribe: '' |
|
|
}, |
|
|
}, |
|
|
handleVisible: false, |
|
|
handleVisible: false, |
|
|
questionTypeArr: [], |
|
|
questionTypeArr: [], |
|
|
familyIdArr: [] |
|
|
familyIdArr: [] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
components: { |
|
|
components: { |
|
|
AddOrUpdate, |
|
|
AddOrUpdate, |
|
|
QuestionDealHandle |
|
|
QuestionDealHandle |
|
|
|
|
|
}, |
|
|
|
|
|
created: function () { |
|
|
|
|
|
this.getParamListInfo('difficult_type') |
|
|
|
|
|
this.getFamilyArrInfo() |
|
|
|
|
|
this.getDataList() |
|
|
}, |
|
|
}, |
|
|
created: function () { |
|
|
methods: { |
|
|
this.getParamListInfo('difficult_type') |
|
|
btKeyUpQuestionDescribe (e) { |
|
|
this.getFamilyArrInfo() |
|
|
e.target.value = e.target.value.replace(/[`~!@#$%^&*()_+=<>?:"{}|·~!@#¥%……&*()——+={}|《》?:“”【】、;‘’,。、]/g, '') |
|
|
this.getDataList() |
|
|
this.dataForm.questionDescribe = e.target.value |
|
|
|
|
|
}, |
|
|
|
|
|
dealAction (id) { |
|
|
|
|
|
this.$parent.selectComponent = 'QuestionDealDetailView' |
|
|
|
|
|
this.$router.push({ path: '/workRecord-question-deal-route', query: { id: id } }) |
|
|
|
|
|
}, |
|
|
|
|
|
openHandle (id) { |
|
|
|
|
|
this.handleVisible = true |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.questionDealHandle.dataForm.id = id |
|
|
|
|
|
this.$refs.questionDealHandle.init() |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 获取参数名称code下拉信息 |
|
|
|
|
|
getParamListInfo (dictType) { |
|
|
|
|
|
this.$http.get(`/sys/dict/listSimple/` + dictType).then(({ data: res }) => { |
|
|
|
|
|
if (res.code !== 0) { |
|
|
|
|
|
return this.$message.error(res.msg) |
|
|
|
|
|
} |
|
|
|
|
|
if (dictType === 'difficult_type') { |
|
|
|
|
|
this.questionTypeArr = res.data |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(() => {}) |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
// 获取家庭信息下拉信息 |
|
|
dealAction(id) { |
|
|
getFamilyArrInfo () { |
|
|
this.$parent.selectComponent = 'QuestionDealDetailView' |
|
|
this.$http.get(`/workRecord/familyinfoacquisition/getFamilyArrInfo`).then(({ data: res }) => { |
|
|
this.$router.push({path: '/workRecord-question-deal-route', query: {id: id}}) |
|
|
if (res.code !== 0) { |
|
|
}, |
|
|
return this.$message.error(res.msg) |
|
|
openHandle (id) { |
|
|
} |
|
|
this.handleVisible = true |
|
|
this.familyIdArr = res.data |
|
|
this.$nextTick(() => { |
|
|
}).catch(() => {}) |
|
|
this.$refs.questionDealHandle.dataForm.id = id |
|
|
|
|
|
this.$refs.questionDealHandle.init() |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 获取参数名称code下拉信息 |
|
|
|
|
|
getParamListInfo (dictType) { |
|
|
|
|
|
this.$http.get(`/sys/dict/listSimple/` + dictType).then(({ data: res }) => { |
|
|
|
|
|
if (res.code !== 0) { |
|
|
|
|
|
return this.$message.error(res.msg) |
|
|
|
|
|
} |
|
|
|
|
|
if (dictType === 'difficult_type') { |
|
|
|
|
|
this.questionTypeArr = res.data |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(() => {}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 获取家庭信息下拉信息 |
|
|
|
|
|
getFamilyArrInfo () { |
|
|
|
|
|
this.$http.get(`/workRecord/familyinfoacquisition/getFamilyArrInfo`).then(({ data: res }) => { |
|
|
|
|
|
if (res.code !== 0) { |
|
|
|
|
|
return this.$message.error(res.msg) |
|
|
|
|
|
} |
|
|
|
|
|
this.familyIdArr = res.data |
|
|
|
|
|
}).catch(() => {}) |
|
|
|
|
|
}, |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|