|
|
@@ -2492,6 +2492,48 @@
|
|
|
</div>
|
|
|
</el-form>
|
|
|
</el-tab-pane>
|
|
|
+
|
|
|
+ <!-- 福袋配置 -->
|
|
|
+ <el-tab-pane label="福袋配置" name="luckyBag.config">
|
|
|
+ <!-- 单个客服每周(7天)给同客户发送数量次数限制 -->
|
|
|
+ <el-form ref="form33" :model="form33" :rules="rules33" label-width="300px">
|
|
|
+ <el-form-item label="单个客服每周(7天)给同客户发送数量次数限制">
|
|
|
+ <el-tooltip class="item" effect="dark" placement="top-end">
|
|
|
+ <el-input-number
|
|
|
+ v-model="form33.weekLimit"
|
|
|
+ :min="0"
|
|
|
+ :step="1"
|
|
|
+ :precision="0"
|
|
|
+ ></el-input-number>
|
|
|
+ </el-tooltip>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="福袋封面图标">
|
|
|
+ <ImageUpload v-model="form33.miniprogramPicUrl" :file-type='["png", "jpg", "jpeg"]' :limit="1" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <div class="footer">
|
|
|
+ <el-button type="primary" @click="submitForm33">提 交</el-button>
|
|
|
+ </div>
|
|
|
+ </el-tab-pane>
|
|
|
+
|
|
|
+ <el-tab-pane label="IM配置" name="im.config">
|
|
|
+ <!-- 小米 -->
|
|
|
+ <el-form ref="form34" :model="form34" :rules="rules34" label-width="300px">
|
|
|
+ <el-form-item label="离线推送 小米系统申请channel_id">
|
|
|
+ <el-input v-model="form34.xm_channel_id" style="width: 200px"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="离线推送 华为系统申请channel_id">
|
|
|
+ <el-input v-model="form34.hw_channel_id" style="width: 200px"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <div class="footer">
|
|
|
+ <el-button type="primary" @click="submitForm34">提 交</el-button>
|
|
|
+ </div>
|
|
|
+ </el-tab-pane>
|
|
|
+
|
|
|
</el-tabs>
|
|
|
|
|
|
|
|
|
@@ -2685,6 +2727,8 @@ export default {
|
|
|
},
|
|
|
form31:{},
|
|
|
form32:{},
|
|
|
+ form33:{},
|
|
|
+ form34:{},
|
|
|
storeProductScrmColumns:[],
|
|
|
storeScrmColumns: [],
|
|
|
photoArr: [],
|
|
|
@@ -2740,7 +2784,9 @@ export default {
|
|
|
},
|
|
|
rules21: {},
|
|
|
rules25: {},
|
|
|
- rules26: {}
|
|
|
+ rules26: {},
|
|
|
+ rules33: {},
|
|
|
+ rules34: {},
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
@@ -3086,6 +3132,14 @@ export default {
|
|
|
this.form30 = {...this.form30, ...JSON.parse(response.data.configValue)}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if(key=="luckyBag.config"){
|
|
|
+ console.log("----------"+response.data.configValue)
|
|
|
+ this.form33 =JSON.parse(response.data.configValue);
|
|
|
+ }
|
|
|
+ if(key=="im.config"){
|
|
|
+ this.form34 =JSON.parse(response.data.configValue);
|
|
|
+ }
|
|
|
if(key == 'vc.config'){
|
|
|
if(!!response.data){
|
|
|
this.configId = response.data.configId
|
|
|
@@ -3394,6 +3448,22 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ submitForm33(){
|
|
|
+ var param={configId:this.configId,configValue:JSON.stringify(this.form33)}
|
|
|
+ updateConfigByKey(param).then(response => {
|
|
|
+ if (response.code === 200) {
|
|
|
+ this.msgSuccess("修改成功");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ submitForm34(){
|
|
|
+ var param={configId:this.configId,configValue:JSON.stringify(this.form34)}
|
|
|
+ updateConfigByKey(param).then(response => {
|
|
|
+ if (response.code === 200) {
|
|
|
+ this.msgSuccess("修改成功");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
submitForm32(){
|
|
|
const param = { configId: this.configId, configName : "直播源配置", configKey: this.configKey, configValue: JSON.stringify(this.form32) }
|
|
|
console.log(param)
|