Commit ab0f4c14 authored by 黄奎's avatar 黄奎

页面修改

parent 2282b0af
......@@ -45,6 +45,9 @@
@click="EditCustom(props.row)" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="客户审批"
@click="AuditCustomer(props.row)" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="删除"
@click="RemoveCustomer(props.row)" />
</q-td>
</template>
</q-table>
......@@ -114,7 +117,6 @@
field: 'CreateTimeStr',
align: 'left'
},
{
name: 'optioned',
label: '操作',
......@@ -139,9 +141,8 @@
this.isShowCustomForm = false;
this.isShowRightForm = false;
},
//新增或者修改
//新增或者修改客户
EditCustom(obj) {
if (obj) {
this.customerObj = obj
} else {
......@@ -159,7 +160,42 @@
this.isShowRightForm = true
},
refreshQuestion() {
this.getList()
this.getList()
},
//删除客户
RemoveCustomer(obj) {
let that = this;
var message = "您正在进行删除【" + obj.CustomerName + "】行为,一旦执行无法找回,是否确认执行?";;
this.$q.dialog({
title: "删除客户",
message: message,
isShowEditClassRoomForm: true,
cancel: {
label: "取消",
flat: true
},
ok: {
label: "确认",
flat: true,
focus: true
}
}).onOk(() => {
var delMsg = {
CustomerId: obj.CustomerId,
};
RemoveCustomer(delMsg).then(res => {
if (res.Code == 1) {
that.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '操作成功',
position: 'top'
})
that.refreshQuestion();
}
})
});
},
//获取分页数据
getList() {
......@@ -167,12 +203,10 @@
this.dataList = res.Data.PageData;
this.loading = false;
this.pageCount = res.Data.PageCount;
console.log(res, '数据');
}).catch(() => {
this.loading = false
})
}
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment