Commit 361d0c2a by 杨明

模板下载

1 parent bb49c303
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 16:16:03 * @Date: 2023-06-29 16:16:03
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-13 20:52:04 * @LastEditTime: 2023-07-28 17:47:10
* @FilePath: \scrm-micro-link\src\api\modules\marketing.js * @FilePath: \scrm-micro-link\src\api\modules\marketing.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -143,6 +143,16 @@ const updateApi = params => { ...@@ -143,6 +143,16 @@ const updateApi = params => {
sign: true sign: true
}) })
} }
const importModel = params => {
params.method = `marketing.api.supermarket.customer.importModel`
return http({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
viewData, viewData,
getChatGPTList, getChatGPTList,
...@@ -157,5 +167,6 @@ export default { ...@@ -157,5 +167,6 @@ export default {
findActivityInfo, findActivityInfo,
registerSso, registerSso,
EntWechatQrCode, EntWechatQrCode,
findMerchantDetailByMerchantNo findMerchantDetailByMerchantNo,
importModel
} }
...@@ -150,12 +150,14 @@ export default { ...@@ -150,12 +150,14 @@ export default {
talkId: '', talkId: '',
messageContent: this.$messageModel messageContent: this.$messageModel
}, },
importModelUrl: {},
tableData: [], tableData: [],
roobList: [] roobList: []
} }
}, },
mounted() { mounted() {
this.findMerchantStaffList() this.findMerchantStaffList()
this.importModel()
}, },
watch: { watch: {
process: { process: {
...@@ -174,16 +176,23 @@ export default { ...@@ -174,16 +176,23 @@ export default {
...mapState('marketing', ['subscribe', 'process']), ...mapState('marketing', ['subscribe', 'process']),
importUrl() { importUrl() {
const url = { const url = {
5: 'https://wx.glsx.com.cn/upload/biz/e78dea4b-c55c-4af7-bb42-0f3d99bf27a8.xlsx', 5: 'importModelXB',
2: 'https://wx.glsx.com.cn/upload/biz/4fec9d20-d685-4cee-8c3e-23f2d22b18ad.xlsx', 2: 'importModelDB',
6: 'https://wx.glsx.com.cn/upload/biz/980515d5-20df-49a5-90a7-1accb2aed2a6.xlsx' 6: 'importModelJR'
} }
return url[this.subscribe] return this.importModelUrl[url[this.subscribe]]
} }
}, },
methods: { methods: {
...mapActions('marketing', ['setProcess']), ...mapActions('marketing', ['setProcess']),
...mapMutations('marketing', ['SET_STEP']), ...mapMutations('marketing', ['SET_STEP']),
//获取客户导入模板
importModel() {
this.$apis.marketing.importModel({}).then(res => {
console.log(res)
this.importModelUrl = res
})
},
uploadFile(e, item) { uploadFile(e, item) {
const file = e.srcElement.files[0] const file = e.srcElement.files[0]
let AllImgExt = '.xls|.xlsx' let AllImgExt = '.xls|.xlsx'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!