This commit is contained in:
yanran200730
2022-10-26 14:42:31 +08:00
parent 69f4fe5f36
commit 1b63596355

View File

@@ -50,6 +50,7 @@
:visible.sync="isShow"
width="780px"
title="添加表单"
@close="onClose"
@onConfirm="onConfirm">
<el-form ref="form" class="ai-form" :model="form" label-width="110px" label-position="right">
<el-form-item label="选择模板" style="width: 100%" prop="templateId" :rules="[{required: true, message: '请选择模板', trigger: 'change'}]">
@@ -146,6 +147,7 @@
{
prop: 'status',
align: 'center',
width: 320,
label: '开始结束时间',
render: (h, {row}) => {
return h('span', {
@@ -155,7 +157,6 @@
{
prop: 'status',
align: 'center',
width: 300,
label: '已填写/剩余份数',
render: (h, {row}) => {
return h('span', {
@@ -200,6 +201,16 @@
this.form.templateName = this.list.filter(v => v.dictValue === e)[0].dictName
},
onClose () {
this.form.date = ''
this.form.templateId = ''
this.form.templateName = ''
this.form.evaluatorsList = []
this.form.scorerList = []
this.form.evaluatorsNames = ''
this.form.scorerNames = ''
},
toAddTemplate () {
this.$router.push({name: '289e949df7914db282c24dabd55b8c4d', query: {isAdd: 1}})
},