HTML:
<el-date-picker
v-model="ruleForm.salarydate"
type="month"
value-format="yyyy-MM"
placeholder="选择月"
@change="getTableLabel"
>
</el-date-picker>
JS:
//查询参数
ruleForm: {
userId: "",
salarydate: "",
},
methods: {
//获取数据
getTableLabel: function () {
let userId = this.$store.state.user.userid;
this.ruleForm.userId = userId;
// alert(this.ruleForm.salarydate);
if (this.ruleForm.userId != null && this.ruleForm.salarydate != null) {
getselfSalary(this.ruleForm)
.then((res) => {