Commit dd7fb649 by wuwx

删除多余代码

1 parent 6788742b
......@@ -143,6 +143,18 @@ export default {
this.pageNum = val
this.getSelectingList()
},
unique(arr) {
let res = new Set()
return arr.filter((item) => {
let id = JSON.stringify(item)
if (res.has(id)) {
return false
} else {
res.add(id)
return true
}
})
},
handleRelateStoreConfirm() {
if (!this.selectedData.length) {
this.$message({
......
......@@ -136,10 +136,6 @@
<el-checkbox v-for="(item, index) in baseData.clueList" :label="item.confId" :key="index">{{ item.confName }}</el-checkbox>
</el-checkbox-group>
</div>
<!-- <template slot="customerServerSuffix" slot-scope="scope">
<el-button v-show="!scope.scope.optionList.length" type="text"></el-button>
<p style="color: #5850ff" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p>
</template> -->
<!-- <div slot="serviceTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }">
<GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable>
</div> -->
......@@ -222,22 +218,6 @@
</el-form>
</el-row>
</relate-store-dialog>
<!-- 公告管理配置门店 -->
<!-- <relate-store-dialog v-if="relateStoreVisibles" ref="relateStores" :relateStoreVisible="relateStoreVisibles" :storeApi="storeApi" :storeSearchForm="storeSearchForms" :storeSelected="selectedLists" @handleRelateStoreConfirm="handleRelateStoreConfirms" @handleRelateStoreClose="handleRelateStoreCloses">
<el-row slot>
<el-form :model="storeSearchForms" ref="relate" :inline="true" label-width="90px">
<el-form-item label="商户ID:" prop="merchantId">
<el-input :size="size" v-model.trim="storeSearchForms.merchantId" placeholder="请输入商户ID" clearable></el-input>
</el-form-item>
<el-form-item label="门店名称:" prop="merchantName">
<el-input :size="size" v-model.trim="storeSearchForms.merchantName" placeholder="请输入门店名称" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button :size="size" type="primary" @click="handleSearchStores">搜索</el-button>
</el-form-item>
</el-form>
</el-row>
</relate-store-dialog> -->
</div>
</template>
......@@ -287,12 +267,7 @@ export default {
merchantId: '',
merchantName: ''
},
storeSearchForms: {
merchantId: '',
merchantName: ''
},
selectedList: [],
selectedLists: [],
// 门店表格
tableParams: {
tableOption: true,
......@@ -438,42 +413,6 @@ export default {
name: '',
addHtml: 'customerServerUserId'
}
// {
// label: '在线客服',
// name: 'customerServerUserId',
// type: 'select',
// optionList: [],
// optionId: 'userOneid',
// optionLabel: 'staffName',
// optionsName: 'consultantList',
// suffixSlot: 'customerServerSuffix',
// isClear: true,
// changeAttr: (value, targetItem) => {
// var tempObj = {
// customerServerName: '',
// customerServerUserTitle: ''
// }
// this.customerServerList = []
// this.editForm.customerServerId = ''
// this.editForm.customerServerName = ''
// this.editForm.customerServerUserTitle = ''
// if (value) {
// tempObj = this.baseData.consultantList.find(item => item.userOneid == value)
// this.editForm.customerServerId = tempObj.id
// this.editForm.customerServerName = tempObj.staffName
// this.editForm.customerServerUserTitle = tempObj.staffTitle
// this.customerServerList.push({
// customerServerName: tempObj.staffName,
// customerServerUserTitle: tempObj.staffTitle
// })
// }
// }
// }
// {
// label: '',
// addHtml: 'serviceTable'
// }
]
}
],
......@@ -601,7 +540,6 @@ export default {
},
// 选择门店
handleRelateStoreClose(v) {
console.log('v',v);
this.state = v
if(v == 'banner') {
this.selectedList = this.$common.utils.deepClone(this.editForm.bannerMerchantList)
......@@ -610,11 +548,8 @@ export default {
}
this.relateStoreVisible = !this.relateStoreVisible
},
// handleRelateStoreCloses() {
// this.selectedLists = this.$common.utils.deepClone(this.editForm.noticeMerchantList)
// this.relateStoreVisibles = !this.relateStoreVisibles
// },
handleRelateStoreConfirm(selectedData) {
console.log('selectedData',selectedData);
if(this.state == 'banner') {
this.editForm.bannerMerchantList = selectedData
} else if(this.state == 'notice') {
......@@ -623,22 +558,14 @@ export default {
this.selectedList = selectedData
this.handleRelateStoreClose(this.state)
},
// handleRelateStoreConfirms(selectedData) {
// this.editForm.noticeMerchantList = selectedData
// this.selectedLists = selectedData
// this.handleRelateStoreCloses()
// },
handleSearchStore() {
this.$refs.relateStore.handleCurrentChange(1)
},
// handleSearchStores() {
// this.$refs.relateStores.handleCurrentChange(1)
// },
handleMerchantDelete(obj) {
this.$messageBox.confirm('是否删除该门店?', '删除', {
confirmButtonText: '确定',
cancelButtonText: '取消',
// type: 'error',
type: 'warning',
callback: action => {
if (action == 'confirm') {
var idx = this.editForm.bannerMerchantList.findIndex(item => item.merchantNo == obj.scope.merchantNo)
......@@ -651,7 +578,7 @@ export default {
this.$messageBox.confirm('是否删除该门店?', '删除', {
confirmButtonText: '确定',
cancelButtonText: '取消',
// type: 'error',
type: 'warning',
callback: action => {
if (action == 'confirm') {
var idx = this.editForm.noticeMerchantList.findIndex(item => item.merchantNo == obj.scope.merchantNo)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!