tags: VUE
async initPage() {
await this.queryDetail()
await this.queryEmployeeList()
this.selSaler()
},
queryDetail() {
return fetchDetail({
businessAccountId: this.$route.params.id
}).then(response => {
if (response.code === 200) {
this.detail = response.data
this.saler = response.data.employeeId
} else {
this.$message.error(response.msg)
}
})
},
queryEmployeeList() {
return employeeList({
name: '',
email: '',
phone: '',
department: '',
page: 1,
pageSize: 10000
}).then(response => {
if (response.code === 200) {
this.salerOptions = response.data.list
} else {
this.$message.error(response.msg)
}
})
},
selSaler() {
this.salerOptions.some(item => {
if (item.id === this.saler) {
this.salerDetail = { ...item }
return true
}
})
},
Base64ToImage BitmapToBase64...
thought: The topic asks to find all the information of the latest employees. Through a sub-query (select max(hire_date) from employees), find the latest hire time of the employee, hire_date, and then ...
Recently, I am learning mathematical modeling and found a very good course on B station. It is very comprehensive and all the algorithms I often test involve:Qingfeng Mathematical Modeling This articl...
When x = 0 or y = 0 when f [x] [y] = 0 When a [x] = b [y] when f [x] [y] = f [x-1] [y-1] +1 When a [x]! = B [y] when f [x] [y] = max (f [x] [y-1], f [x-1] [y]) Note that the string 1 from the start, b...
I learned the enumeration algorithm in this section. The enumeration method is the nature of the problem itself, and all possible solutions are listed in one by one, and in the process of listed one b...
The interface java.util.Map includes three implementation classes: HashMap, Hashtable, and TreeMap. Of course there are LinkedHashMap, ConcurrentHashMap, WeakHashMap. Map is used to storeKey-value...
Everyday fresh items - project preference Understand the e-commerce Web project development process Project demand analysis Page page Function map Deployment page Project framework Understand the e-co...
The following old method used before installed opencv, after reinstalling the system, reinstalled opencv according to the original method, and the result has always been reported: ImportError: Module ...
Various text files are involved in MBD (model-based design), and the automated processing of text files can greatly improve work efficiency. This article briefly introduces the first step of processin...
1. Log in to Mysql cmd enter mysql -u root -pyoupassword (Input rule After you press Enter, you will be prompted to enter the password. Note that there may or may not be spaces before the user name, b...