Commit e252c373 by 王玉曼

--no commit message

1 parent 48e7232e
......@@ -41,4 +41,4 @@ export function getUserInfo(code, agentId) {
agentId,
},
})
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@
<span class="finish-box">
<span
class="finish"
v-if="item1.trajectoryType == 4"
v-if="item1.trajectoryType == 4 && item1.status !=3"
@click="finDynamic(item1.id)"
>完成</span
>
......@@ -213,7 +213,7 @@ export default {
handleWait(id)
.then((data) => {
if (data.code == 200) {
this.delDynamic(id);
// this.delDynamic(id);
this.reload();
}
})
......@@ -250,6 +250,7 @@ export default {
color: #9c9c9c;
font-size: 12px;
font-weight: 600;
margin-right: 16px;
}
.con {
left: 51px;
......@@ -258,20 +259,15 @@ export default {
.finish-box {
display: inline-block;
position: relative;
color: #2c8cf0;
font-size: 12px;
font-weight: 600;
left: 140px;
top: 0px;
width: 65px;
left: 100px;
width: 25%;
}
.finish {
position: absolute;
color: #2c8cf0;
font-size: 12px;
font-weight: 600;
// right: -138px;
top: 0px;
// right: 30px;
// top: 0px;
}
</style>
......@@ -102,7 +102,6 @@ export default {
},
created() {
this.externalUserid = this.$route.query.customerId
this.findAddaddEmployes()
this.findAddGroupNum()
},
......
......@@ -58,6 +58,7 @@
label="年龄"
placeholder="年龄"
input-align="right"
disabled
/>
<van-field
v-model="form.birthday"
......@@ -67,14 +68,16 @@
input-align="right"
@click="!flage ? (show = true) : ''"
/>
<van-popup v-model="show"> 内容</van-popup>
<!-- <van-datetime-picker
v-model="currentDate"
type="date"
title="选择年月日"
:min-date="minDate"
:max-date="maxDate"
/> -->
<van-popup v-model="show" position="bottom" round :style="{ height: '60%' }">
<van-datetime-picker
v-model="currentDate"
type="date"
title="选择年月日"
:min-date="minDate"
:max-date="maxDate"
@confirm="confirm"
@cancel = "cancel"
/></van-popup>
<!-- -------------------------- -->
<van-field
v-model="form.email"
......@@ -134,6 +137,7 @@ export default {
show: false,
minDate: new Date(1940, 0, 1),
maxDate: new Date(),
currentDate: new Date(2000, 0, 17),
// 接口开始
// 表单数据
form: {
......@@ -156,6 +160,7 @@ export default {
// 获取客户年龄
},
created() {
this.form.externalUserid = this.$route.query.customerId;
// 获取客户详细信息
getCustomerInfo({
......@@ -163,9 +168,9 @@ export default {
userId: this.form.userId,
})
.then(({ data }) => {
console.log(data);
// console.log(data);
this.form = data;
console.log(this.form);
// console.log(this.form);
})
.catch((err) => {
console.log(err);
......@@ -173,13 +178,37 @@ export default {
},
methods: {
// 选择生日
confirm(val) {
this.show = false
this.form.birthday =this.getTime (val)
console.log(val);
},
cancel () {
this.show = false
},
edit() {
this.flage = !this.flage;
},
// 时间处理器
getTime(data) {
const date = new Date(data)
// console.log(timer.getFullYear());
var Y = date.getFullYear() + '-'
var M =
(date.getMonth() + 1 < 10
? '0' + (date.getMonth() + 1)
: date.getMonth() + 1) + '-'
var D =
date.getDate() < 10 ? '0' + date.getDate() : date.getDate() + ' '
// var h =
// (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':'
// var m =
// date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
return Y + M + D
},
// 点击保存按钮提交表单
saveUserInformation() {
this.flage = !this.flage;
getWeCustomerInfo(this.form)
.then((data) => {
console.log(data);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!