agilebuilder-ui 1.1.13-tmp4 → 1.1.13-tmp6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { openBlock as r, createElementBlock as t, createCommentVNode as o } from "vue";
2
- import { _ as s } from "./index-1a87600f.js";
2
+ import { _ as s } from "./index-c03eac61.js";
3
3
  const u = ["src"], f = s({ data: () => ({ src: null }), watch: { $route(n, c) {
4
4
  this.src = this.$route.query.src;
5
5
  } }, mounted() {
@@ -1,4 +1,4 @@
1
- import { _ as v, c as $, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-1a87600f.js";
1
+ import { _ as v, c as $, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-c03eac61.js";
2
2
  import { resolveComponent as m, openBlock as l, createBlock as b, withCtx as g, createVNode as w, TransitionGroup as L, createElementBlock as p, Fragment as T, renderList as C, createElementVNode as u, toDisplayString as y, createCommentVNode as f, normalizeClass as S } from "vue";
3
3
  const A = { class: "no-redirect" }, k = v({ name: "Breadcrumb", data: () => ({ levelList: null }), computed: { levelListWithTitle() {
4
4
  return this.levelList.filter((e) => e.meta.title !== void 0 && e.meta.title !== null);
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as t, openBlock as a, createElementBlock as s, createElementVNode as y, createVNode as l, withCtx as r, createTextVNode as n, toDisplayString as p, createCommentVNode as c, createBlock as h } from "vue";
2
- import { _ as I } from "./index-1a87600f.js";
2
+ import { _ as I } from "./index-c03eac61.js";
3
3
  const g = { style: { "padding-bottom": "10px" } }, k = { key: 0, class: "graphDiv" }, N = I({ name: "TacheSubprocessHistory", data: () => ({ type: "graph", workflowId: null }), created() {
4
4
  const o = this.$route.query.workflowId;
5
5
  o && (this.workflowId = parseInt(o));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agilebuilder-ui",
3
- "version": "1.1.13-tmp4",
3
+ "version": "1.1.13-tmp6",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -21,6 +21,8 @@ import {
21
21
  import eventBus from './eventBus'
22
22
  import { isPromise } from '../../../src/utils/common-util'
23
23
  import { updateWithPageValue } from '../../../src/utils/jump-page-utils'
24
+ import { getGuId } from '../../../src/utils/guid.js';
25
+
24
26
  const apis = {
25
27
  // 列表工具栏控件刷新列表数据。添加该方法解决工具栏值清空后,列表内容没有还原问题
26
28
  toolbarRefresh(parentRowIds, isLineEdit, toolbarFieldParam, isDeleteSubTableData) {
@@ -133,12 +135,13 @@ const apis = {
133
135
  // 新建行
134
136
  createRow(listCode, row, options) {
135
137
  return new Promise((resolve, reject) => {
138
+ debugger;
136
139
  if (!listCode) {
137
140
  listCode = store.get('_list_code')
138
141
  }
139
142
  const gridParams = store.get(listCode)
140
143
  const gridData = gridParams.gridData
141
- gridParams.superGrid.clearSort()
144
+ gridParams.superGrid?.clearSort?.()
142
145
  // console.log('创建行记录的条件1', gridParams.lineEdit)
143
146
  // console.log('创建行记录的条件2', gridParams.lineEdit.editable)
144
147
  // console.log('创建行记录的条件3', gridParams.loaded)
@@ -364,7 +367,10 @@ const apis = {
364
367
  }
365
368
  }
366
369
  }
367
- return row
370
+ return {
371
+ $rowDataGuId: getGuId(),
372
+ ...row,
373
+ }
368
374
  },
369
375
  // 设置默认值null
370
376
  setColumnsDefaultValue(allColumns, row, gridParams, getDefaultValueFunc) {
@@ -1005,7 +1011,7 @@ const apis = {
1005
1011
  }
1006
1012
  }
1007
1013
  if (gridParams.isMulitiSelect) {
1008
- gridParams.superGrid.clearSelection()
1014
+ gridParams.superGrid?.clearSelection?.()
1009
1015
  }
1010
1016
  gridParams.isCreateRow = false
1011
1017
  if (isRestore === undefined || !isRestore) {
@@ -1382,3 +1388,40 @@ const apis = {
1382
1388
  }
1383
1389
  }
1384
1390
  export default apis
1391
+
1392
+ export const apisMixin = {
1393
+ data() {
1394
+ return {
1395
+ toolbarFieldParam: null,
1396
+ showSearch: false,
1397
+ isMobile: false,
1398
+ baseURL: '',
1399
+ currentPage: 1,
1400
+ pageSize: 10,
1401
+ code: '',
1402
+ pageCode: '',
1403
+ jumpPageSetting: null,
1404
+ isShowPageDialog: false,
1405
+ gridData: [],
1406
+ subTableData: [],
1407
+ searchForm: [],
1408
+ options: {},
1409
+ lineEdit: null,
1410
+ loaded: false,
1411
+ configureObj: {},
1412
+ additionalParamMap: {},
1413
+ basicInfo: {},
1414
+ dynamicColumnInfo: {},
1415
+ $dataTypeMap: {},
1416
+ mainDefaultValueColumns: [],
1417
+ dynamicServiceName: '',
1418
+ isHasDynamic: false,
1419
+ isMulitiSelect: false,
1420
+ sql: false,
1421
+ restoreCurrentRowTimer: null
1422
+ };
1423
+ },
1424
+ methods: {
1425
+ ...apis
1426
+ }
1427
+ }