|
@@ -750,15 +750,23 @@ export default {
|
|
var url =
|
|
var url =
|
|
CORE_API +
|
|
CORE_API +
|
|
"/specialty/specialtyPage/" +
|
|
"/specialty/specialtyPage/" +
|
|
- (this.currentPage - 1) +
|
|
|
|
|
|
+ (this.currentSpecialtyPage - 1) +
|
|
"/" +
|
|
"/" +
|
|
this.pageSize +
|
|
this.pageSize +
|
|
"?" +
|
|
"?" +
|
|
param;
|
|
param;
|
|
- this.$httpWithMsg.get(url).then(response => {
|
|
|
|
- this.specialtyTableData = response.data.content;
|
|
|
|
- this.specialtyTotal = response.data.totalElements;
|
|
|
|
- });
|
|
|
|
|
|
+ this.$httpWithMsg
|
|
|
|
+ .get(url)
|
|
|
|
+ .then(response => {
|
|
|
|
+ this.specialtyTableData = response.data.content;
|
|
|
|
+ this.specialtyTotal = response.data.totalElements;
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ if (this.specialtyTableData.length === 0 && this.specialtyTotal > 0) {
|
|
|
|
+ this.currentSpecialtyPage = this.currentSpecialtyPage - 1;
|
|
|
|
+ this.searchSpecialtyPage();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
},
|
|
},
|
|
getTag(status) {
|
|
getTag(status) {
|
|
if (status == true) {
|
|
if (status == true) {
|