pxb 2 semanas atrás
pai
commit
904a1378aa

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/index.html


+ 0 - 1
dist/static/css/chunk-2509bb26.3f6f78d1.css

@@ -1 +0,0 @@
-[data-v-4dec6428] .custom-game-col .cell{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/chunk-32c60dd9.36d922e6.css


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/chunk-4acdc711.b59d9457.css


+ 0 - 1
dist/static/css/chunk-cefe524a.8b8af15c.css

@@ -1 +0,0 @@
-.new-app-container[data-v-5246ce21]{height:calc(100vh - 100px);background:#fff;padding:20px;margin:20px;-webkit-box-sizing:border-box;box-sizing:border-box;width:calc(100% - 40px);border-radius:6px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.search-form[data-v-5246ce21]{margin-bottom:10px}.action-bar[data-v-5246ce21]{margin-bottom:15px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.tip-text[data-v-5246ce21]{font-size:12px;color:#e6a23c;margin-left:10px}.table-wrapper[data-v-5246ce21]{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden}.pagination-wrapper[data-v-5246ce21]{margin-top:15px;text-align:right}[data-v-5246ce21] .el-table th.el-table__cell{background-color:#f5f7fa}

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/chunk-e6e3e172.2b76a0dc.css


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-elementUI.48582ac9.js


+ 17 - 6
src/views/balance/log/index.vue

@@ -301,12 +301,23 @@ export default {
     onResponse(data) {
       console.log(data, 'data')
       this.alertTip = '统计数据:' + data.total_amount
-      this.searchForm[2].options = []
-      data.change_types.forEach((e) => {
-        this.searchForm[2].options.push({
-          label: e,
-          value: e
-        })
+      // 合并接口 change_types 与列表数据中实际出现的类型,避免下拉框缺项
+      // 需在 nextTick 读取,因为 YMTable 先 emit onResponse 再赋值 listData
+      this.$nextTick(() => {
+        const changeTypes = Array.isArray(data.change_types) ? [...data.change_types] : []
+        const listData = this.$refs.table ? this.$refs.table.listData : []
+        if (Array.isArray(listData)) {
+          listData.forEach((r) => {
+            if (r.change_type && !changeTypes.includes(r.change_type)) {
+              changeTypes.push(r.change_type)
+            }
+          })
+        }
+        // 按 prop 定位「类型」下拉框,填充 change_types 选项
+        const typeItem = this.searchForm.find(item => item.prop === 'change_type')
+        if (typeItem) {
+          typeItem.options = changeTypes.map((e) => ({ label: e, value: e }))
+        }
       })
     },
     onValueChange(val) {

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff