Commit 3917b2fc by 前端

Merge branch 'v3.22.0' into 'master'

V3.22.0

See merge request !182
2 parents 6e29f66b 1193225d
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* @version: * @version:
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: limin * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2021-09-07 14:38:52 * @LastEditTime: 2023-11-29 15:22:11
*/ */
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
...@@ -18,7 +18,7 @@ export const fetchConfig = function(isEnv = true) { ...@@ -18,7 +18,7 @@ export const fetchConfig = function(isEnv = true) {
return Promise.resolve(cfg) return Promise.resolve(cfg)
} }
return new Http({ request: { timeout: 3000 } }).get('https://oss-config.dev.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2') return new Http({ request: { timeout: 3000 } }).get('https://oss-config.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2')
//开发环境mock //开发环境mock
// return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2') // return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2')
} }
......
...@@ -5,17 +5,15 @@ ...@@ -5,17 +5,15 @@
基本信息 基本信息
</div> </div>
<div class="container"> <div class="container">
<glsx-combi-form :isInline="false" class="glsx-combi-form" ref="baseInfoRef" labelWidth="154px" <glsx-combi-form :isInline="false" class="glsx-combi-form" ref="baseInfoRef" labelWidth="154px" defaultWidth="432px" :formObj="formObj" :formData="formData" :formRules="myRule">
defaultWidth="432px" :formObj="formObj" :formData="formData" :formRules="myRule">
<div slot="welcomeWordMaterial"> <div slot="welcomeWordMaterial">
<GLEditor ref="welcome" :form="'customer'" style="line-height: 12px;" :btnList="btnList"></GLEditor> <GLEditor ref="welcome" :form="'customer'" style="line-height: 12px;" :btnList="btnList"></GLEditor>
<div v-if="!haveActivity" class="is_error">请选择活动</div>
</div> </div>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
</div> </div>
<GLFooter> <GLFooter>
<el-button @click="handleCancel">取消</el-button> <el-button @click="handleCancel">取消</el-button>
<el-button type="primary" @click="handleSave">确定</el-button> <el-button type="primary" @click="handleSave">确定</el-button>
</GLFooter> </GLFooter>
</div> </div>
...@@ -23,10 +21,10 @@ ...@@ -23,10 +21,10 @@
<script> <script>
import glsxCombiForm from '@/components/glsx-combi-form' import glsxCombiForm from '@/components/glsx-combi-form'
import {addWelcomeGroup} from '@/api/modules/clientGroupManage' import { addWelcomeGroup } from '@/api/modules/clientGroupManage'
export default { export default {
name: "addMaterial", name: 'addMaterial',
components: { components: {
glsxCombiForm glsxCombiForm
}, },
...@@ -35,9 +33,11 @@ export default { ...@@ -35,9 +33,11 @@ export default {
haveActivity: true, haveActivity: true,
formObj: { formObj: {
attachName: '', attachName: '',
notify: 0
}, },
myRule: { myRule: {
attachName: [{required: true, message: '请输入资料名称', trigger: 'change'}], attachName: [{ required: true, message: '请输入资料名称', trigger: 'change' }],
notify: [{ required: true, message: '消息通知', trigger: 'change' }]
// attachmentList: [{ required: true, message: '请选择视频', trigger: 'change' }], // attachmentList: [{ required: true, message: '请选择视频', trigger: 'change' }],
}, },
formData: [ formData: [
...@@ -53,6 +53,23 @@ export default { ...@@ -53,6 +53,23 @@ export default {
label: '群聊欢迎语素材', label: '群聊欢迎语素材',
name: 'attachmentList', name: 'attachmentList',
addHtml: 'welcomeWordMaterial' addHtml: 'welcomeWordMaterial'
},
{
label: '消息通知',
name: 'notify',
type: 'radio',
optionId: 'optionId',
optionLabel: 'optionLabel',
optionList: [
{
optionId: 0,
optionLabel: '不通知'
},
{
optionId: 1,
optionLabel: '通知'
}
]
} }
], ],
btnList: [ btnList: [
...@@ -103,7 +120,7 @@ export default { ...@@ -103,7 +120,7 @@ export default {
validType: 'valid', validType: 'valid',
status: 2 status: 2
} }
}, }
// { // {
// itemName: '秒杀活动', // itemName: '秒杀活动',
// itemValue: 5, // itemValue: 5,
...@@ -140,7 +157,7 @@ export default { ...@@ -140,7 +157,7 @@ export default {
// } // }
// } // }
] ]
}, }
// { // {
// name: '素材', // name: '素材',
// type: 'material', // type: 'material',
...@@ -164,12 +181,12 @@ export default { ...@@ -164,12 +181,12 @@ export default {
// merchant: this.$globalState.session.merchantId // merchant: this.$globalState.session.merchantId
// } // }
// } // }
], ]
} }
}, },
methods: { methods: {
handleCancel(){ handleCancel() {
this.$emit('changeTab',1) this.$emit('changeTab', 1)
}, },
handleSave() { handleSave() {
this.$refs.baseInfoRef.$refs.formRef.validate(valid => { this.$refs.baseInfoRef.$refs.formRef.validate(valid => {
...@@ -178,8 +195,8 @@ export default { ...@@ -178,8 +195,8 @@ export default {
const previewList = this.$common ? this.$common.utils.deepClone(this.$refs.welcome.previewList) : this.$refs.welcome.previewList const previewList = this.$common ? this.$common.utils.deepClone(this.$refs.welcome.previewList) : this.$refs.welcome.previewList
// 校验是否有填活动 // 校验是否有填活动
this.haveActivity = previewList.find(item => item.attType == 7) // this.haveActivity = previewList.find(item => item.attType == 7)
if (!this.haveActivity) return; // if (!this.haveActivity) return
const attachmentList = previewList.map(item => { const attachmentList = previewList.map(item => {
if (item && item.attType == 7) { if (item && item.attType == 7) {
...@@ -195,11 +212,10 @@ export default { ...@@ -195,11 +212,10 @@ export default {
} else { } else {
this.$message.error(res.message || '新增素材失败') this.$message.error(res.message || '新增素材失败')
} }
}) })
} }
}) })
}, }
} }
} }
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!