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