ljq 1 ヶ月 前
コミット
83ba89d2b9
49 ファイル変更298 行追加7 行削除
  1. 0 0
      dist/index.html
  2. 0 0
      dist/static/css/chunk-06a72b4b.b9c4e936.css
  3. 0 0
      dist/static/css/chunk-4e68ddb1.b9129339.css
  4. 0 0
      dist/static/css/chunk-5143f097.64745e02.css
  5. 0 0
      dist/static/js/app.77363141.js
  6. 0 0
      dist/static/js/app.a5ee91f0.js
  7. 0 0
      dist/static/js/chunk-060a14dc.006a0d89.js
  8. 0 0
      dist/static/js/chunk-060a14dc.91ac5ca7.js
  9. 0 0
      dist/static/js/chunk-06a72b4b.a1ad23d2.js
  10. 0 0
      dist/static/js/chunk-08ae1c6b.2eff8b33.js
  11. 0 0
      dist/static/js/chunk-106311f6.a97e7d47.js
  12. 0 0
      dist/static/js/chunk-106311f6.fe37036f.js
  13. 0 0
      dist/static/js/chunk-1804f4a4.165c6bfa.js
  14. 0 0
      dist/static/js/chunk-19ec4156.511186c0.js
  15. 0 0
      dist/static/js/chunk-19ec4156.c345c40f.js
  16. 0 0
      dist/static/js/chunk-341d886c.34ce2d7e.js
  17. 0 0
      dist/static/js/chunk-341d886c.dc0f3d66.js
  18. 0 0
      dist/static/js/chunk-36ddeec9.deef93e8.js
  19. 0 0
      dist/static/js/chunk-36ef19b0.777a22c3.js
  20. 0 0
      dist/static/js/chunk-41f61581.4b8d516b.js
  21. 0 0
      dist/static/js/chunk-41f61581.e800115b.js
  22. 0 0
      dist/static/js/chunk-4c9c4d90.182046a4.js
  23. 0 0
      dist/static/js/chunk-4e68ddb1.515062d0.js
  24. 0 0
      dist/static/js/chunk-5143f097.21c3619a.js
  25. 0 0
      dist/static/js/chunk-53a18efa.7b66ef72.js
  26. 0 0
      dist/static/js/chunk-53a18efa.d647c54d.js
  27. 0 0
      dist/static/js/chunk-593f9664.41ed0f29.js
  28. 0 0
      dist/static/js/chunk-5f80b3a5.24ef25fb.js
  29. 0 0
      dist/static/js/chunk-5f80b3a5.cb8d06c3.js
  30. 0 0
      dist/static/js/chunk-67a054c9.a0718a79.js
  31. 0 0
      dist/static/js/chunk-67a054c9.e31d5f74.js
  32. 0 0
      dist/static/js/chunk-6d9461ae.03cb7edf.js
  33. 0 0
      dist/static/js/chunk-6d9461ae.7c06620b.js
  34. 0 0
      dist/static/js/chunk-72792626.af476228.js
  35. 0 0
      dist/static/js/chunk-7441b538.30c11155.js
  36. 0 0
      dist/static/js/chunk-7441b538.7904b87c.js
  37. 0 0
      dist/static/js/chunk-7b057567.069c29ef.js
  38. 0 0
      dist/static/js/chunk-7f8b33fa.18e18dbd.js
  39. 0 0
      dist/static/js/chunk-7f8b33fa.a6166dfd.js
  40. 0 0
      dist/static/js/chunk-9c1e7474.b8870af8.js
  41. 0 0
      dist/static/js/chunk-b68b3c70.53b4761a.js
  42. 0 0
      dist/static/js/chunk-b68b3c70.e1d9f045.js
  43. 0 0
      dist/static/js/chunk-ea6fc480.4843944e.js
  44. 7 0
      dist/static/js/chunk-libs.ad74294e.js
  45. 0 7
      dist/static/js/chunk-libs.c22545e4.js
  46. 15 0
      src/api/facility.js
  47. 118 0
      src/views/bigdata/components/popup/BigdataEdit.vue
  48. 40 0
      src/views/bigdata/components/searchForm/Bigdata.vue
  49. 118 0
      src/views/bigdata/list.vue

