|
|
|
@ -45,11 +45,19 @@
|
|
|
|
|
<u-form-item :label="opinionName" prop="handleOpinion"
|
|
|
|
|
v-if="config.eventType !== 'submit' && config.hasOpinion">
|
|
|
|
|
<u-input v-model="dataForm.handleOpinion" type="textarea" :placeholder="placeholder" />
|
|
|
|
|
<view class="u-p-10"
|
|
|
|
|
<!-- <view class="u-p-10"
|
|
|
|
|
v-if="config.eventType != 'transfer' &&config.eventType != 'recall' &&config.eventType !== 'revoke'">
|
|
|
|
|
<u-button type="info" size="mini" @click="commonWords">常用语</u-button>
|
|
|
|
|
</view>
|
|
|
|
|
</view> -->
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<view class="tagsbox">
|
|
|
|
|
<u-tag class="tag-item" v-for="tag in commonWordsList" :key="tag" :text="tag.commonWordsText" closeable
|
|
|
|
|
@close="delCommonWord(tag)" @click="selectCommonWord(tag)" />
|
|
|
|
|
<u-input class="tag-ipt" v-if="inputVisible" ref="saveTagInput" v-model="tagValue" :type="type"
|
|
|
|
|
:focus="focus" :border="border" @keyup.enter.native="handleInputConfirm"
|
|
|
|
|
@blur="handleInputConfirm" />
|
|
|
|
|
<u-button class="tag-btn" v-else type="info" size="mini" @click="editCommonWord">+ 新增常用语</u-button>
|
|
|
|
|
</view>
|
|
|
|
|
<u-form-item :label="config.title + '附件'" prop="fileList"
|
|
|
|
|
v-if="config.eventType !== 'submit' && config.hasOpinion">
|
|
|
|
|
<jnpf-file v-model="dataForm.fileList" :limit="3" />
|
|
|
|
@ -150,6 +158,7 @@
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
dynamicTags: [],
|
|
|
|
|
placeholder: "请输入意见",
|
|
|
|
|
icon: resources.message.nodata,
|
|
|
|
|
customStyle: {
|
|
|
|
@ -297,6 +306,9 @@
|
|
|
|
|
uni.$off("confirm");
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
useTag(tag) {
|
|
|
|
|
this.dataForm.handleOpinion = tag;
|
|
|
|
|
},
|
|
|
|
|
init() {
|
|
|
|
|
if (this.candidateType == 1) {
|
|
|
|
|
let list = [];
|
|
|
|
@ -526,7 +538,22 @@
|
|
|
|
|
page {
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tagsbox {
|
|
|
|
|
background-color: $uni-bg-color;
|
|
|
|
|
padding: 0px 45px;
|
|
|
|
|
|
|
|
|
|
.tag-item {
|
|
|
|
|
margin: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tag-btn {
|
|
|
|
|
margin: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tag-ipt {
|
|
|
|
|
margin: 10px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.form-item {
|
|
|
|
|
&::after {
|
|
|
|
|
border-bottom-width: 0px !important;
|
|
|
|
|