|
@@ -69,16 +69,19 @@
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
|
<div style="display: flex; align-items: center">
|
|
|
- <el-date-picker
|
|
|
+ <!-- <el-date-picker
|
|
|
style="width: 105px; margin-right: 6px"
|
|
|
v-model="yearValue"
|
|
|
:clearable="false"
|
|
|
type="year"
|
|
|
value-format="yyyy"
|
|
|
placeholder="选择年"
|
|
|
- @change="getIncrementalCompanyContractPercentageList"
|
|
|
+
|
|
|
>
|
|
|
- </el-date-picker>
|
|
|
+ </el-date-picker> -->
|
|
|
+ <el-select v-model="yearValue" @change="getIncrementalCompanyContractPercentageList" placeholder="选择年">
|
|
|
+ <el-option v-for="item in yearList" :key="item" :label="item" :value="item"> </el-option>
|
|
|
+ </el-select>
|
|
|
<span @click="annualSelectHandler(item)" :class="['select-lable', annualSelectActivue == item.name && 'act-select-lable']" v-for="item in annualSelectList" :key="item.name">
|
|
|
{{ item.name }}
|
|
|
</span>
|
|
@@ -339,6 +342,7 @@ export default {
|
|
|
previousDetailDlg: false,
|
|
|
packageTypeList: ["增加套餐", "减少套餐", "维持套餐"],
|
|
|
yearValue: new Date().getFullYear().toString(),
|
|
|
+ yearList: [],
|
|
|
annualSelectList: [
|
|
|
{
|
|
|
name: "全年",
|
|
@@ -672,9 +676,18 @@ export default {
|
|
|
};
|
|
|
return params;
|
|
|
},
|
|
|
+ // 获取年份
|
|
|
+ async getYearList() {
|
|
|
+ const res = await dataMainInterface.incrementalCompanyContractGetYearList();
|
|
|
+ if (res.Ret === 200) {
|
|
|
+ this.yearList = res.Data.List.reverse();
|
|
|
+ this.yearValue = this.yearList[0];
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
created() {},
|
|
|
mounted() {
|
|
|
+ this.getYearList();
|
|
|
this.getIncrementalCompanyContractPercentageList();
|
|
|
this.incrementTableColums = equityTableColums(this.filterObj.data_type);
|
|
|
this.getSale();
|