|
@@ -65,7 +65,7 @@ export default {
|
|
|
{ label: '姓名', key: 'name', class: 'c-2', rules: 1 },
|
|
|
{ label: '电话', key: 'phone', class: 'c-2', rules: 1 },
|
|
|
{ label: '意向等级', key: 'purpose_level', class: 'c-2', rules: 1, type: 'select', options: this.$dictData.purpose_level },
|
|
|
- { label: '意向楼盘', key: 'estate_id', type: 'selectRemote', class: 'c-2', multiple: true, changeHandle: this.estateChange,
|
|
|
+ { label: '意向楼盘', key: 'estate_id', rules: 1, type: 'selectRemote', class: 'c-2', multiple: true, changeHandle: this.estateChange,
|
|
|
remoteParams: { skey: 'estate_name', api: `house.admestatelist`, opKey: 'estate_name', opVal: 'id' },
|
|
|
remoteOptions: remoteEstateOptions,
|
|
|
},
|
|
@@ -75,6 +75,21 @@ export default {
|
|
|
]
|
|
|
this.setDefaultValue(params)
|
|
|
},
|
|
|
+ getTime () {
|
|
|
+ let date = new Date()
|
|
|
+ let year = date.getFullYear()
|
|
|
+ let month = date.getMonth() + 1
|
|
|
+ month = month > 9 ? month : '0' + month
|
|
|
+ let day = date.getDate()
|
|
|
+ day = day > 9 ? day : '0' + day
|
|
|
+ let hour = date.getHours()
|
|
|
+ hour = hour > 9 ? hour : '0' + hour
|
|
|
+ let min = date.getMinutes()
|
|
|
+ min = min > 9 ? min : '0' + min
|
|
|
+ let second = date.getSeconds()
|
|
|
+ second = second > 9 ? second : '0' + second
|
|
|
+ return `${month}${day}-${hour}:${min}:${second}`
|
|
|
+ },
|
|
|
close(str) {
|
|
|
if (str === 'confirm') {
|
|
|
this.$refs['ruleForm'].$refs['baseForm'].validate((valid) => {
|
|
@@ -83,6 +98,8 @@ export default {
|
|
|
const newForm = { ...oldform }
|
|
|
if (this.curObj.id) {
|
|
|
newForm.id = this.curObj.id
|
|
|
+ } else {
|
|
|
+ newForm.name = newForm.name + `(${this.getTime()})`
|
|
|
}
|
|
|
let apiStr = 'admcustomeradd'
|
|
|
if (newForm.id) apiStr = 'admcustomeredit'
|