|
@@ -90,7 +90,7 @@
|
|
|
>
|
|
|
<template slot="label">
|
|
|
<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">
|
|
|
<div slot="content">逐题模式下,所有问题默认必填</div>
|
|
@@ -119,6 +119,80 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
+ <el-col :xs="24" :sm="24" :md="24" :lg="18" :xl="18">
|
|
|
+ <el-form-item
|
|
|
+ label="分享标题"
|
|
|
+ prop="shareTitle"
|
|
|
+ :rules="[
|
|
|
+ { required: true, message: '请输入分享标题', trigger: 'blur' },
|
|
|
+ ]"
|
|
|
+ >
|
|
|
+ <template slot="label">
|
|
|
+ <p style="position: relative" class="titleCell">
|
|
|
+ <!-- <span style="color: #f56c6c; margin-right: 4px">*</span> -->
|
|
|
+ 分享标题
|
|
|
+ <el-tooltip placement="top" popper-class="mTooltip">
|
|
|
+ <div slot="content">
|
|
|
+ 问卷链接分享到微信时,显示的链接标题
|
|
|
+ </div>
|
|
|
+ <i
|
|
|
+ class="el-icon-question"
|
|
|
+ style="
|
|
|
+ font-size: 18px;
|
|
|
+ color: #f56c6c;
|
|
|
+ position: relative;
|
|
|
+ top: 2px;
|
|
|
+ "
|
|
|
+ ></i>
|
|
|
+ </el-tooltip>
|
|
|
+ </p>
|
|
|
+ </template>
|
|
|
+ <el-input
|
|
|
+ v-model="form.shareTitle"
|
|
|
+ placeholder="请输入分享标题"
|
|
|
+ :disabled="disabled"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="24" :md="24" :lg="18" :xl="18">
|
|
|
+ <el-form-item
|
|
|
+ label="分享描述"
|
|
|
+ prop="shareDescribe"
|
|
|
+ :rules="[
|
|
|
+ { required: true, message: '请输入分享描述', trigger: 'blur' },
|
|
|
+ ]"
|
|
|
+ >
|
|
|
+ <template slot="label">
|
|
|
+ <p style="position: relative" class="titleCell">
|
|
|
+ <!-- <span style="color: #f56c6c; margin-right: 4px">*</span> -->
|
|
|
+ 分享描述
|
|
|
+ <el-tooltip placement="top" popper-class="mTooltip">
|
|
|
+ <div slot="content">
|
|
|
+ 问卷链接分享到微信时,显示的链接描述
|
|
|
+ </div>
|
|
|
+ <i
|
|
|
+ class="el-icon-question"
|
|
|
+ style="
|
|
|
+ font-size: 18px;
|
|
|
+ color: #f56c6c;
|
|
|
+ position: relative;
|
|
|
+ top: 2px;
|
|
|
+ "
|
|
|
+ ></i>
|
|
|
+ </el-tooltip>
|
|
|
+ </p>
|
|
|
+ </template>
|
|
|
+ <el-input
|
|
|
+ v-model="form.shareDescribe"
|
|
|
+ placeholder="请输入分享描述"
|
|
|
+ :disabled="disabled"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
<el-form-item
|
|
|
label="问卷模板"
|
|
|
prop="templateType"
|
|
@@ -236,7 +310,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12" style="text-align: right; padding-right: 15px">
|
|
|
<el-tooltip
|
|
|
- key="moveDown"
|
|
|
+ key="moveDown"
|
|
|
class="item"
|
|
|
effect="dark"
|
|
|
content="向下移动"
|
|
@@ -250,7 +324,7 @@
|
|
|
></el-button>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip
|
|
|
- key="moveUp"
|
|
|
+ key="moveUp"
|
|
|
class="item"
|
|
|
effect="dark"
|
|
|
content="向上移动"
|
|
@@ -338,21 +412,16 @@
|
|
|
</el-col>
|
|
|
</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-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">{{
|
|
@@ -414,7 +483,7 @@ export default {
|
|
|
title: null,
|
|
|
againCommitFlag: 1,
|
|
|
questionnaireQuestionList: [{ questionnaireQuestionItemList: [{}] }],
|
|
|
- commitType:null
|
|
|
+ commitType: null,
|
|
|
},
|
|
|
disabled: false,
|
|
|
questionStatus: false,
|
|
@@ -467,7 +536,7 @@ export default {
|
|
|
console.log(validateResult);
|
|
|
if (validateResult) {
|
|
|
this.setResultSort();
|
|
|
- console.log(this.form)
|
|
|
+ console.log(this.form);
|
|
|
try {
|
|
|
if (this.type == "create") {
|
|
|
await questionnaireTopicAdd(this.form);
|
|
@@ -528,24 +597,23 @@ export default {
|
|
|
},
|
|
|
// 向上移动
|
|
|
moveUp(arr, index) {
|
|
|
- console.log('向上移动')
|
|
|
+ console.log("向上移动");
|
|
|
arr.splice(index, 1, ...arr.splice(index + 1, 1, arr[index]));
|
|
|
},
|
|
|
// 向下移动
|
|
|
moveDown(arr, index) {
|
|
|
- console.log('向下移动')
|
|
|
+ console.log("向下移动");
|
|
|
arr.splice(index - 1, 1, ...arr.splice(index, 1, arr[index - 1]));
|
|
|
},
|
|
|
// 删除选项
|
|
|
onDelete(arr, index) {
|
|
|
if (!this.disabled) {
|
|
|
if (this.form.delQuestionnaireQuestionIdList) {
|
|
|
-
|
|
|
this.form.delQuestionnaireQuestionIdList.push(arr[index].id);
|
|
|
- console.log( this.form.delQuestionnaireQuestionIdList)
|
|
|
+ console.log(this.form.delQuestionnaireQuestionIdList);
|
|
|
} else {
|
|
|
this.form.delQuestionnaireQuestionIdList = [arr[index].id];
|
|
|
- console.log( this.form.delQuestionnaireQuestionIdList)
|
|
|
+ console.log(this.form.delQuestionnaireQuestionIdList);
|
|
|
}
|
|
|
}
|
|
|
arr.splice(index, 1);
|
|
@@ -586,7 +654,6 @@ export default {
|
|
|
if (!val) {
|
|
|
this.form.commitType = 0;
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
},
|
|
|
};
|