|
@@ -242,13 +242,17 @@ export default {
|
|
|
}
|
|
|
this.$set(this, `loading`, true);
|
|
|
},
|
|
|
- selectChange({ type, value }) {
|
|
|
- this.$set(this.info, `${type}`, value);
|
|
|
- },
|
|
|
selectDate(date) {
|
|
|
this.$set(this.info, `end_date`, date[3]);
|
|
|
this.dateVis = false;
|
|
|
},
|
|
|
+ selectChange({ type, value, val }) {
|
|
|
+ if (type === 'city') {
|
|
|
+ this.$set(this.info, `${type}`, val);
|
|
|
+ } else {
|
|
|
+ this.$set(this.info, `${type}`, value);
|
|
|
+ }
|
|
|
+ },
|
|
|
listChange({ val, type }) {
|
|
|
//此方法是更换子列表的
|
|
|
if (type === 'city') {
|
|
@@ -273,7 +277,7 @@ export default {
|
|
|
infos.salary.text = infos.salary.min + 'k-' + infos.salary.max + 'k/月';
|
|
|
if (typeof infos.city === 'object') {
|
|
|
infos.city.map(item => {
|
|
|
- mid === '' ? (mid = item.label) : (mid += `,${item.label}`);
|
|
|
+ mid === '' ? (mid = item.name) : (mid += `,${item.name}`);
|
|
|
});
|
|
|
infos.city = mid;
|
|
|
mid = '';
|