-- <el-button type="primary" @click="onSave">保存</el-button> <el-button type="danger" @click="closePage">取消</el-button> --> </template> import { getWorkList } from '@/api/dataSchema' import { updateData } from '@/api/conversion' import { Message, MessageBox } from...
15. 3.3.4 判断list集合长度:<#if (workList?size == 0 )></#if> 3.3.5 判断list集合是否到达最后一条:<#if work_has_next></#if> 4.生成doc文件并上传到文件服务器 //1、生成template模板,一共有三种方式,我通过的是获取web项目上下文去获取 try { Configuration configuration = new Configuration()...
<template><el-form label-width="80px" label-position="left"><el-form-item label="模型树"><el-treeref="tree":data="treeData"show-checkbox:default-expand-all="false"node-key="id"highlight-current:props="defaultProps"/></el-form-item></el-form><el-button type="primary" @click="onSa...
Microsoft.Office.Interop.Excel.XlPlatform.xlWindows,"\t",true,false,0,true,1,0);//xlWorkBook = xlApp.Workbooks.Open(templatePath, ReadOnly:false, Editable:true );xlWorkSheet = (ComExcel.Worksheet)xlWorkBook.Worksheets.get_Item(1);
data = data.concat(XLSX.utils.sheet_to_json(workList.Sheets[sheet])); // break; // 如果只取第一张表,就取消注释这行 } } // 最终获取到并且格式化后的 json 数据 const tableData = data.map((item) => { return { id: Number(item["序号"]), ...
sql_worklist.append("WHERE w.fault_id = ? "); for(Map<String,Object>fault_info:fault_list){ List<Map<String,Object>> worklist_list = new ArrayList<Map<String,Object>>(); worklist_list= jdbcTemplate.queryForList(sql_worklist.toString(),new Object[]{fault_info.get("id").toString()});...