ファイルの差分が大きいため隠しています
+ 0 - 0
dist/index.html


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/css/chunk-06a72b4b.b9c4e936.css


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/css/chunk-4e68ddb1.b9129339.css


+ 0 - 0
dist/static/css/chunk-7b057567.64745e02.css → dist/static/css/chunk-5143f097.64745e02.css


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/app.77363141.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/app.a5ee91f0.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-060a14dc.006a0d89.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-060a14dc.91ac5ca7.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-06a72b4b.a1ad23d2.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-08ae1c6b.2eff8b33.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-106311f6.a97e7d47.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-106311f6.fe37036f.js


+ 0 - 0
dist/static/js/chunk-1804f4a4.d9194d03.js → dist/static/js/chunk-1804f4a4.165c6bfa.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-19ec4156.511186c0.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-19ec4156.c345c40f.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-341d886c.34ce2d7e.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-341d886c.dc0f3d66.js


+ 0 - 0
dist/static/js/chunk-36ddeec9.3884bd13.js → dist/static/js/chunk-36ddeec9.deef93e8.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-36ef19b0.777a22c3.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-41f61581.4b8d516b.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-41f61581.e800115b.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-4c9c4d90.182046a4.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-4e68ddb1.515062d0.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-5143f097.21c3619a.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-53a18efa.7b66ef72.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-53a18efa.d647c54d.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-593f9664.41ed0f29.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-5f80b3a5.24ef25fb.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-5f80b3a5.cb8d06c3.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-67a054c9.a0718a79.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-67a054c9.e31d5f74.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-6d9461ae.03cb7edf.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-6d9461ae.7c06620b.js


+ 0 - 0
dist/static/js/chunk-72792626.e3d22591.js → dist/static/js/chunk-72792626.af476228.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-7441b538.30c11155.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-7441b538.7904b87c.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-7b057567.069c29ef.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-7f8b33fa.18e18dbd.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-7f8b33fa.a6166dfd.js


+ 0 - 0
dist/static/js/chunk-9c1e7474.88001111.js → dist/static/js/chunk-9c1e7474.b8870af8.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-b68b3c70.53b4761a.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-b68b3c70.e1d9f045.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-ea6fc480.4843944e.js


ファイルの差分が大きいため隠しています
+ 7 - 0
dist/static/js/chunk-libs.ad74294e.js


ファイルの差分が大きいため隠しています
+ 0 - 7
dist/static/js/chunk-libs.c22545e4.js


+ 15 - 0
src/api/facility.js

@@ -34,4 +34,19 @@ export default {
   admsaleruledel: params => { // 销售积分规则 - 洪楼分 删除
     return getRequestNoSort('/adm/sale/rule/del', params, 'loading')
   },
+  admbigdataquantitylist: params => { // 大数据管理 列表接口
+    return getRequest('/adm/bigdata/quantity/list', params)
+  },
+  admbigdataquantityadd: params => { // 大数据管理 添加
+    return getRequestNoSort('/adm/bigdata/quantity/add', params, 'loading')
+  },
+  admbigdataquantityedit: params => { // 大数据管理 编辑
+    return getRequestNoSort('/adm/bigdata/quantity/edit', params, 'loading')
+  },
+  admbigdataquantitydetailt: params => { // 大数据管理 详情
+    return getRequestNoSort('/adm/bigdata/quantity/detail', params, 'loading')
+  },
+  admbigdataquantitydel: params => { // 大数据管理 删除
+    return getRequestNoSort('/adm/bigdata/quantity/del', params, 'loading')
+  },
 }

+ 118 - 0
src/views/bigdata/components/popup/BigdataEdit.vue

