|
@@ -79,7 +79,7 @@
|
|
<el-form-item
|
|
<el-form-item
|
|
label="是否逐题提交"
|
|
label="是否逐题提交"
|
|
prop="commitType"
|
|
prop="commitType"
|
|
- class="memoWrapItem"
|
|
|
|
|
|
+ class="memoWrapItem"
|
|
:rules="[
|
|
:rules="[
|
|
{
|
|
{
|
|
required: true,
|
|
required: true,
|
|
@@ -88,14 +88,12 @@
|
|
},
|
|
},
|
|
]"
|
|
]"
|
|
>
|
|
>
|
|
- <template slot="label">
|
|
|
|
|
|
+ <template slot="label">
|
|
<p style="position: relative" class="titleCell">
|
|
<p style="position: relative" class="titleCell">
|
|
<span style="color: #f56c6c; margin-right: 4px">*</span>
|
|
<span style="color: #f56c6c; margin-right: 4px">*</span>
|
|
是否逐题提交
|
|
是否逐题提交
|
|
<el-tooltip placement="top" popper-class="mTooltip">
|
|
<el-tooltip placement="top" popper-class="mTooltip">
|
|
- <div slot="content">
|
|
|
|
- 逐题模式下,所有问题默认必填
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div slot="content">逐题模式下,所有问题默认必填</div>
|
|
<i
|
|
<i
|
|
class="el-icon-question"
|
|
class="el-icon-question"
|
|
style="
|
|
style="
|
|
@@ -337,6 +335,23 @@
|
|
>
|
|
>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :xs="24"
|
|
|
|
+ :sm="24"
|
|
|
|
+ :md="24"
|
|
|
|
+ :lg="18"
|
|
|
|
+ :xl="18">
|
|
|
|
+ <el-alert
|
|
|
|
+ v-if="disabled"
|
|
|
|
+ style="margin: 10px 0"
|
|
|
|
+ title="该问卷已存在提交数据,不可修改"
|
|
|
|
+ :closable="false"
|
|
|
|
+ type="error"
|
|
|
|
+ >
|
|
|
|
+ </el-alert>
|
|
|
|
+ </el-col>
|
|
|
|
+
|
|
|
|
+ </el-row>
|
|
|
|
|
|
<el-button type="primary" :disabled="disabled" @click="onSubmit">{{
|
|
<el-button type="primary" :disabled="disabled" @click="onSubmit">{{
|
|
type == "create" ? "生成问卷" : "修改问卷"
|
|
type == "create" ? "生成问卷" : "修改问卷"
|
|
@@ -398,7 +413,7 @@ export default {
|
|
againCommitFlag: 1,
|
|
againCommitFlag: 1,
|
|
questionnaireQuestionList: [{ questionnaireQuestionItemList: [{}] }],
|
|
questionnaireQuestionList: [{ questionnaireQuestionItemList: [{}] }],
|
|
},
|
|
},
|
|
- disabled: false,
|
|
|
|
|
|
+ disabled: false,
|
|
questionStatus: false,
|
|
questionStatus: false,
|
|
checkList: [],
|
|
checkList: [],
|
|
};
|
|
};
|
|
@@ -410,7 +425,7 @@ export default {
|
|
this.form = res.data;
|
|
this.form = res.data;
|
|
this.questionList = res.data;
|
|
this.questionList = res.data;
|
|
this.settemplateType(res.data.templateType);
|
|
this.settemplateType(res.data.templateType);
|
|
- this.disabled = res.data.modifyFlag
|
|
|
|
|
|
+ this.disabled = !res.data.modifyFlag;
|
|
// let list = res.data.questionnaireQuestionList || []
|
|
// let list = res.data.questionnaireQuestionList || []
|
|
// list.forEach((item, index) => {
|
|
// list.forEach((item, index) => {
|
|
// this.activeName.push(index)
|
|
// this.activeName.push(index)
|