Commit e102d578 by test

消息群发状态值修正

1 parent 298cdf30
...@@ -21,10 +21,10 @@ ...@@ -21,10 +21,10 @@
<div v-if="!showTemplate" class="operation" @click="onChooseMaterialWel()"> <div v-if="!showTemplate" class="operation" @click="onChooseMaterialWel()">
<img style="margin-right: 3px" :src="require('@/assets/drainageCode/code-add.png')" alt="" />从素材中选择 <img style="margin-right: 3px" :src="require('@/assets/drainageCode/code-add.png')" alt="" />从素材中选择
</div> </div>
<el-form-item label="欢迎语" required style="width: 50%; margin-bottom: 0" :error="welcomeMsgError"> <el-form-item :label="isgroup ? '消息内容': '欢迎语'" required style="width: 50%; margin-bottom: 0" :error="welcomeMsgError">
<el-input ref="msgTextarea" type="textarea" v-model="form.welcomeMsg" maxlength="2000" show-word-limit placeholder="请输入" :autosize="{ minRows: 5, maxRows: 20 }" clearable /> <el-input ref="msgTextarea" type="textarea" v-model="form.welcomeMsg" maxlength="2000" show-word-limit placeholder="请输入" :autosize="{ minRows: 5, maxRows: 20 }" clearable />
</el-form-item> </el-form-item>
<el-form-item style="margin-bottom: 0"> <el-form-item style="margin-bottom: 0" v-if="!isgroup">
<el-checkbox @change="onInsert">插入客户昵称</el-checkbox> <el-checkbox @change="onInsert">插入客户昵称</el-checkbox>
</el-form-item> </el-form-item>
</div> </div>
...@@ -205,6 +205,10 @@ ...@@ -205,6 +205,10 @@
} }
} }
}, },
isgroup: {
type: Boolean,
default: false
},
showTemplate: { showTemplate: {
type: Boolean, type: Boolean,
default: true default: true
...@@ -262,7 +266,7 @@ ...@@ -262,7 +266,7 @@
welSelected: {}, welSelected: {},
selectedUserList: [], selectedUserList: [],
dialogVisibleSelectUser: false, dialogVisibleSelectUser: false,
strTemplate1: '%客户昵称%', strTemplate1: '%NICKNAME%',
strTemplate2: '#客户昵称#' strTemplate2: '#客户昵称#'
} }
}, },
...@@ -328,7 +332,7 @@ ...@@ -328,7 +332,7 @@
this.form.welcomeMsg = msg.slice(0, textIndex) + str + msg.slice(textIndex) this.form.welcomeMsg = msg.slice(0, textIndex) + str + msg.slice(textIndex)
} }
} else { } else {
this.form.welcomeMsg = this.strType ? msg.replace(/\%客户昵称\%/, '') : msg.replace(/\#客户昵称\#/, '') this.form.welcomeMsg = this.strType ? msg.replace(/\%NICKNAME\%/, '') : msg.replace(/\#客户昵称\#/, '')
} }
}, },
onChooseMaterial (materialType, rowIndex) { onChooseMaterial (materialType, rowIndex) {
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
</el-form> </el-form>
</div> </div>
<div v-if="currentActive === 2"> <div v-if="currentActive === 2">
<welcome-detail showBack showMorMaterial :currentActive.sync="currentActive" @update="currentActive = 1" @submit="save"></welcome-detail> <welcome-detail showBack showMorMaterial isgroup :currentActive.sync="currentActive" @update="currentActive = 1" @submit="save"></welcome-detail>
</div> </div>
<!-- 选择添加人弹窗 --> <!-- 选择添加人弹窗 -->
<SelectUser :visible.sync="dialogVisibleSelectUser" title="选择添加人" destroyOnClose :defaultValues="selectedUserList" @success="selectedUser"></SelectUser> <SelectUser :visible.sync="dialogVisibleSelectUser" title="选择添加人" destroyOnClose :defaultValues="selectedUserList" @success="selectedUser"></SelectUser>
......
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
}, },
memberState: { memberState: {
0: '未发送', 0: '未发送',
1: '已发送' 2: '已发送'
}, },
member: { member: {
loading: false, loading: false,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!