|
@@ -44,6 +44,18 @@
|
|
|
:value="item.providerPk"
|
|
:value="item.providerPk"
|
|
|
:key="index"/>
|
|
:key="index"/>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ clearable
|
|
|
|
|
+ v-if="hasSiteType.indexOf(params.reportType) >= 0"
|
|
|
|
|
+ v-model="params.siteLabelId"
|
|
|
|
|
+ class="filter-input"
|
|
|
|
|
+ placeholder="Site Label">
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="(item, index) in options.siteTag"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ :label="item.siteLabelName"
|
|
|
|
|
+ :value="item.siteLabelId"/>
|
|
|
|
|
+ </el-select>
|
|
|
<el-button
|
|
<el-button
|
|
|
class="filter-input"
|
|
class="filter-input"
|
|
|
v-if="hasSiteType.indexOf(params.reportType) >= 0"
|
|
v-if="hasSiteType.indexOf(params.reportType) >= 0"
|
|
@@ -180,12 +192,14 @@ export default {
|
|
|
},
|
|
},
|
|
|
params: {
|
|
params: {
|
|
|
reportType: "",
|
|
reportType: "",
|
|
|
|
|
+ siteLabelId: "",
|
|
|
sitePks: [],
|
|
sitePks: [],
|
|
|
groupPks: [],
|
|
groupPks: [],
|
|
|
providerPks: [],
|
|
providerPks: [],
|
|
|
yearMonthRange: []
|
|
yearMonthRange: []
|
|
|
},
|
|
},
|
|
|
options: {
|
|
options: {
|
|
|
|
|
+ siteTag: [],
|
|
|
reportType: [],
|
|
reportType: [],
|
|
|
siteOptions: [],
|
|
siteOptions: [],
|
|
|
groupOptions: [],
|
|
groupOptions: [],
|
|
@@ -221,6 +235,7 @@ export default {
|
|
|
this.loading.filter = true
|
|
this.loading.filter = true
|
|
|
Promise.all([
|
|
Promise.all([
|
|
|
this.getReportTypeOptions(),
|
|
this.getReportTypeOptions(),
|
|
|
|
|
+ this.getSiteTagOptions(),
|
|
|
//this.getSiteOptions(),
|
|
//this.getSiteOptions(),
|
|
|
this.getServiceProviderList()
|
|
this.getServiceProviderList()
|
|
|
]).then(() => {
|
|
]).then(() => {
|
|
@@ -242,6 +257,13 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ getSiteTagOptions() {
|
|
|
|
|
+ return api.getSiteTagOptions().then(res => {
|
|
|
|
|
+ if (res.data) {
|
|
|
|
|
+ this.options.siteTag = res.data
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
getServiceProviderList() {
|
|
getServiceProviderList() {
|
|
|
getServiceProviderOptions(list => {
|
|
getServiceProviderOptions(list => {
|
|
|
this.options.serviceProvider = list;
|
|
this.options.serviceProvider = list;
|
|
@@ -275,6 +297,7 @@ export default {
|
|
|
if (this.hasGroupType.indexOf(this.params.reportType) >= 0) {
|
|
if (this.hasGroupType.indexOf(this.params.reportType) >= 0) {
|
|
|
this.getGroupOptions();
|
|
this.getGroupOptions();
|
|
|
}
|
|
}
|
|
|
|
|
+ this.params.siteLabelId = "";
|
|
|
this.params.sitePks = [];
|
|
this.params.sitePks = [];
|
|
|
this.params.groupPks = [];
|
|
this.params.groupPks = [];
|
|
|
this.params.providerPks = [];
|
|
this.params.providerPks = [];
|