- 新增 PDF 文档支持,包括格式校验和完整性检查 - 扩展 Word、TXT 和 ZIP 格式附件处理能力 - 添加 Excel 附件可选择仅作为业务文件不解析行数据 - 实现业务助手表格布局配置新增库存和预算字段 - 集成通知、反馈通知等新的业务助手动作类型 - 完善部门管理包含父级部门和排序字段支持 - 增强业务规则校验涵盖更多系统管理场景 - 优化附件上传限制提示信息更准确 - 添加生成文件下载的安全性校验机制 - 扩展测试覆盖确保各业务动作规则正确性
22 lines
2.2 KiB
JavaScript
22 lines
2.2 KiB
JavaScript
import { createApp, ref, watch, onMounted, nextTick } from 'vue'
|
|
import { compile } from 'vue/dist/vue.esm-bundler.js'
|
|
import { createPinia } from 'pinia'
|
|
import ElementPlus from 'element-plus'
|
|
import 'element-plus/dist/index.css'
|
|
import Field from '../../src/components/BusinessAssistant/AssistantField.vue'
|
|
import CronResult from '../../src/components/Crontab/result.vue'
|
|
import { lookups, finishLookup } from 'virtual:audit-network'
|
|
import router from 'virtual:audit-router'
|
|
import tab from '../../src/plugins/tab.js'
|
|
async function start(){
|
|
await router.push({path:'/warehouse/stock',query:{projectId:'1'},hash:'#row-3'})
|
|
createApp({
|
|
components:{Field,CronResult},
|
|
setup(){return {lookups}},
|
|
data:()=>({expression:'0/15 * * * * ?',row:{_rowId:'line-a',itemId:null},field:{key:'itemId',type:'reference',ref:'item',label:'物品'},ticks:0,refreshes:0}),
|
|
methods:{finishLookup,switchRow(){this.row={_rowId:this.row._rowId==='line-a'?'line-b':'line-a',itemId:null}},async refresh(){if(await tab.refreshPage())this.refreshes++}},
|
|
render:compile(`<main style="padding:24px;max-width:1000px;font:15px sans-serif"><h1>正式构建:循环与 AI 回归</h1><p>隔离测试:使用真实组件,网络返回可控,不调用业务接口。</p><section><h2>定时表达式安全预览</h2><input aria-label="定时表达式" v-model="expression" style="width:360px;padding:8px"/><CronResult :ex="expression"/><button @click="ticks++">测试页面响应</button><span>响应计数 {{ticks}}</span></section><section style="margin-top:24px"><h2>AI 候选项延迟与行切换</h2><p>当前行 {{row._rowId}} · 尚未返回 {{lookups.length}} 项</p><Field action="bom.update" :field="field" :row="row" @change="event=>row={...row,[event.key]:event.value}"/><button @click="switchRow">切换至另一行</button><button :disabled="!lookups.length" @click="finishLookup">返回最早的搜索结果</button></section><section style="margin-top:24px"><h2>页面刷新(内存路由)</h2><p>当前路由 {{$route.fullPath}} · 刷新成功 {{refreshes}} 次</p><button @click="refresh">刷新测试页面</button><router-view/></section></main>`)
|
|
}).use(createPinia()).use(router).use(ElementPlus).mount('#app')
|
|
}
|
|
start()
|