@ailaw/venus 0.3.17 → 0.3.18

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.
Files changed (2) hide show
  1. package/dist/venus.es.js +14 -22
  2. package/package.json +1 -1
package/dist/venus.es.js CHANGED
@@ -2354,8 +2354,7 @@ var useTaskActions = (addedTasks, emit) => {
2354
2354
  const taskToAdd = {
2355
2355
  taskTemplateObj: record
2356
2356
  };
2357
- emit("update:tempTask", taskToAdd);
2358
- emit("update:newTaskVisible", true);
2357
+ emit("editTask", taskToAdd);
2359
2358
  };
2360
2359
  const removeTask = (record) => emit("update:addedTasks", addedTasks.value.filter(({ id }) => id !== record.id));
2361
2360
  return {
@@ -2379,7 +2378,7 @@ var useTaskTemplateTableData = (props, emit) => {
2379
2378
  total: 0
2380
2379
  });
2381
2380
  const { conditions = useSearchTaskConditions(), addedTasks = ref$1([]) } = toRefs$1(props);
2382
- const { result, loading, refetch, variables } = useSearchTaskTemplates(initialPagination, conditions, props.lawFirmId);
2381
+ const { result, loading, variables } = useSearchTaskTemplates(initialPagination, conditions, props.lawFirmId);
2383
2382
  const dataSource = computed(() => {
2384
2383
  var _a;
2385
2384
  return ((_a = result.value) == null ? void 0 : _a.taskTemplateSearch.taskTemplateList) || [];
@@ -2404,7 +2403,6 @@ var useTaskTemplateTableData = (props, emit) => {
2404
2403
  dataSource,
2405
2404
  result,
2406
2405
  loading,
2407
- refetch,
2408
2406
  conditions,
2409
2407
  addedTasks,
2410
2408
  variables
@@ -2435,7 +2433,6 @@ var __vue2_script$4 = defineComponent({
2435
2433
  setup(props, { emit }) {
2436
2434
  const {
2437
2435
  loading,
2438
- refetch,
2439
2436
  dataSource,
2440
2437
  pagination,
2441
2438
  variables,
@@ -2446,7 +2443,6 @@ var __vue2_script$4 = defineComponent({
2446
2443
  } = useTaskTemplateTableData(props, emit);
2447
2444
  return {
2448
2445
  loading,
2449
- refetch,
2450
2446
  dataSource,
2451
2447
  pagination,
2452
2448
  AssigneeTypesText,
@@ -2469,7 +2465,7 @@ var render$4 = function() {
2469
2465
  var staticRenderFns$4 = [];
2470
2466
  var TaskTable_vue_vue_type_style_index_0_scoped_true_lang = "";
2471
2467
  const __cssModules$4 = {};
2472
- var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "36a91f4e", null, null);
2468
+ var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "7b828978", null, null);
2473
2469
  function __vue2_injectStyles$4(context) {
2474
2470
  for (let o in __cssModules$4) {
2475
2471
  this[o] = __cssModules$4[o];
@@ -2518,7 +2514,7 @@ var __vue2_script$3 = defineComponent({
2518
2514
  const conditions = useSearchTaskConditions();
2519
2515
  const currentComponent = shallowRef(props.showPage ? Card : Modal);
2520
2516
  const editAction = (record) => {
2521
- emit("edit", record);
2517
+ emit("editTask", record);
2522
2518
  };
2523
2519
  const getVariables = () => taskTable.value.variables;
2524
2520
  return {
@@ -2549,10 +2545,8 @@ var render$3 = function() {
2549
2545
  return _vm.$emit("update:newTaskVisible", true);
2550
2546
  } } }), _c("task-table", { ref: "taskTable", attrs: { "conditions": _vm.conditions, "added-tasks": _vm.addedTasks, "law-firm-id": _vm.lawFirmId, "page-size": _vm.pageSize }, on: { "update:addedTasks": function($event) {
2551
2547
  return _vm.$emit("update:addedTasks", $event);
2552
- }, "update:tempTask": function($event) {
2553
- return _vm.$emit("update:tempTask", $event);
2554
- }, "update:newTaskVisible": function($event) {
2555
- return _vm.$emit("update:newTaskVisible", $event);
2548
+ }, "editTask": function($event) {
2549
+ return _vm.$emit("editTask", $event);
2556
2550
  } }, scopedSlots: _vm._u([{ key: "default", fn: function(ref2) {
2557
2551
  var loading = ref2.loading;
2558
2552
  var dataSource = ref2.dataSource;
@@ -2564,7 +2558,7 @@ var render$3 = function() {
2564
2558
  var staticRenderFns$3 = [];
2565
2559
  var MainModal_vue_vue_type_style_index_0_scoped_true_lang = "";
2566
2560
  const __cssModules$3 = {};
2567
- var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "08dd7b2c", null, null);
2561
+ var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "b2f78f98", null, null);
2568
2562
  function __vue2_injectStyles$3(context) {
2569
2563
  for (let o in __cssModules$3) {
2570
2564
  this[o] = __cssModules$3[o];
@@ -2616,7 +2610,7 @@ var __vue2_script$2 = defineComponent({
2616
2610
  const pagination = ref$1({
2617
2611
  total: addedTasks.value.length,
2618
2612
  current: 1,
2619
- pageSize: 6
2613
+ pageSize: 10
2620
2614
  });
2621
2615
  const changePagination = (newPagination) => {
2622
2616
  pagination.value = newPagination;
@@ -2655,7 +2649,7 @@ var render$2 = function() {
2655
2649
  var staticRenderFns$2 = [];
2656
2650
  var ReviewModal_vue_vue_type_style_index_0_scoped_true_lang = "";
2657
2651
  const __cssModules$2 = {};
2658
- var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "3f8e3a92", null, null);
2652
+ var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "09e3f3ca", null, null);
2659
2653
  function __vue2_injectStyles$2(context) {
2660
2654
  for (let o in __cssModules$2) {
2661
2655
  this[o] = __cssModules$2[o];
@@ -2856,14 +2850,12 @@ var __vue2_script$1 = defineComponent({
2856
2850
  }
2857
2851
  };
2858
2852
  const submitting = computed(() => updateTemplate.loading.value || createTemplate.loading.value);
2859
- const showEdit = (record) => {
2853
+ const editTask = (record) => {
2860
2854
  newTaskVisible.value = true;
2861
- tempTask.value = {
2862
- taskTemplateObj: __spreadValues({}, record)
2863
- };
2855
+ tempTask.value = __spreadValues({}, record);
2864
2856
  };
2865
2857
  return {
2866
- showEdit,
2858
+ editTask,
2867
2859
  mainModal,
2868
2860
  reviewModal,
2869
2861
  _submit,
@@ -2895,7 +2887,7 @@ var render$1 = function() {
2895
2887
  _vm.reviewModalVisible = $event;
2896
2888
  }, "update:review-modal-visible": function($event) {
2897
2889
  _vm.reviewModalVisible = $event;
2898
- }, "edit": _vm.showEdit, "update:visible": function($event) {
2890
+ }, "editTask": _vm.editTask, "update:visible": function($event) {
2899
2891
  return _vm.$emit("update:visible", $event);
2900
2892
  } }, scopedSlots: _vm._u([{ key: "default", fn: function(ref2) {
2901
2893
  var loading = ref2.loading;
@@ -2930,7 +2922,7 @@ var render$1 = function() {
2930
2922
  var staticRenderFns$1 = [];
2931
2923
  var index_vue_vue_type_style_index_0_scoped_true_lang = "";
2932
2924
  const __cssModules$1 = {};
2933
- var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "21942322", null, null);
2925
+ var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "57002a5a", null, null);
2934
2926
  function __vue2_injectStyles$1(context) {
2935
2927
  for (let o in __cssModules$1) {
2936
2928
  this[o] = __cssModules$1[o];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ailaw/venus",
3
- "version": "0.3.17",
3
+ "version": "0.3.18",
4
4
  "files": [
5
5
  "dist"
6
6
  ],