ZaiZai 2 жил өмнө
parent
commit
c526b07036

+ 8 - 0
src/api/modules/data-fill/wbs.js

@@ -57,6 +57,14 @@ export default {
             params: form
         },msg);
     },
+    //获取按键切换输入框的key列表
+    async getHtmlBussCols(form, msg = true) {
+        return httpApi({
+            url: '/api/blade-manager/exceltab/get-html-buss-cols',
+            method: 'get',
+            params: form
+        },msg);
+    },
     //填报页面数据保存
     async saveExcelBussData(form, msg = true) {
         return httpApi({

+ 3 - 4
src/plugins/HTableForm.js

@@ -20,7 +20,6 @@ const components = {
 
 //表单渲染
 export default class HTableForm {
-
     static createForm({template, tableForm, appId, onRight, onBlur}) {
         const _this = this;
         const app = createApp({
@@ -162,9 +161,9 @@ export default class HTableForm {
     }
 
     //计算上下左右快捷键的
-    static setKeyupData({target}, type, data) {
+    static setKeyupData({target}, type, keys) {
         const key = target.id
-        const keys = [
+        /*const keys = [
             ['key_15__3_1', 'key_16__3_3'],
             ['key_10__4_1', 'key_11__4_3'],
             ['key_13__5_1'],
@@ -181,7 +180,7 @@ export default class HTableForm {
             ['key_4__19_1', 'key_12__19_2'],
             ['key_21__21_0'],
             ['key_17__22_1', 'key_17__22_2'],
-        ]
+        ]*/
         //处理快捷键数据和事件
         if (key && type && isArray(keys)) {
             //计算当前的位置

+ 11 - 0
src/views/data-fill/components/ListItem.vue

@@ -533,6 +533,8 @@ const CollapseChange = async (name) => {
         if (!item.isTableFormRender) {
             //获取已填写的数据
             await getBussDataInfo(item,item.pkeyId, index)
+            //按键key列表
+            //await getHtmlBussColsApi(item.pkeyId)
             //渲染表单
             await getExcelHtml(item,index)
         }
@@ -542,6 +544,15 @@ const CollapseChange = async (name) => {
     }
 }
 
+//获取按键切换输入框的key列表
+const getHtmlBussColsApi = async (pkeyId) => {
+    const pkeyIds = pkeyId ? pkeyId + '' : ''
+    if (pkeyIds) {
+        const {error, code, data} = await wbsApi.getHtmlBussCols({pkeyId: pkeyIds}, false)
+        console.log(data)
+    }
+}
+
 //获取模板标签数据
 const formRegExpJson = ref({})
 const getExcelHtml = async (item,index) => {