|
@@ -371,6 +371,7 @@
|
|
|
:media-type="fieldOptions.media_type"
|
|
:media-type="fieldOptions.media_type"
|
|
|
:media="fieldOptions.media"
|
|
:media="fieldOptions.media"
|
|
|
:style="{ width: width }"
|
|
:style="{ width: width }"
|
|
|
|
|
+ @click="handleAttachmentClick"
|
|
|
v-on="$listeners"
|
|
v-on="$listeners"
|
|
|
/>
|
|
/>
|
|
|
<!-- 选择器-->
|
|
<!-- 选择器-->
|
|
@@ -1134,6 +1135,12 @@
|
|
|
changeFormData(name, value) {
|
|
changeFormData(name, value) {
|
|
|
this.$emit('change-data', name, value)
|
|
this.$emit('change-data', name, value)
|
|
|
},
|
|
},
|
|
|
|
|
+ // 附件点击计数
|
|
|
|
|
+ handleAttachmentClick() {
|
|
|
|
|
+ if (this.dynamicForm && this.dynamicForm.incrementFieldClickNum) {
|
|
|
|
|
+ this.dynamicForm.incrementFieldClickNum(this.field.name, this.code, this.row)
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
// 请求记忆数据库
|
|
// 请求记忆数据库
|
|
|
reqPhrase(orderId, field) {
|
|
reqPhrase(orderId, field) {
|
|
|
if (!this.watchKey || this.inputKey != field.name + field.field_text) {
|
|
if (!this.watchKey || this.inputKey != field.name + field.field_text) {
|