|
@@ -47,7 +47,7 @@ export default {
|
|
|
props: ["date","companyNo"],
|
|
|
mixins: [setHeight],
|
|
|
watch: {
|
|
|
- date: function(val) {
|
|
|
+ daytime: function(val) {
|
|
|
this.dataTime = val;
|
|
|
if (val) {
|
|
|
this.searchList();
|
|
@@ -78,7 +78,7 @@ export default {
|
|
|
division,
|
|
|
async searchList() {
|
|
|
this.loading = true;
|
|
|
- const result = await asyncRequest.companyEvery({daytime:this.date, companyNo:this.companyNo})
|
|
|
+ const result = await asyncRequest.companyEvery({year:(this.daytime.split('-'))[0], companyNo:this.companyNo})
|
|
|
switch(Number(result.code)){
|
|
|
case 0:
|
|
|
const tableData = (result.data || []).map(tableItem => {
|