Browse Source

fix export

scorpio 2 năm trước cách đây
mục cha
commit
a0d36cce2f
1 tập tin đã thay đổi với 18 bổ sung21 xóa
  1. 18 21
      src/views/home/component/owner_serach.vue

+ 18 - 21
src/views/home/component/owner_serach.vue

@@ -192,14 +192,14 @@
 
 <script>
 import baseButton from '../../../components/base-button.vue'
-import {useStore} from '@/store/user.js'
+import { useStore } from '@/store/user.js'
 
 export default {
   name: 'owner_serach',
-  components: {baseButton},
+  components: { baseButton },
   watch: {
     keyWords: {
-      handler(val) {
+      handler (val) {
         setTimeout(() => {
           this.change()
         }, 500)
@@ -207,11 +207,11 @@ export default {
       immediate: true
     }
   },
-  setup() {
+  setup () {
     const user = useStore()
-    return {user}
+    return { user }
   },
-  data() {
+  data () {
     return {
       deptList: [],
       form: {
@@ -288,17 +288,16 @@ export default {
       deptName: '机构选择'
     }
   },
-  created() {
+  created () {
     this.getTypeList()
   },
   methods: {
-    getTypeList() {
+    getTypeList () {
       this.$api.project.typeList().then(res => {
         this.typeList = res.data.records
       })
     },
-    sure() {
-      this.form.type = true
+    sure () {
       if (this.time1 !== null && this.form.isStart.length === 0) {
         this.$message.error('请先选择是否开工')
         return
@@ -329,7 +328,7 @@ export default {
       }
       this.$bus.emit('serach', this.form)
     },
-    visibleTime(event, type) {
+    visibleTime (event, type) {
       if (event) {
         console.log(this.form.isStart)
         if (type === 1) {
@@ -345,7 +344,7 @@ export default {
         }
       }
     },
-    clear() {
+    clear () {
       this.form.projectName = ''
       this.form.typeId = ''
       this.form.isStorage = ''
@@ -364,12 +363,12 @@ export default {
       this.deptName = '机构选择'
       this.$bus.emit('serach', this.form)
     },
-    changeAmount() {
+    changeAmount () {
       const tmps = this.form.amount.split(',')
       this.form.totalAmountMin = tmps[0] === '-' ? '' : tmps[0]
       this.form.totalAmountMax = tmps[1] === '-' ? '' : tmps[1]
     },
-    getOrg() {
+    getOrg () {
       if (this.deptList.length > 0) {
         this.showOrg = true
         return
@@ -387,27 +386,25 @@ export default {
         }
       })
     },
-    changeChecked(index) {
+    changeChecked (index) {
       this.deptList[index].checked = !this.deptList[index].checked
     },
-    orgCheck() {
+    orgCheck () {
       const checked = this.deptList.filter(sub => sub.checked)
       this.form.deptIds = checked.map(sub => sub.id).join(',')
-      let tmp = checked.map(e => e.deptName)
+      const tmp = checked.map(e => e.deptName)
       if (tmp.length > 0) {
         this.deptName = tmp[0]
       }
       this.showOrg = false
-
     },
-    orgRefresh() {
+    orgRefresh () {
       this.deptList = this.deptList.map(sub => {
         sub.checked = false
         return sub
       })
-
     },
-    change() {
+    change () {
       if (this.keyWords.length === 0) {
         this.deptList.forEach(sub => sub.search = false)
         return