浏览代码

发正式版前,请先在index.html里移除webfunny.js,测试服的异常查看:http://192.168.0.109:8010/

ZaiZai 1 年之前
父节点
当前提交
d774a77ce9
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 3 1
      src/global/components/table-form/index.vue
  2. 1 1
      src/plugins/HTableForm.js

+ 3 - 1
src/global/components/table-form/index.vue

@@ -293,7 +293,7 @@ const setPasteKeyList = async (event) => {
             await setSingleCopyValue(checkList, keysList)
         }
         //复制单个粘贴
-        if (checkList.length === 1 && keysList.length > 1) {
+        if (checkList.length === 1 && keysList.length >= 1) {
             await setCopySingleValue(checkList, keysList)
         }
         //清除缓存
@@ -311,6 +311,8 @@ const setCopySingleValue = async (checkList, keysList) => {
         form_val = form_val ? form_val + '、' + val : val
         keys.splice(0, 1) //删除第一个元素
     }
+    console.log('key', key)
+    console.log('form_val', form_val)
     await setTableFormInfoValue(key, form_val)
     HTableForm.setCheckKeyStyle(key, activeKey.value, true)
 }

+ 1 - 1
src/plugins/HTableForm.js

@@ -1,6 +1,6 @@
 import { createApp } from 'vue/dist/vue.esm-bundler.js'
 import { getTokenHeader } from '~src/api/request/header'
-import { isArray, isNullES, toParse } from 'js-fast-way'
+import { isArray, toParse } from 'js-fast-way'
 
 //自定义组件或二次封装的组件
 import HcTableFormUpload from '~com/plugins/table-form/hc-form-upload.vue'