@@ -0,0 +1,118 @@
+<template>
+  <div>
+    <el-dialog
+      v-loading="loading"
+      :show-close="false"
+      :close-on-click-modal="false"
+      :visible.sync="isShow"
+      :title="this.curObj && this.curObj.id ? '编辑数据' : '添加数据'"
+      :fullscreen="false"
+      width="900px"
+      custom-class="xl-dialog"
+      center
+    >
+      <base-form ref="ruleForm" class="lib-edit" :data="formData" :is-inline="false" label-width="160px">
+        <div slot="footer">
+          <el-button class="xl-form-btn t2" @click="close">关 闭</el-button>
+          <el-button class="xl-form-btn t1" @click="close('confirm')">确定</el-button>
+        </div>
+      </base-form>
+    </el-dialog>
+  </div>
+</template>
+<script>
+export default {
+  components: {},
+  mixins: [...mixins],
+  props: {
+    isShow: Boolean,
+    curObj: Object
+  },
+  inject: ['parentData'],
+  data() {
+    return {
+      formData: [],
+      loading: true,
+      cObj: {},
+      isShowMap: false
+    }
+  },
+  watch: {
+    isShow: function(val) {
+      if (val) {
+        this.getDef()
+      }
+    },
+  },
+  methods: {
+    getDef() {
+      const params = { ...this.curObj }
+      // if (params[params.big_data_zone+'_quantity']) {
+      //   params.quantity = params[params.big_data_zone+'_quantity']
+      //   delete params[params.big_data_zone+'_quantity']
+      // }
+      // if (params[params.big_data_zone+'_area']) {
+      //   params.area = params[params.big_data_zone+'_area']
+      //   delete params[params.big_data_zone+'_area']
+      // }
+      this.formData = [
+        { label: '成交日期', key: 'data_time', class: 'c-2', type: 'datePicker', rules: 1, type2: 'date'},
+        { label: '类型', key: 'big_data_type', class: 'c-2', rules: 1, type: 'select', options: this.$dictData.big_data_type },
+        // { label: '区域', key: 'big_data_zone', rules: 1, type: 'select', options: this.$dictData.big_data_zone },
+        // { label: '销售数量', key: 'quantity', class: 'c-2', rules: 1 },
+        // { label: '销售面积', key: 'area', class: 'c-2', rules: 1 },
+      ]
+      const zone = this.$dictData.big_data_zone || []
+      console.log(zone)
+      zone.forEach(item => {
+        this.formData.push({ label: item.key+'销售数量', key: item.val+'_quantity', class: 'c-2', rules: 1, type: 'input' })
+        this.formData.push({ label: item.key+'销售面积', key: item.val+'_area', class: 'c-2', rules: 1, type: 'input' })
+      })
+      this.setDefaultValue(params)
+    },
+    close(str) {
+      if (str === 'confirm') {
+        this.$refs['ruleForm'].$refs['baseForm'].validate((valid) => {
+          if (valid) {
+            const oldform = this.$refs.ruleForm.baseForm
+            let newForm = { ...oldform }
+            // if (newForm.quantity) {
+            //   newForm[newForm.big_data_zone+'_quantity'] = newForm.quantity
+            //   delete newForm.quantity
+            // }
+            // if (newForm.area) {
+            //   newForm[newForm.big_data_zone+'_area'] = newForm.area
+            //   delete newForm.area
+            // }
+            let apiStr = 'admbigdataquantityadd'
+            if (this.curObj.id) {
+              apiStr = 'admbigdataquantityedit'
+              newForm.id = this.curObj.id
+            }
+            this.$api.facility[apiStr](newForm).then(data => {
+              this.$msgs(this.curObj.id ? '编辑成功' : '新增成功')
+              this.$emit('close', newForm)
+            })
+          }
+        })
+      } else {
+        this.$emit('close')
+        this.setDefaultValue()
+      }
+    },
+  }
+}
+</script>
+<style lang="scss" scoped>
+@import "../../../../styles/libEdit.scss";
+.lib-edit {
+  padding-top: 0;
+  width:100%;
+  ::v-deep .el-form-item {
+    margin-bottom: 10px;
+  }
+  ::v-deep .el-date-editor.el-input {
+    width: 100%;
+  }
+}
+</style>

+ 40 - 0
src/views/bigdata/components/searchForm/Bigdata.vue

@@ -0,0 +1,40 @@
+<template>
+  <base-form slot="content" ref="ruleForm" :data="searchData">
+    <div slot="footer">
+      <el-button :loading="listLoading" icon="el-icon-search" class="xl-form-btn bgc1" @click="searchHandle">查询</el-button>
+    </div>
+  </base-form>
+</template>
+<script>
+export default {
+  mixins,
+  props: {
+    listLoading: Boolean
+  },
+  inject: ['parentData'],
+  data() {
+    return {
+      searchData: []
+    }
+  },
+  mounted () {
+    this.getDef()
+  },
+  methods: {
+    searchHandle() {
+      const oldform = this.$refs.ruleForm.baseForm
+      const newForm = { ...oldform }
+      this.$emit('change', newForm)
+    },
+    getDef () {
+      let params = { ...this.$refs.ruleForm.baseForm }
+      params.big_data_type = "xf"
+      this.searchData = [
+        { label: '类型', key: 'big_data_type', type: 'select', options: this.$dictData.big_data_type},
+        { label: '区域', key: 'big_data_zone', type: 'select', options: this.$dictData.big_data_zone},
+      ]
+      this.setDefaultValue(params, 'searchData')
+    },
+  }
+}
+</script>

+ 118 - 0
src/views/bigdata/list.vue

@@ -0,0 +1,118 @@
+<template>
+  <div class="app-container">
+    <search-form
+      :list-loading="listLoading"
+      @change="searchHandle"
+    />
+    <table-list
+      :list-loading="listLoading"
+      :data="tableData2"
+      :columns="listConfig"
+      :current-page="currentPage"
+      :page-size="pageSize"
+      :total-records="totalRecords"
+      @currentChange="pageHandle"
+      @sizeChange="sizeChange"
+      :isAdd="true"
+      @add="openPopup"
+    />
+    <bigdata-edit
+      :isShow="isDtlShow"
+      :curObj="curObj"
+      @close="closePopup"
+    />
+  </div>
+</template>
+<script>
+import { arrToObj } from '@/utils'
+import SearchForm from './components/searchForm/Bigdata'
+import BigdataEdit from './components/popup/BigdataEdit'
+import baseTable from '_m/baseTable.js'
+export default {
+  name: 'list',
+  components: {
+    SearchForm,
+    BigdataEdit
+  },
+  provide() {
+    return {
+      parentData: this
+    }
+  },
+  mixins: [baseTable],
+  data() {
+    return {
+      apiStr: 'facility.admbigdataquantitylist',
+      searchForm: null,
+      isDtlShow: false,
+      curObj: {},
+      noCreated: true,
+      monthNum: 1,
+    }
+  },
+  created() {
+    this.searchForm = {
+      big_data_type: 'xf',
+    }
+    this.fetchData()
+  },
+  computed: {
+    tableData2() {
+      const arr = [...this.tableData]
+      arr.map(item => {
+        // item.curRate = Number(item.month_integral / this.monthNum * 100).toFixed(2) + '%'
+      })
+      return arr
+    }
+  },
+  mounted() {
+    this.listConfig = {
+      rows: [
+        { label: '数据日期', prop: 'data_time' },
+        { label: '数据日期', prop: 'big_data_type', type: 'flag', flags: arrToObj(this.$dictData.big_data_type	) },
+        { label: '更新人', prop: 'update_by' },
+        
+        { label: '操作', width: 80, type: 'handle2', operations:
+          [
+            { label: '编辑', func: this.openPopup, btnType: 'primary' },
+          ]
+        }
+      ]
+    }
+    const zone = this.$dictData.big_data_zone || []
+    zone.forEach(item => {
+      this.listConfig.rows.push({ label: item.key+'销售数量', prop: item.val+'_quantity' })
+      this.listConfig.rows.push({ label: item.key+'销售面积', prop: item.val+'_area' })
+    })
+  },
+  methods: {
+    getMoreData (res) {
+      this.monthNum = res.month_num || 1
+    },
+    delHandle(row) {
+      this.$msg(`您确定要删除该规则吗?`, 'confirm', () => {
+        this.$api.user.admsaleuserdel({
+          id: row.id
+        }).then(data => {
+          this.$msgs(`已删除!`)
+          this.fetchData()
+        })
+      }, null, true)
+    },
+    openPopup(row) {
+      if (row && row.id) {
+        this.curObj = row
+      } else {
+        this.curObj = {}
+      }
+      this.isDtlShow = true
+    },
+    closePopup(obj) {
+      this.isDtlShow = false
+      if (obj) {
+        this.fetchData()
+      }
+    }
+  }
+}
+</script>

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません