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,89 +326,90 @@ export default {
<style lang="scss" scoped>
.welcome-box {
}
.content-bg {
background-color: #f7f7f7;
}
.content {
display: inline-block;
vertical-align: text-top;
width: calc(100% - 103px);
margin-left: 12px;
.welcome-file {
display: flex;
align-items: center;
color: #999;
line-height: 20px;
padding: 10px;
margin-bottom: 10px;
border-left: 1px solid #dcdfe6;
border-right: 1px solid #dcdfe6;
img {
width: 20px;
height: 20px;
margin-right: 5px;
}
span {
display: inline-block;
margin-right: 20px;
max-width: 200px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 14px;
}
i {
font-size: 16px;
}
.el-icon-loading {
font-size: 24px;
}
&:last-child {
margin-bottom: 0;
}
}
.btn-group {
padding: 6px 0 6px 20px;
border: 1px solid #dcdfe6;
border-top: 0;
.add-btn {
display: inline-flex;
position: relative;
.content {
display: inline-block;
vertical-align: text-top;
width: calc(100% - 103px);
margin-left: 12px;
.welcome-file {
display: flex;
align-items: center;
padding-right: 25px;
font-size: 16px;
color: #666;
cursor: pointer;
color: #999;
line-height: 20px;
padding: 10px;
margin-bottom: 10px;
border-left: 1px solid #dcdfe6;
border-right: 1px solid #dcdfe6;
img {
width: 20px;
height: 20px;
margin-right: 5px;
}
span {
display: inline-block;
margin-right: 20px;
max-width: 200px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 14px;
margin-left: 5px;
}
input {
position: absolute;
width: 100%;
cursor: pointer;
font-size: 0;
height: 40px;
i {
font-size: 16px;
}
img {
width: 16px;
height: 16px;
cursor: pointer;
.el-icon-loading {
font-size: 24px;
}
.el-link {
position: absolute;
width: 100%;
&:last-child {
margin-bottom: 0;
}
}
}
.date-picker {
margin-top: 10px;
font-size: 14px;
color: #999;
.btn-group {
padding: 6px 0 6px 20px;
border: 1px solid #dcdfe6;
border-top: 0;
.add-btn {
display: inline-flex;
position: relative;
align-items: center;
padding-right: 25px;
font-size: 16px;
color: #666;
cursor: pointer;
span {
font-size: 14px;
margin-left: 5px;
}
input {
position: absolute;
width: 100%;
cursor: pointer;
font-size: 0;
height: 40px;
}
img {
width: 16px;
height: 16px;
cursor: pointer;
}
.el-link {
position: absolute;
width: 100%;
}
}
}
.date-picker {
margin-top: 10px;
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!