@ailaw/venus 0.3.11 → 0.3.12
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.
- package/dist/venus.es.js +36 -19
- package/package.json +1 -1
package/dist/venus.es.js
CHANGED
|
@@ -17,8 +17,8 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, ref as ref$1, watch, computed, toRefs as toRefs$1, onMounted } from "vue-demi";
|
|
21
|
-
import { Select, Modal, Form, Input, Checkbox, Divider, Button, Tag, Tooltip, Upload, Row, Col, Radio, Table, Badge, message } from "ant-design-vue";
|
|
20
|
+
import { defineComponent, ref as ref$1, watch, computed, toRefs as toRefs$1, shallowRef, onMounted } from "vue-demi";
|
|
21
|
+
import { Select, Modal, Form, Input, Checkbox, Divider, Button, Tag, Tooltip, Upload, Row, Col, Radio, Table, Badge, Card, message } from "ant-design-vue";
|
|
22
22
|
import { useQuery, useResult, useMutation } from "@vue/apollo-composable";
|
|
23
23
|
import gql from "graphql-tag";
|
|
24
24
|
import { path, uniqBy, prop } from "ramda";
|
|
@@ -2412,7 +2412,6 @@ var __vue2_script$4 = defineComponent({
|
|
|
2412
2412
|
},
|
|
2413
2413
|
addedTasks: {
|
|
2414
2414
|
type: Array,
|
|
2415
|
-
required: true,
|
|
2416
2415
|
default: () => []
|
|
2417
2416
|
},
|
|
2418
2417
|
lawFirmId: {
|
|
@@ -2436,8 +2435,8 @@ var __vue2_script$4 = defineComponent({
|
|
|
2436
2435
|
refetch,
|
|
2437
2436
|
dataSource,
|
|
2438
2437
|
pagination,
|
|
2439
|
-
changePagination,
|
|
2440
2438
|
AssigneeTypesText,
|
|
2439
|
+
changePagination,
|
|
2441
2440
|
addTask,
|
|
2442
2441
|
editTask,
|
|
2443
2442
|
removeTask
|
|
@@ -2450,12 +2449,12 @@ var render$4 = function() {
|
|
|
2450
2449
|
var _c = _vm._self._c || _h;
|
|
2451
2450
|
return _c("div", [_vm._t("default", function() {
|
|
2452
2451
|
return [_c("task-table-pure", { attrs: { "loading": _vm.loading, "data-source": _vm.dataSource, "pagination": _vm.pagination, "added-tasks": _vm.addedTasks }, on: { "editTask": _vm.editTask, "addTask": _vm.addTask, "removeTask": _vm.removeTask, "changePagination": _vm.changePagination } })];
|
|
2453
|
-
}, { "
|
|
2452
|
+
}, { "loading": _vm.loading, "dataSource": _vm.dataSource, "pagination": _vm.pagination, "AssigneeTypesText": _vm.AssigneeTypesText, "changePagination": _vm.changePagination })], 2);
|
|
2454
2453
|
};
|
|
2455
2454
|
var staticRenderFns$4 = [];
|
|
2456
2455
|
var TaskTable_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2457
2456
|
const __cssModules$4 = {};
|
|
2458
|
-
var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "
|
|
2457
|
+
var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "5c367cce", null, null);
|
|
2459
2458
|
function __vue2_injectStyles$4(context) {
|
|
2460
2459
|
for (let o in __cssModules$4) {
|
|
2461
2460
|
this[o] = __cssModules$4[o];
|
|
@@ -2469,7 +2468,6 @@ var __vue2_script$3 = defineComponent({
|
|
|
2469
2468
|
components: {
|
|
2470
2469
|
TaskTable,
|
|
2471
2470
|
TaskTemplateFilter,
|
|
2472
|
-
AntModal: Modal,
|
|
2473
2471
|
AntButton: Button,
|
|
2474
2472
|
AntBadge: Badge
|
|
2475
2473
|
},
|
|
@@ -2489,15 +2487,21 @@ var __vue2_script$3 = defineComponent({
|
|
|
2489
2487
|
taskSettingPageUrl: {
|
|
2490
2488
|
type: String,
|
|
2491
2489
|
required: true
|
|
2490
|
+
},
|
|
2491
|
+
showPage: {
|
|
2492
|
+
type: Boolean,
|
|
2493
|
+
default: false
|
|
2492
2494
|
}
|
|
2493
2495
|
},
|
|
2494
|
-
setup() {
|
|
2496
|
+
setup(props) {
|
|
2495
2497
|
const taskTable = ref$1(null);
|
|
2496
2498
|
const conditions = useSearchTaskConditions();
|
|
2499
|
+
const currentComponent = shallowRef(props.showPage ? Card : Modal);
|
|
2497
2500
|
return {
|
|
2498
2501
|
taskTable,
|
|
2499
2502
|
conditions,
|
|
2500
|
-
AssigneeTypes
|
|
2503
|
+
AssigneeTypes,
|
|
2504
|
+
currentComponent
|
|
2501
2505
|
};
|
|
2502
2506
|
}
|
|
2503
2507
|
});
|
|
@@ -2505,7 +2509,7 @@ var render$3 = function() {
|
|
|
2505
2509
|
var _vm = this;
|
|
2506
2510
|
var _h = _vm.$createElement;
|
|
2507
2511
|
var _c = _vm._self._c || _h;
|
|
2508
|
-
return _c("
|
|
2512
|
+
return _c(_vm.currentComponent, { tag: "component", staticClass: "task-cart-main-modal", attrs: { "zIndex": 800, "width": 900, "visible": _vm.visible, "title": _vm.showPage ? _vm.$t("message.tasks") : _vm.$t("message.addTask") }, on: { "cancel": function($event) {
|
|
2509
2513
|
return _vm.$emit("update:visible", false);
|
|
2510
2514
|
} }, scopedSlots: _vm._u([{ key: "footer", fn: function() {
|
|
2511
2515
|
return [_c("ant-button", { staticStyle: { "margin-right": "20px" }, on: { "click": function($event) {
|
|
@@ -2513,7 +2517,7 @@ var render$3 = function() {
|
|
|
2513
2517
|
} } }, [_vm._v("Cancel ")]), _c("ant-badge", { attrs: { "count": _vm.addedTasks.length } }, [_c("ant-button", { attrs: { "disabled": _vm.addedTasks.length === 0, "type": "primary" }, on: { "click": function($event) {
|
|
2514
2518
|
return _vm.$emit("update:reviewModalVisible", true);
|
|
2515
2519
|
} } }, [_vm._v(" " + _vm._s(_vm.$t("message.reviewTasks")) + " ")])], 1)];
|
|
2516
|
-
}, proxy: true }]) }, [_c("task-template-filter", { attrs: { "show-task-home-page-link": true, "task-setting-page-url": _vm.taskSettingPageUrl, "conditions": _vm.conditions }, on: { "update:conditions": function($event) {
|
|
2520
|
+
}, proxy: true }]) }, [_c("task-template-filter", { attrs: { "show-task-home-page-link": true, "task-setting-page-url": _vm.taskSettingPageUrl, "conditions": _vm.conditions, "inline": !!_vm.showPage }, on: { "update:conditions": function($event) {
|
|
2517
2521
|
_vm.conditions = $event;
|
|
2518
2522
|
}, "update:newTaskVisible": function($event) {
|
|
2519
2523
|
return _vm.$emit("update:newTaskVisible", true);
|
|
@@ -2523,12 +2527,18 @@ var render$3 = function() {
|
|
|
2523
2527
|
return _vm.$emit("update:tempTask", $event);
|
|
2524
2528
|
}, "update:newTaskVisible": function($event) {
|
|
2525
2529
|
return _vm.$emit("update:newTaskVisible", $event);
|
|
2526
|
-
} }
|
|
2530
|
+
} }, scopedSlots: _vm._u([{ key: "default", fn: function(ref2) {
|
|
2531
|
+
var loading = ref2.loading;
|
|
2532
|
+
var dataSource = ref2.dataSource;
|
|
2533
|
+
var pagination = ref2.pagination;
|
|
2534
|
+
var changePagination = ref2.changePagination;
|
|
2535
|
+
return [_vm._t("default", null, { "loading": loading, "dataSource": dataSource, "pagination": pagination, "changePagination": changePagination })];
|
|
2536
|
+
} }], null, true) })], 1);
|
|
2527
2537
|
};
|
|
2528
2538
|
var staticRenderFns$3 = [];
|
|
2529
2539
|
var MainModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2530
2540
|
const __cssModules$3 = {};
|
|
2531
|
-
var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "
|
|
2541
|
+
var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "68e5a76e", null, null);
|
|
2532
2542
|
function __vue2_injectStyles$3(context) {
|
|
2533
2543
|
for (let o in __cssModules$3) {
|
|
2534
2544
|
this[o] = __cssModules$3[o];
|
|
@@ -6356,6 +6366,10 @@ var __vue2_script$1 = defineComponent({
|
|
|
6356
6366
|
allowClear: {
|
|
6357
6367
|
type: Boolean,
|
|
6358
6368
|
default: false
|
|
6369
|
+
},
|
|
6370
|
+
pageMode: {
|
|
6371
|
+
type: Boolean,
|
|
6372
|
+
default: false
|
|
6359
6373
|
}
|
|
6360
6374
|
},
|
|
6361
6375
|
setup(props, { emit }) {
|
|
@@ -6393,7 +6407,6 @@ var __vue2_script$1 = defineComponent({
|
|
|
6393
6407
|
} = await submit(record, updateTemplate, createTemplate);
|
|
6394
6408
|
if (success) {
|
|
6395
6409
|
newTaskVisible.value = false;
|
|
6396
|
-
message.success("Success!");
|
|
6397
6410
|
mainModal.value.taskTable.refetch();
|
|
6398
6411
|
if (reviewModalVisible.value) {
|
|
6399
6412
|
const newValue = addedTasks.value.map((originTask) => {
|
|
@@ -6404,8 +6417,6 @@ var __vue2_script$1 = defineComponent({
|
|
|
6404
6417
|
});
|
|
6405
6418
|
emit("update:value", newValue.map(({ id }) => id));
|
|
6406
6419
|
}
|
|
6407
|
-
} else {
|
|
6408
|
-
message.error("Failed!");
|
|
6409
6420
|
}
|
|
6410
6421
|
};
|
|
6411
6422
|
const submitting = computed(() => updateTemplate.loading.value || createTemplate.loading.value);
|
|
@@ -6425,7 +6436,7 @@ var render$1 = function() {
|
|
|
6425
6436
|
var _vm = this;
|
|
6426
6437
|
var _h = _vm.$createElement;
|
|
6427
6438
|
var _c = _vm._self._c || _h;
|
|
6428
|
-
return _c("div", { attrs: { "id": "venus-component-task-cart" } }, [_c("main-modal", { ref: "mainModal", attrs: { "task-setting-page-url": _vm.taskSettingPageUrl, "tempTask": _vm.tempTask, "newTaskVisible": _vm.newTaskVisible, "reviewModalVisible": _vm.reviewModalVisible, "added-tasks": _vm.addedTasks, "law-firm-id": _vm.lawFirmId, "visible": _vm.visible }, on: { "update:tempTask": function($event) {
|
|
6439
|
+
return _c("div", { attrs: { "id": "venus-component-task-cart" } }, [_c("main-modal", { ref: "mainModal", attrs: { "task-setting-page-url": _vm.taskSettingPageUrl, "tempTask": _vm.tempTask, "newTaskVisible": _vm.newTaskVisible, "reviewModalVisible": _vm.reviewModalVisible, "added-tasks": _vm.addedTasks, "law-firm-id": _vm.lawFirmId, "visible": _vm.visible, "show-page": _vm.pageMode }, on: { "update:tempTask": function($event) {
|
|
6429
6440
|
_vm.tempTask = $event;
|
|
6430
6441
|
}, "update:temp-task": function($event) {
|
|
6431
6442
|
_vm.tempTask = $event;
|
|
@@ -6443,7 +6454,13 @@ var render$1 = function() {
|
|
|
6443
6454
|
_vm.addedTasks = $event;
|
|
6444
6455
|
}, "update:visible": function($event) {
|
|
6445
6456
|
return _vm.$emit("update:visible", $event);
|
|
6446
|
-
} }
|
|
6457
|
+
} }, scopedSlots: _vm._u([{ key: "default", fn: function(ref2) {
|
|
6458
|
+
var loading = ref2.loading;
|
|
6459
|
+
var dataSource = ref2.dataSource;
|
|
6460
|
+
var pagination = ref2.pagination;
|
|
6461
|
+
var changePagination = ref2.changePagination;
|
|
6462
|
+
return [_vm._t("table", null, { "loading": loading, "dataSource": dataSource, "pagination": pagination, "changePagination": changePagination })];
|
|
6463
|
+
} }], null, true) }), _c("review-modal", { ref: "reviewModal", attrs: { "tempTask": _vm.tempTask, "visible": _vm.reviewModalVisible, "newTaskVisible": _vm.newTaskVisible, "added-tasks": _vm.addedTasks, "review-text": _vm.reviewText, "showSendEmail": _vm.showSendEmail, "sendEmail": _vm.sendEmail, "allow-clear": _vm.allowClear }, on: { "update:tempTask": function($event) {
|
|
6447
6464
|
_vm.tempTask = $event;
|
|
6448
6465
|
}, "update:temp-task": function($event) {
|
|
6449
6466
|
_vm.tempTask = $event;
|
|
@@ -6470,7 +6487,7 @@ var render$1 = function() {
|
|
|
6470
6487
|
var staticRenderFns$1 = [];
|
|
6471
6488
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
6472
6489
|
const __cssModules$1 = {};
|
|
6473
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "
|
|
6490
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "4c4a1b88", null, null);
|
|
6474
6491
|
function __vue2_injectStyles$1(context) {
|
|
6475
6492
|
for (let o in __cssModules$1) {
|
|
6476
6493
|
this[o] = __cssModules$1[o];
|