|
|
@@ -331,6 +331,13 @@ export default {
|
|
|
this.$refs.customref.focus()
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+ if (this.$route.query.customId && this.$route.query.customName) {
|
|
|
+ let id = this.$route.query.customId
|
|
|
+ let name = this.$route.query.customName
|
|
|
+ this.goSelectItem(id,name)
|
|
|
+ }
|
|
|
+
|
|
|
let that = this;
|
|
|
document.onkeydown=function(e) {
|
|
|
console.log(e)
|
|
|
@@ -499,19 +506,22 @@ export default {
|
|
|
},
|
|
|
selectCustomFn(e){
|
|
|
if(e.id && e.name){
|
|
|
- let that = this
|
|
|
+ this.goSelectItem(e.id,e.name)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ goSelectItem(id,name){
|
|
|
+ let that = this
|
|
|
that.TT = setTimeout(function(){
|
|
|
that.desk = 'selectedList'
|
|
|
},2300)
|
|
|
- this.form.customId = e.id
|
|
|
- this.form.customName = e.name
|
|
|
- this.selectJobId = e.id
|
|
|
+ this.form.customId = id
|
|
|
+ this.form.customName = name
|
|
|
+ this.selectJobId = id
|
|
|
this.getFromStorage(true)
|
|
|
this.$nextTick(()=>{
|
|
|
this.$refs['itemSearchRef'].focus()
|
|
|
})
|
|
|
- }
|
|
|
- },
|
|
|
+ },
|
|
|
searchCustomInfo(query) {
|
|
|
let that = this
|
|
|
if (query !== '') {
|