+
@@ -62,6 +69,7 @@ import { authMixin } from "@/mixin/authMixin";
import headerContent from "@/components/LxHeader/XyContent.vue";
import LxHeader from "@/components/LxHeader/index.vue";
import create from "./component/create.vue"
+import { listCommondepartment } from "@/api/common";
export default {
mixins: [authMixin],
components: {
@@ -73,8 +81,11 @@ export default {
return {
select:{
status:'',
+ depatment_id:'',
keyword:''
},
+ list:[],
+ depList:[],
statusList:[{
label:'开启填报',
value:0
@@ -107,12 +118,12 @@ export default {
width: 120
},
{
- prop: "start_date",
+ prop: "start_at",
label: "开始填报日期",
width: 160
},
{
- prop: "end_date",
+ prop: "end_at",
label: "结束填报日期",
width: 160
},
@@ -160,8 +171,28 @@ export default {
]
}
},
+ created(){
+ this.getDepList()
+ this.getList()
+ },
methods: {
+ async getList(){
+ const res = await index({
+ page:1,
+ page_size:10,
+ ...this.select
+ })
+ this.list = res.data
+ },
index,destroy,
+ getDepList(){
+ var that = this;
+ listCommondepartment().then(response => {
+ that.depList = response.data;
+ }).catch(error => {
+ //reject(error)
+ })
+ },
},
computed: {},
}
diff --git a/src/views/system/department.vue b/src/views/system/department.vue
index 5b219cd..de328fd 100644
--- a/src/views/system/department.vue
+++ b/src/views/system/department.vue
@@ -7,8 +7,9 @@
-
-
+
+
+ 最后同步时间: