[update] 修改企标详情页提交问题
This commit is contained in:
@@ -96,7 +96,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { postAction } from '@/api/manage'
|
import { postAction } from '@/api/manage'
|
||||||
import { getCarTypeProjectList } from '@/api/api'
|
import { getCarTypeProjectList } from '@/api/projectLibraryApi.js'
|
||||||
// 双向绑定的标准选择器
|
// 双向绑定的标准选择器
|
||||||
import StandardSelection from '@/components/selection/StandardSelection'
|
import StandardSelection from '@/components/selection/StandardSelection'
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
|
|||||||
@@ -69,16 +69,16 @@
|
|||||||
<!-- 置顶评论的操作按钮 -->
|
<!-- 置顶评论的操作按钮 -->
|
||||||
<template v-if="item.isTop">
|
<template v-if="item.isTop">
|
||||||
<!-- 取消置顶 -->
|
<!-- 取消置顶 -->
|
||||||
<a class="right-bottom-p-a" @click="setOrCancelTop(item.id)">{{ $t('businessSupport.questionAnswer.cancelTop') }}</a>
|
<a class="right-bottom-p-a" @click="setOrCancelTop(item.id)" v-has="'quiz:detail:topOrCancel'">{{ $t('businessSupport.questionAnswer.cancelTop') }}</a>
|
||||||
<!-- 删除 : 发帖人、评论人、有置顶权限的用户可以删除 ?? -->
|
<!-- 删除 : 发帖人、评论人、有置顶权限的用户可以删除 ?? -->
|
||||||
<a v-if="userInfo.id === model.userId || userInfo.id === item.userId" class="right-bottom-p-a" @click="deleteAnswer(item.id)">{{ $t('delete') }}</a>
|
<a v-if="userInfo.id === model.userId || userInfo.id === item.userId" v-has="'quiz:detail:deleteAnswer'" class="right-bottom-p-a" @click="deleteAnswer(item.id)">{{ $t('delete') }}</a>
|
||||||
</template>
|
</template>
|
||||||
<!-- 非置顶评论 -->
|
<!-- 非置顶评论 -->
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<!-- 设置为置顶 -->
|
<!-- 设置为置顶 -->
|
||||||
<a class="right-bottom-p-a" @click="setOrCancelTop(item.id)">{{ $t('businessSupport.questionAnswer.setTop') }}</a>
|
<a class="right-bottom-p-a" @click="setOrCancelTop(item.id)" v-has="'quiz:detail:topOrCancel'">{{ $t('businessSupport.questionAnswer.setTop') }}</a>
|
||||||
<!-- 删除 : 发帖人、评论人、有置顶权限的用户可以删除,置顶的评论不允许删除,取消置顶后允许删除 ?? -->
|
<!-- 删除 : 发帖人、评论人、有置顶权限的用户可以删除,置顶的评论不允许删除,取消置顶后允许删除 ?? -->
|
||||||
<a v-if="userInfo.id === model.userId || userInfo.id === item.userId" class="right-bottom-p-a" @click="deleteAnswer(item.id)">{{ $t('delete') }}</a>
|
<a v-if="userInfo.id === model.userId || userInfo.id === item.userId" v-has="'quiz:detail:deleteAnswer'" class="right-bottom-p-a" @click="deleteAnswer(item.id)">{{ $t('delete') }}</a>
|
||||||
</template>
|
</template>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
<p>{{ $t('businessSupport.questionAnswer.answerQuestion') }}</p>
|
<p>{{ $t('businessSupport.questionAnswer.answerQuestion') }}</p>
|
||||||
<a-textarea v-model="answerDesc" :autoSize="{minRows: 4}" :maxLength="2000"></a-textarea>
|
<a-textarea v-model="answerDesc" :autoSize="{minRows: 4}" :maxLength="2000"></a-textarea>
|
||||||
<p class="answer-desc-num">{{ answerDesc.length }}/2000{{ $t('businessSupport.questionAnswer.word') }}</p>
|
<p class="answer-desc-num">{{ answerDesc.length }}/2000{{ $t('businessSupport.questionAnswer.word') }}</p>
|
||||||
<a-button class="submit-btn" type="primary" @click="submit">{{ $t('submit') }}</a-button>
|
<a-button class="submit-btn" type="primary" @click="submit" v-has="'quiz:detail:answerSubmit'">{{ $t('submit') }}</a-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 图片预览容器 -->
|
<!-- 图片预览容器 -->
|
||||||
@@ -111,7 +111,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { USER_INFO, ACCESS_TOKEN } from '@/store/mutation-types'
|
import { USER_INFO, ACCESS_TOKEN } from '@/store/mutation-types'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { getFileAccessHttpUrl } from '@/api/manage'
|
import { getFileAccessHttpUrl, downloadFile } from '@/api/manage'
|
||||||
import { getQuizById, answerQuiz, setOrCancelTop, deleteAnswer } from '@/api/businessSupport'
|
import { getQuizById, answerQuiz, setOrCancelTop, deleteAnswer } from '@/api/businessSupport'
|
||||||
import { getFileInfo } from '@/api/api'
|
import { getFileInfo } from '@/api/api'
|
||||||
import { previewPdf } from '@/utils/previewPdf'
|
import { previewPdf } from '@/utils/previewPdf'
|
||||||
@@ -282,7 +282,7 @@ export default {
|
|||||||
margin: 0 16px 16px 0;
|
margin: 0 16px 16px 0;
|
||||||
|
|
||||||
label {
|
label {
|
||||||
width: 20%;
|
width: 10em;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
|
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@@ -303,7 +303,7 @@ export default {
|
|||||||
margin: 0 16px 16px 0;
|
margin: 0 16px 16px 0;
|
||||||
|
|
||||||
label {
|
label {
|
||||||
width: 20%;
|
width: 10em;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
|
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
@change="event => event.target.value = event.target.value.trim()"
|
@change="event => event.target.value = event.target.value.trim()"
|
||||||
:maxLength="500"
|
:maxLength="500"
|
||||||
v-decorator="['problemDescription', validatorRules.problemDescription]" />
|
v-decorator="['problemDescription', validatorRules.problemDescription]" />
|
||||||
<j-upload v-decorator="['fileIds', validatorRules.fileIds]" />
|
<j-upload v-decorator="['file', validatorRules.file]" return-id />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { detailSubmitQuestion } from '@/api/enterpriseStandardLibraryApi'
|
import { detailSubmitQuestion } from '@/api/enterpriseStandardLibraryApi'
|
||||||
import { getCarTypeProjectList } from '../../../../../api/projectLibraryApi.js'
|
import { getCarTypeProjectList } from '@/api/projectLibraryApi.js'
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -122,7 +122,7 @@ export default {
|
|||||||
validateTrigger: 'blur'
|
validateTrigger: 'blur'
|
||||||
},
|
},
|
||||||
// 附件
|
// 附件
|
||||||
fileIds: {}
|
file: {}
|
||||||
},
|
},
|
||||||
projectSelectOptions: [] // 项目下拉数据
|
projectSelectOptions: [] // 项目下拉数据
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user