Authored by 王水玲

红人

... ... @@ -36,28 +36,30 @@ export default {
name: 'profile',
data() {
return {
profile: {}
profile: {}
};
},
created() {
this.candidateListService = new CandidateListService();
// this.getData();
this.candidateListService = new CandidateListService();
},
mounted() {
this.getData();
},
methods: {
getData() {
this.candidateListService.queryByPidForFavorite().then(ret => {
if (ret && ret.code === 200) {
this.profile = ret.data;
} else {
console.log(ret.message);
}
});
},
formatDate(date) {
if (date) {
return moment.unix(date).format('YYYY.MM.DD');
getData() {
this.candidateListService.queryByPidForFavorite().then(ret => {
if (ret && ret.code === 200) {
this.profile = ret.data;
} else {
console.log(ret.message);
}
});
},
formatDate(date) {
if (date) {
return moment.unix(date).format('YYYY.MM.DD');
}
}
}
},
components: {
},
... ...
... ... @@ -117,7 +117,7 @@ export default {
);
} else {
return '暂无';
}
}
}
}, {
title: 'SKU',
... ... @@ -191,7 +191,7 @@ export default {
}, {
title: '操作',
render: (h, params) => {
if (arams.row.status !== 10) {
if (params.row.status !== 10) {
return (
<action-group>
<i-button type="primary" size="small" onClick={() => this.check(params.row)}>对帐</i-button>
... ...
... ... @@ -32,6 +32,8 @@
<script>
import CandidateListService from 'services/kol/candidate-list-service';
import _ from 'lodash';
export default {
data() {
return {
... ... @@ -102,7 +104,7 @@ export default {
key: 'status',
align: 'center',
render: (h, params) => {
switch(params.row.status) {
switch (params.row.status) {
case 10:
return '未到票';
case 20:
... ...
... ... @@ -36,6 +36,7 @@
<script>
import CandidateListService from 'services/kol/candidate-list-service';
import moment from 'moment';
import _ from 'lodash';
export default {
data() {
... ...