Commit 2a358499 by chenwq

Merge branch 'feature/marketing-sop-push-strategy' of http://192.168.3.233:8090/…

…saas_plus/dj-car-life-system into SAAS+V5.8.3-cwq
2 parents 4d46a8a7 726d4fe8
...@@ -435,6 +435,7 @@ export default { ...@@ -435,6 +435,7 @@ export default {
dir: fileType, dir: fileType,
onProgress: (percent) => { onProgress: (percent) => {
this.updateFileProgress(fileUid, percent); this.updateFileProgress(fileUid, percent);
this.$emit("progress", percent, file);
onProgress && onProgress({ percent }); onProgress && onProgress({ percent });
}, },
onSuccess: success, onSuccess: success,
...@@ -938,6 +939,7 @@ export default { ...@@ -938,6 +939,7 @@ export default {
::v-deep .el-upload--picture-card { ::v-deep .el-upload--picture-card {
width: 100px; width: 100px;
height: 100px; height: 100px;
margin-bottom: 8px;
.upload-btn { .upload-btn {
max-width: 100%; max-width: 100%;
height: 100%; height: 100%;
......
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
justify-content: space-between; justify-content: space-between;
background-color: #f5f6fa; background-color: #f5f6fa;
> .title { > .title {
line-height: 16px; line-height: 32px;
} }
.del-button { .del-button {
border-style: dashed; border-style: dashed;
......
...@@ -39,7 +39,9 @@ ...@@ -39,7 +39,9 @@
:prop="`${propPrefix}.valueSource`"> :prop="`${propPrefix}.valueSource`">
<el-radio-group :value="item.valueSource" <el-radio-group :value="item.valueSource"
@input="handleValueSource"> @input="handleValueSource">
<el-radio-button :label="enums.conditionVariableSourceTypeEnum.VARIABLE"> <el-radio-button :disabled="getVariableRefCodeOptions.length === 0"
:label="enums.conditionVariableSourceTypeEnum.VARIABLE"
:title="getVariableRefCodeOptions.length === 0 ? '所选变量没有支持的子变量' : ''">
变量 变量
</el-radio-button> </el-radio-button>
<el-radio-button :label="enums.conditionVariableSourceTypeEnum.VALUE"> <el-radio-button :label="enums.conditionVariableSourceTypeEnum.VALUE">
...@@ -230,8 +232,7 @@ export default { ...@@ -230,8 +232,7 @@ export default {
// 只要切换一个, 子级全清 // 只要切换一个, 子级全清
// valueType // valueType
const variable = this.options.conditionVariables.find(item => item.variableCode === val); const variable = this.options.conditionVariables.find(item => item.variableCode === val);
this.$emit("input", { const value = {
...this.item,
variableCode: val, variableCode: val,
valueType: variable?.variableType, valueType: variable?.variableType,
operator: undefined, operator: undefined,
...@@ -241,6 +242,13 @@ export default { ...@@ -241,6 +242,13 @@ export default {
numberValue: undefined, numberValue: undefined,
enumValue: undefined, enumValue: undefined,
dateValue: undefined, dateValue: undefined,
};
if (!variable?.sopConditionVariableDTOList || variable?.sopConditionVariableDTOList?.length <= 0) {
value.valueSource = ConditionVariableSourceTypeEnum.VALUE;
}
this.$emit("input", {
...this.item,
...value,
}); });
}, },
handleOperatorChange(val) { handleOperatorChange(val) {
...@@ -273,7 +281,8 @@ export default { ...@@ -273,7 +281,8 @@ export default {
this.updateItem("dateValue", val); this.updateItem("dateValue", val);
}, },
handleEnumChange(val) { handleEnumChange(val) {
this.updateItem("enumValue", val); const enumItem = this.getVariableEnumOptions.find(item => item.enumCode === val);
this.$emit("input", { ...this.item, enumValue: val, enumValueName: enumItem?.enumName || "" });
}, },
}, },
}; };
......
...@@ -16,9 +16,10 @@ ...@@ -16,9 +16,10 @@
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
<div style="margin-top:14px"> <div style="margin-top:8px">
<div v-if="item.messageType === MessageTypeEnum.VARIABLE_TEXT" class="type-item"> <div v-if="item.messageType === MessageTypeEnum.VARIABLE_TEXT" class="type-item">
<VariableTextarea style="width:580px" <VariableTextarea style="width:580px"
:max-length="1000"
:value="item.content" :value="item.content"
:variable-list="messageVariables" :variable-list="messageVariables"
@input="handleContentChange" /> @input="handleContentChange" />
...@@ -48,6 +49,7 @@ ...@@ -48,6 +49,7 @@
<VenusDialog v-model="dialog.page.show" <VenusDialog v-model="dialog.page.show"
title="编辑网页内容" title="编辑网页内容"
width="1060px" width="1060px"
append-to-body
:close-on-click-modal="false" :close-on-click-modal="false"
@close="handleClosePageConfig" @close="handleClosePageConfig"
@confirm="handleConfirmPageConfig"> @confirm="handleConfirmPageConfig">
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
resize="none" resize="none"
rows="8" rows="8"
type="textarea" type="textarea"
show-word-limit
:maxlength="maxLength"
:value="value" :value="value"
@input="handleInput"> @input="handleInput">
</el-input> </el-input>
...@@ -37,6 +39,10 @@ ...@@ -37,6 +39,10 @@
export default { export default {
name: "VariableTextarea", name: "VariableTextarea",
props: { props: {
maxLength: {
type: Number,
default: 1000,
},
value: { value: {
type: String, type: String,
required: true, required: true,
...@@ -93,12 +99,19 @@ export default { ...@@ -93,12 +99,19 @@ export default {
.variable-textarea-wrapper { .variable-textarea-wrapper {
border-radius: 4px; border-radius: 4px;
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
::v-deep .el-textarea__inner { ::v-deep .el-textarea {
border: none; .el-textarea__inner {
border-radius: 0; border: none;
box-shadow: none; border-radius: 0;
background-color: #f5f5f5; box-shadow: none;
color: #666; background-color: #f5f5f5;
color: #666;
}
.el-input__count {
right: 10px;
bottom: -42px;
background-color: transparent;
}
} }
.foot-wrapper { .foot-wrapper {
background-color: #f5f6fa; background-color: #f5f6fa;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!