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