Commit 6d09535d by 李长胜
2 parents 8e12c8df d4b1543c
......@@ -187,7 +187,7 @@
width: footerWidth + 'px'
}"
>
<el-button type="primary" @click="handleSubmit">确定</el-button>
<el-button type="primary" v-loading="addLoading" @click="handleSubmit">确定</el-button>
<el-button type="primary" @click="handleCancel">取消</el-button>
</div>
<SelectLabel ref="selectLabel" @tagSelected="handleSelect" :dialogVisible="dialogVisible"></SelectLabel>
......@@ -254,6 +254,7 @@ export default {
}
}
return {
addLoading: false,
eventBus: new Vue(),
basicForm: {
condition: {}
......@@ -376,6 +377,7 @@ export default {
params.sendTimeStr = this.basicForm.sendTime + ' ' + this.basicForm.sendDate
}
console.log(params)
this.addLoading = true
this.$apis.customerTransform
.insert(params)
.then(res => {
......@@ -387,12 +389,14 @@ export default {
})
this.handleCancel()
}
this.addLoading = false
})
.catch(err => {
this.$message({
type: 'error',
message: err.message
})
this.addLoading = false
})
}
})
......
......@@ -80,7 +80,7 @@
width: footerWidth + 'px'
}"
>
<el-button type="primary" @click="handleSubmit">确定</el-button>
<el-button type="primary" v-loading="addLoading" @click="handleSubmit">确定</el-button>
<el-button type="primary" @click="handleCancel">取消</el-button>
</div>
<glsx-dialog
......@@ -152,6 +152,7 @@ export default {
}
}
return {
addLoading: false,
eventBus: new Vue(),
basicForm: {},
basicRules: {
......@@ -248,6 +249,7 @@ export default {
if (params.sendType == 2) {
params.sendTimeStr = this.basicForm.sendTime + ' ' + this.basicForm.sendDate
}
this.addLoading = true
console.log(params)
this.$apis.customerTransform
.insert(params)
......@@ -260,12 +262,14 @@ export default {
})
this.handleCancel()
}
this.addLoading = false
})
.catch(err => {
this.$message({
type: 'error',
message: err.message
})
this.addLoading = false
})
})
}
......
......@@ -326,11 +326,7 @@ export default {
<style lang="scss" scoped>
.welcome-box {
}
.content-bg {
background-color: #f7f7f7;
}
.content {
.content {
display: inline-block;
vertical-align: text-top;
width: calc(100% - 103px);
......@@ -408,7 +404,12 @@ export default {
font-size: 14px;
color: #999;
}
}
}
.content-bg {
background-color: #f7f7f7;
}
.required {
display: inline-block;
line-height: 40px;
......
......@@ -30,7 +30,7 @@
{{ item.staffName }}
<span
:class="[item.status == 0 ? 'unsend' : 'send']"
>{{ item.status == 0 ? '未' : '已' }}发送</span>
>{{ item.status == 0 ? '未发送' : item.status == 1 ? '已发送' : '发送失败' }}</span>
</div>
<div class="info-num">共{{ item.customerCount ? item.customerCount : 0 }}个客户</div>
</div>
......@@ -60,9 +60,9 @@
@select="handleCustomSelect"
>
<el-menu-item index>全部</el-menu-item>
<el-menu-item index="1">已发送客户</el-menu-item>
<el-menu-item index="0">未发送客户</el-menu-item>
<el-menu-item index="2">客户接受失败</el-menu-item>
<el-menu-item index="1">已送达客户</el-menu-item>
<el-menu-item index="0">未送达客户</el-menu-item>
<el-menu-item index="2">客户送达失败</el-menu-item>
</el-menu>
<div class="detail-total">共 {{ customerlist.length || 0 }} 人</div>
<div v-if="customerlist.length != 0" class="info-list">
......@@ -79,7 +79,7 @@
<div
class="customer-table"
:class="[item.status == 0 ? 'unsend' : 'send']"
>{{ item.status == 0 ? '未' : '已' }}送达</div>
>{{ item.status == 0 ? '未送达' : item.status == 1 ? '已送达' : '送达失败' }}</div>
</div>
</div>
<div class="info-right">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!