Ver a proveniência

合并主干

newStyle
douzhuo há 1 ano
ascendente
cometimento
de49d7c3af
3 ficheiros alterados com 96 adições e 1 eliminações
  1. +18
    -0
      src/api/modules/http.js
  2. +0
    -1
      src/router/axios.js
  3. +78
    -0
      src/views/Receive/index.vue

+ 18
- 0
src/api/modules/http.js Ver ficheiro

@@ -824,6 +824,24 @@ export function keyWordsMatching(obj) {
})
}

// 修改销讲业务
export function updateMarketingBusiness(obj) {
return request({
url: 'autoSR/customer/updateMarketingBusiness',
method: 'post',
data: obj
})
}

// 获取销讲业务模板
export function marketingBusinessNoApi(params) {
return request({
url: 'autoSR/customer/marketingBusiness',
method: 'get',
params: params
})
}


//小程序权限
export function geTmenu(query) {


+ 0
- 1
src/router/axios.js Ver ficheiro

@@ -63,7 +63,6 @@ axios.interceptors.response.use(res => {
NProgress.done()
const status = Number(res.status) || 200
const message = res.data.msg || errorCode[status] || errorCode['default']
// if (status === 401) {
if (status === 401 || status === 500) {
idx++
if(idx==1){


+ 78
- 0
src/views/Receive/index.vue Ver ficheiro

@@ -27,6 +27,12 @@
align-items: center;
"
>
<div v-if="permissions.rec_index_checkoutSales">
<div @click="showSalesBusiness = true;marketingBusiness=userinformationlist.marketingBusiness" style="display: flex; align-items: center;margin-right: 12px;">
<span style="font-size: 14px; color: #333333; margin-left: 4px"
>切换销讲业务</span>
</div>
</div>
<div v-if="rec_index_addJ" @click="Addtodigest()">
<div
v-if="arr[aplayerId].status == 0"
@@ -1271,6 +1277,40 @@
<el-button type="primary" @click="editSure()">确认</el-button>
</div>
</el-dialog>


<el-dialog
title="更换销讲业务"
:visible.sync="showSalesBusiness"
center
width="600px"
:close-on-click-modal="false"
>
<div style="display: flex;align-items: center;">
<div class="titel-text" style="margin-left: 20px">销讲业务:</div>
<el-select
class="div-inp"
v-model="marketingBusiness"
clearable
filterable
collapse-tags
placeholder="请选择"
>
<el-option
v-for="item in templateList"
:key="item.id"
:label="item.templateName"
:value="item.id"
>
</el-option>
</el-select>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="showSalesBusiness = false">取消</el-button>
<el-button type="primary" @click="enterSalesBusiness()">确认</el-button>
</div>
</el-dialog>
</div>
</template>

@@ -1288,6 +1328,10 @@ import { saveAs } from "file-saver";
export default {
data() {
return {
showSalesBusiness: false, // 更换销讲业务
templateList: [], // 销讲业务列表
marketingBusiness: '', // 选中的销讲业务

keyWordsList: [],
imgArr: [
"",
@@ -1450,6 +1494,39 @@ export default {
},

methods: {
// 确认切换销讲业务
enterSalesBusiness() {
this.$api.http.updateMarketingBusiness({
marketingBusiness: this.marketingBusiness,
id: this.fileId,
}).then(res=> {
console.log(res, 'cnmcm,cxcvnklfdkldflkfdalk')
if (res.code == 10000) {
this.$message.success(res.message);
this.init()
this.showSalesBusiness = false
} else {
this.$message.error(res.message);
}
})
},

// 销讲模板列表
marketingBusinessNoApi() {
this.$api.http.marketingBusinessNoApi({
houseId: localStorage.getItem("houseId"),
status: 0, // 固定传0
}).then(res => {
console.log(res, 'asdklasjdkasljsalkd')
if (res.code == 10000) {
this.templateList = res.data
}
})
},

// 修改销讲业务模板
updateMarketingBusiness() {},

changeshow1(item) {
item.show = !item.show;
},
@@ -2137,6 +2214,7 @@ export default {
this.findCARKeywords();
this.findBannedWordsByCusId();
this.Getsthetransliteratecontent();
this.marketingBusinessNoApi();
});
},



Carregando…
Cancelar
Guardar