@ailaw/venus 0.3.15 → 0.3.19
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 +122 -81
- package/package.json +1 -1
package/dist/venus.es.js
CHANGED
|
@@ -17,9 +17,9 @@ 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, shallowRef
|
|
20
|
+
import { defineComponent, ref as ref$1, watch, computed, toRefs as toRefs$1, shallowRef } from "vue-demi";
|
|
21
21
|
import { Select, Modal, Form, Input, Checkbox, Divider, Button, Tag, Tooltip, Upload, Row, Col, Radio, Table, Badge, Card, message } from "ant-design-vue";
|
|
22
|
-
import { useQuery, useResult, useMutation } from "@vue/apollo-composable";
|
|
22
|
+
import { useQuery, useResult, useMutation, useApolloClient } from "@vue/apollo-composable";
|
|
23
23
|
import gql from "graphql-tag";
|
|
24
24
|
import { path, uniqBy, prop } from "ramda";
|
|
25
25
|
import "vue";
|
|
@@ -2206,12 +2206,7 @@ var __vue2_script$5 = defineComponent({
|
|
|
2206
2206
|
},
|
|
2207
2207
|
pagination: {
|
|
2208
2208
|
type: Object,
|
|
2209
|
-
required: true
|
|
2210
|
-
default: {
|
|
2211
|
-
current: 0,
|
|
2212
|
-
pageSize: 6,
|
|
2213
|
-
total: 0
|
|
2214
|
-
}
|
|
2209
|
+
required: true
|
|
2215
2210
|
},
|
|
2216
2211
|
noEdit: {
|
|
2217
2212
|
type: Boolean,
|
|
@@ -2232,18 +2227,25 @@ var __vue2_script$5 = defineComponent({
|
|
|
2232
2227
|
key: "taskName",
|
|
2233
2228
|
scopedSlots: { customRender: "taskName" }
|
|
2234
2229
|
},
|
|
2230
|
+
{
|
|
2231
|
+
title: t("message.assignee"),
|
|
2232
|
+
dataIndex: "isEmployee",
|
|
2233
|
+
key: "isEmployee",
|
|
2234
|
+
width: 120,
|
|
2235
|
+
scopedSlots: { customRender: "isEmployee" }
|
|
2236
|
+
},
|
|
2235
2237
|
{
|
|
2236
2238
|
title: t("message.tag"),
|
|
2237
2239
|
dataIndex: "tagList",
|
|
2238
2240
|
key: "tagList",
|
|
2239
|
-
width:
|
|
2241
|
+
width: 120,
|
|
2240
2242
|
scopedSlots: { customRender: "tagList" }
|
|
2241
2243
|
},
|
|
2242
2244
|
{
|
|
2243
2245
|
title: "Operation",
|
|
2244
2246
|
dataIndex: "id",
|
|
2245
2247
|
key: "id",
|
|
2246
|
-
width:
|
|
2248
|
+
width: 210,
|
|
2247
2249
|
scopedSlots: { customRender: "operation" }
|
|
2248
2250
|
}
|
|
2249
2251
|
];
|
|
@@ -2261,7 +2263,9 @@ var render$5 = function() {
|
|
|
2261
2263
|
return _c("div", [_c("ant-table", { attrs: { "dataSource": _vm.dataSource, "rowKey": "id", "columns": _vm.columns, "pagination": _vm.pagination, "loading": _vm.loading }, on: { "change": function($event) {
|
|
2262
2264
|
return _vm.$emit("changePagination", $event);
|
|
2263
2265
|
} }, scopedSlots: _vm._u([{ key: "taskName", fn: function(text, record) {
|
|
2264
|
-
return _c("span", {}, [_c("span", { staticStyle: { "display": "inline-block", "width": "250px" } }, [_vm._v(_vm._s(text))])
|
|
2266
|
+
return _c("span", {}, [_c("span", { staticStyle: { "display": "inline-block", "width": "250px" } }, [_vm._v(_vm._s(text))])]);
|
|
2267
|
+
} }, { key: "isEmployee", fn: function(isEmployee) {
|
|
2268
|
+
return _c("span", {}, [_c("assignee-tag", { attrs: { "assignee-type": isEmployee } })], 1);
|
|
2265
2269
|
} }, { key: "tagList", fn: function(tags) {
|
|
2266
2270
|
return [_c("tags-with-tooltip", { attrs: { "tags": tags } })];
|
|
2267
2271
|
} }, { key: "operation", fn: function(_, record) {
|
|
@@ -2277,7 +2281,7 @@ var render$5 = function() {
|
|
|
2277
2281
|
var staticRenderFns$5 = [];
|
|
2278
2282
|
var TaskTablePure_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2279
2283
|
const __cssModules$5 = {};
|
|
2280
|
-
var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$5, staticRenderFns$5, false, __vue2_injectStyles$5, "
|
|
2284
|
+
var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$5, staticRenderFns$5, false, __vue2_injectStyles$5, "cbdc9a40", null, null);
|
|
2281
2285
|
function __vue2_injectStyles$5(context) {
|
|
2282
2286
|
for (let o in __cssModules$5) {
|
|
2283
2287
|
this[o] = __cssModules$5[o];
|
|
@@ -2289,12 +2293,18 @@ var TaskTablePure = /* @__PURE__ */ function() {
|
|
|
2289
2293
|
var useSearchTaskTemplates = (pagination, conditions = ref$1({}), lawFirmId) => {
|
|
2290
2294
|
const startIndex = computed(() => (pagination.value.current - 1) * pagination.value.pageSize);
|
|
2291
2295
|
const endIndex = computed(() => startIndex.value + pagination.value.pageSize);
|
|
2296
|
+
watch(() => conditions.value, () => {
|
|
2297
|
+
pagination.value.current = 1;
|
|
2298
|
+
pagination.value.total = 0;
|
|
2299
|
+
});
|
|
2292
2300
|
return useQuery(SearchTaskTemplatesQuery, () => ({
|
|
2293
2301
|
query: {
|
|
2294
2302
|
includeGallery: true,
|
|
2295
2303
|
keywords: conditions.value.keywords || "",
|
|
2296
2304
|
isEmployee: conditions.value.isEmployee,
|
|
2297
|
-
taskTemplateId: conditions.value.taskTemplateId
|
|
2305
|
+
taskTemplateId: conditions.value.taskTemplateId,
|
|
2306
|
+
sortBy: TaskTemplateSortBy.name,
|
|
2307
|
+
sortOrder: SortOrder.asc
|
|
2298
2308
|
},
|
|
2299
2309
|
startIndex: startIndex.value,
|
|
2300
2310
|
endIndex: endIndex.value,
|
|
@@ -2344,8 +2354,7 @@ var useTaskActions = (addedTasks, emit) => {
|
|
|
2344
2354
|
const taskToAdd = {
|
|
2345
2355
|
taskTemplateObj: record
|
|
2346
2356
|
};
|
|
2347
|
-
emit("
|
|
2348
|
-
emit("update:newTaskVisible", true);
|
|
2357
|
+
emit("editTask", taskToAdd);
|
|
2349
2358
|
};
|
|
2350
2359
|
const removeTask = (record) => emit("update:addedTasks", addedTasks.value.filter(({ id }) => id !== record.id));
|
|
2351
2360
|
return {
|
|
@@ -2365,11 +2374,11 @@ var useSearchTaskConditions = () => ref$1({
|
|
|
2365
2374
|
var useTaskTemplateTableData = (props, emit) => {
|
|
2366
2375
|
const initialPagination = ref$1({
|
|
2367
2376
|
current: 1,
|
|
2368
|
-
pageSize:
|
|
2377
|
+
pageSize: props.pageSize || 10,
|
|
2369
2378
|
total: 0
|
|
2370
2379
|
});
|
|
2371
2380
|
const { conditions = useSearchTaskConditions(), addedTasks = ref$1([]) } = toRefs$1(props);
|
|
2372
|
-
const { result, loading,
|
|
2381
|
+
const { result, loading, variables } = useSearchTaskTemplates(initialPagination, conditions, props.lawFirmId);
|
|
2373
2382
|
const dataSource = computed(() => {
|
|
2374
2383
|
var _a;
|
|
2375
2384
|
return ((_a = result.value) == null ? void 0 : _a.taskTemplateSearch.taskTemplateList) || [];
|
|
@@ -2394,9 +2403,9 @@ var useTaskTemplateTableData = (props, emit) => {
|
|
|
2394
2403
|
dataSource,
|
|
2395
2404
|
result,
|
|
2396
2405
|
loading,
|
|
2397
|
-
refetch,
|
|
2398
2406
|
conditions,
|
|
2399
|
-
addedTasks
|
|
2407
|
+
addedTasks,
|
|
2408
|
+
variables
|
|
2400
2409
|
};
|
|
2401
2410
|
};
|
|
2402
2411
|
var __vue2_script$4 = defineComponent({
|
|
@@ -2416,14 +2425,17 @@ var __vue2_script$4 = defineComponent({
|
|
|
2416
2425
|
lawFirmId: {
|
|
2417
2426
|
type: Number,
|
|
2418
2427
|
required: true
|
|
2428
|
+
},
|
|
2429
|
+
pageSize: {
|
|
2430
|
+
type: Number
|
|
2419
2431
|
}
|
|
2420
2432
|
},
|
|
2421
2433
|
setup(props, { emit }) {
|
|
2422
2434
|
const {
|
|
2423
2435
|
loading,
|
|
2424
|
-
refetch,
|
|
2425
2436
|
dataSource,
|
|
2426
2437
|
pagination,
|
|
2438
|
+
variables,
|
|
2427
2439
|
changePagination,
|
|
2428
2440
|
addTask,
|
|
2429
2441
|
editTask,
|
|
@@ -2431,14 +2443,14 @@ var __vue2_script$4 = defineComponent({
|
|
|
2431
2443
|
} = useTaskTemplateTableData(props, emit);
|
|
2432
2444
|
return {
|
|
2433
2445
|
loading,
|
|
2434
|
-
refetch,
|
|
2435
2446
|
dataSource,
|
|
2436
2447
|
pagination,
|
|
2437
2448
|
AssigneeTypesText,
|
|
2438
2449
|
changePagination,
|
|
2439
2450
|
addTask,
|
|
2440
2451
|
editTask,
|
|
2441
|
-
removeTask
|
|
2452
|
+
removeTask,
|
|
2453
|
+
variables
|
|
2442
2454
|
};
|
|
2443
2455
|
}
|
|
2444
2456
|
});
|
|
@@ -2453,7 +2465,7 @@ var render$4 = function() {
|
|
|
2453
2465
|
var staticRenderFns$4 = [];
|
|
2454
2466
|
var TaskTable_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2455
2467
|
const __cssModules$4 = {};
|
|
2456
|
-
var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "
|
|
2468
|
+
var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "7b828978", null, null);
|
|
2457
2469
|
function __vue2_injectStyles$4(context) {
|
|
2458
2470
|
for (let o in __cssModules$4) {
|
|
2459
2471
|
this[o] = __cssModules$4[o];
|
|
@@ -2488,17 +2500,26 @@ var __vue2_script$3 = defineComponent({
|
|
|
2488
2500
|
showPage: {
|
|
2489
2501
|
type: Boolean,
|
|
2490
2502
|
default: false
|
|
2503
|
+
},
|
|
2504
|
+
pageSize: {
|
|
2505
|
+
type: Number
|
|
2506
|
+
},
|
|
2507
|
+
openReviewButtonText: {
|
|
2508
|
+
type: String,
|
|
2509
|
+
default: "Review and add to template"
|
|
2491
2510
|
}
|
|
2492
2511
|
},
|
|
2493
2512
|
setup(props, { emit }) {
|
|
2494
|
-
const taskTable = ref$1(
|
|
2513
|
+
const taskTable = ref$1();
|
|
2495
2514
|
const conditions = useSearchTaskConditions();
|
|
2496
2515
|
const currentComponent = shallowRef(props.showPage ? Card : Modal);
|
|
2497
2516
|
const editAction = (record) => {
|
|
2498
|
-
emit("
|
|
2517
|
+
emit("editTask", record);
|
|
2499
2518
|
};
|
|
2519
|
+
const getVariables = () => taskTable.value.variables;
|
|
2500
2520
|
return {
|
|
2501
2521
|
editAction,
|
|
2522
|
+
getVariables,
|
|
2502
2523
|
taskTable,
|
|
2503
2524
|
conditions,
|
|
2504
2525
|
AssigneeTypes,
|
|
@@ -2517,17 +2538,15 @@ var render$3 = function() {
|
|
|
2517
2538
|
return _vm.$emit("update:visible", false);
|
|
2518
2539
|
} } }, [_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) {
|
|
2519
2540
|
return _vm.$emit("update:reviewModalVisible", true);
|
|
2520
|
-
} } }, [_vm._v(" " + _vm._s(_vm
|
|
2541
|
+
} } }, [_vm._v(" " + _vm._s(_vm.openReviewButtonText) + " ")])], 1)];
|
|
2521
2542
|
}, 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) {
|
|
2522
2543
|
_vm.conditions = $event;
|
|
2523
2544
|
}, "update:newTaskVisible": function($event) {
|
|
2524
2545
|
return _vm.$emit("update:newTaskVisible", true);
|
|
2525
|
-
} } }), _c("task-table", { ref: "taskTable", attrs: { "conditions": _vm.conditions, "added-tasks": _vm.addedTasks, "law-firm-id": _vm.lawFirmId }, on: { "update:addedTasks": function($event) {
|
|
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) {
|
|
2526
2547
|
return _vm.$emit("update:addedTasks", $event);
|
|
2527
|
-
}, "
|
|
2528
|
-
return _vm.$emit("
|
|
2529
|
-
}, "update:newTaskVisible": function($event) {
|
|
2530
|
-
return _vm.$emit("update:newTaskVisible", $event);
|
|
2548
|
+
}, "editTask": function($event) {
|
|
2549
|
+
return _vm.$emit("editTask", $event);
|
|
2531
2550
|
} }, scopedSlots: _vm._u([{ key: "default", fn: function(ref2) {
|
|
2532
2551
|
var loading = ref2.loading;
|
|
2533
2552
|
var dataSource = ref2.dataSource;
|
|
@@ -2539,7 +2558,7 @@ var render$3 = function() {
|
|
|
2539
2558
|
var staticRenderFns$3 = [];
|
|
2540
2559
|
var MainModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2541
2560
|
const __cssModules$3 = {};
|
|
2542
|
-
var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "
|
|
2561
|
+
var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "b2f78f98", null, null);
|
|
2543
2562
|
function __vue2_injectStyles$3(context) {
|
|
2544
2563
|
for (let o in __cssModules$3) {
|
|
2545
2564
|
this[o] = __cssModules$3[o];
|
|
@@ -2591,7 +2610,7 @@ var __vue2_script$2 = defineComponent({
|
|
|
2591
2610
|
const pagination = ref$1({
|
|
2592
2611
|
total: addedTasks.value.length,
|
|
2593
2612
|
current: 1,
|
|
2594
|
-
pageSize:
|
|
2613
|
+
pageSize: 10
|
|
2595
2614
|
});
|
|
2596
2615
|
const changePagination = (newPagination) => {
|
|
2597
2616
|
pagination.value = newPagination;
|
|
@@ -2630,7 +2649,7 @@ var render$2 = function() {
|
|
|
2630
2649
|
var staticRenderFns$2 = [];
|
|
2631
2650
|
var ReviewModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2632
2651
|
const __cssModules$2 = {};
|
|
2633
|
-
var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "
|
|
2652
|
+
var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "09e3f3ca", null, null);
|
|
2634
2653
|
function __vue2_injectStyles$2(context) {
|
|
2635
2654
|
for (let o in __cssModules$2) {
|
|
2636
2655
|
this[o] = __cssModules$2[o];
|
|
@@ -2746,6 +2765,10 @@ var __vue2_script$1 = defineComponent({
|
|
|
2746
2765
|
type: String,
|
|
2747
2766
|
default: "Add"
|
|
2748
2767
|
},
|
|
2768
|
+
openReviewButtonText: {
|
|
2769
|
+
type: String,
|
|
2770
|
+
default: "Review and add to template"
|
|
2771
|
+
},
|
|
2749
2772
|
showSendEmail: {
|
|
2750
2773
|
type: Boolean,
|
|
2751
2774
|
default: false
|
|
@@ -2764,9 +2787,13 @@ var __vue2_script$1 = defineComponent({
|
|
|
2764
2787
|
pageMode: {
|
|
2765
2788
|
type: Boolean,
|
|
2766
2789
|
default: false
|
|
2790
|
+
},
|
|
2791
|
+
pageSize: {
|
|
2792
|
+
type: Number
|
|
2767
2793
|
}
|
|
2768
2794
|
},
|
|
2769
2795
|
setup(props, { emit }) {
|
|
2796
|
+
const { client } = useApolloClient();
|
|
2770
2797
|
const mainModal = ref$1();
|
|
2771
2798
|
const reviewModal = ref$1();
|
|
2772
2799
|
const newTaskVisible = ref$1(false);
|
|
@@ -2775,60 +2802,74 @@ var __vue2_script$1 = defineComponent({
|
|
|
2775
2802
|
const updateTemplate = useMutateTaskTemplate();
|
|
2776
2803
|
const createTemplate = useCreateTaskTemplate();
|
|
2777
2804
|
const addedTasks = ref$1([]);
|
|
2778
|
-
onMounted(() => {
|
|
2779
|
-
const { value, lawFirmId } = props;
|
|
2780
|
-
if (!value.length)
|
|
2781
|
-
return;
|
|
2782
|
-
const conditions = ref$1({
|
|
2783
|
-
taskTemplateId: value
|
|
2784
|
-
});
|
|
2785
|
-
const { result } = useSearchTaskTemplates(ref$1({ current: 1, pageSize: 1e3, total: 0 }), conditions, lawFirmId);
|
|
2786
|
-
watch(() => result.value, () => {
|
|
2787
|
-
var _a, _b;
|
|
2788
|
-
addedTasks.value = ((_b = (_a = result.value) == null ? void 0 : _a.taskTemplateSearch) == null ? void 0 : _b.taskTemplateList) || [];
|
|
2789
|
-
});
|
|
2790
|
-
});
|
|
2791
2805
|
watch(() => newTaskVisible.value, (visible) => {
|
|
2792
2806
|
if (!visible) {
|
|
2793
2807
|
tempTask.value = defaultTaskTemplate;
|
|
2794
2808
|
}
|
|
2795
2809
|
});
|
|
2810
|
+
const updateReviewModalContent = (record, newRecord) => {
|
|
2811
|
+
if (reviewModalVisible.value) {
|
|
2812
|
+
const newValue = addedTasks.value.map((originTask) => {
|
|
2813
|
+
if (originTask.id === record.taskTemplateId) {
|
|
2814
|
+
return newRecord;
|
|
2815
|
+
}
|
|
2816
|
+
return originTask;
|
|
2817
|
+
});
|
|
2818
|
+
emit("update:value", newValue.map(({ id }) => id));
|
|
2819
|
+
}
|
|
2820
|
+
};
|
|
2821
|
+
const writeQuery = (id, newRecord) => {
|
|
2822
|
+
const variables = mainModal.value.getVariables();
|
|
2823
|
+
const existed = client.readQuery({
|
|
2824
|
+
query: SearchTaskTemplatesQuery,
|
|
2825
|
+
variables
|
|
2826
|
+
});
|
|
2827
|
+
client.writeQuery({
|
|
2828
|
+
query: SearchTaskTemplatesQuery,
|
|
2829
|
+
data: {
|
|
2830
|
+
taskTemplateSearch: __spreadProps(__spreadValues({}, existed.taskTemplateSearch), {
|
|
2831
|
+
taskTemplateList: existed.taskTemplateSearch.taskTemplateList.map((record) => {
|
|
2832
|
+
if (record.id === id) {
|
|
2833
|
+
return newRecord && __spreadProps(__spreadValues({}, newRecord), {
|
|
2834
|
+
isGallery: record.isGallery
|
|
2835
|
+
});
|
|
2836
|
+
}
|
|
2837
|
+
return record;
|
|
2838
|
+
}).filter((record) => !!record)
|
|
2839
|
+
})
|
|
2840
|
+
},
|
|
2841
|
+
variables
|
|
2842
|
+
});
|
|
2843
|
+
};
|
|
2796
2844
|
const _submit = async (record) => {
|
|
2797
2845
|
const {
|
|
2798
2846
|
newRecord,
|
|
2799
|
-
success
|
|
2847
|
+
success,
|
|
2848
|
+
isUpdate
|
|
2800
2849
|
} = await submit(record, updateTemplate, createTemplate);
|
|
2801
2850
|
if (success) {
|
|
2851
|
+
if (!isUpdate)
|
|
2852
|
+
writeQuery(record.taskTemplateId, newRecord);
|
|
2802
2853
|
newTaskVisible.value = false;
|
|
2803
|
-
|
|
2804
|
-
if (reviewModalVisible.value) {
|
|
2805
|
-
const newValue = addedTasks.value.map((originTask) => {
|
|
2806
|
-
if (originTask.id === record.taskTemplateId) {
|
|
2807
|
-
return newRecord;
|
|
2808
|
-
}
|
|
2809
|
-
return originTask;
|
|
2810
|
-
});
|
|
2811
|
-
emit("update:value", newValue.map(({ id }) => id));
|
|
2812
|
-
}
|
|
2854
|
+
updateReviewModalContent(record, newRecord);
|
|
2813
2855
|
}
|
|
2814
2856
|
};
|
|
2815
2857
|
const submitting = computed(() => updateTemplate.loading.value || createTemplate.loading.value);
|
|
2816
|
-
const
|
|
2858
|
+
const editTask = (record) => {
|
|
2817
2859
|
newTaskVisible.value = true;
|
|
2818
|
-
tempTask.value = {
|
|
2819
|
-
taskTemplateObj: __spreadValues({}, record)
|
|
2820
|
-
};
|
|
2860
|
+
tempTask.value = __spreadValues({}, record);
|
|
2821
2861
|
};
|
|
2822
2862
|
return {
|
|
2823
|
-
showEdit,
|
|
2824
2863
|
mainModal,
|
|
2825
2864
|
reviewModal,
|
|
2826
|
-
_submit,
|
|
2827
2865
|
newTaskVisible,
|
|
2828
2866
|
tempTask,
|
|
2829
2867
|
reviewModalVisible,
|
|
2830
2868
|
submitting,
|
|
2831
|
-
addedTasks
|
|
2869
|
+
addedTasks,
|
|
2870
|
+
writeQuery,
|
|
2871
|
+
editTask,
|
|
2872
|
+
_submit
|
|
2832
2873
|
};
|
|
2833
2874
|
}
|
|
2834
2875
|
});
|
|
@@ -2836,10 +2877,14 @@ var render$1 = function() {
|
|
|
2836
2877
|
var _vm = this;
|
|
2837
2878
|
var _h = _vm.$createElement;
|
|
2838
2879
|
var _c = _vm._self._c || _h;
|
|
2839
|
-
return _c("div", { attrs: { "id": "venus-component-task-cart" } }, [_c("main-modal", { ref: "mainModal", attrs: { "
|
|
2880
|
+
return _c("div", { attrs: { "id": "venus-component-task-cart" } }, [_c("main-modal", { ref: "mainModal", attrs: { "visible": _vm.visible, "show-page": _vm.pageMode, "page-size": _vm.pageSize, "law-firm-id": _vm.lawFirmId, "tempTask": _vm.tempTask, "added-tasks": _vm.addedTasks, "newTaskVisible": _vm.newTaskVisible, "task-setting-page-url": _vm.taskSettingPageUrl, "reviewModalVisible": _vm.reviewModalVisible, "open-review-button-text": _vm.openReviewButtonText }, on: { "update:tempTask": function($event) {
|
|
2840
2881
|
_vm.tempTask = $event;
|
|
2841
2882
|
}, "update:temp-task": function($event) {
|
|
2842
2883
|
_vm.tempTask = $event;
|
|
2884
|
+
}, "update:addedTasks": function($event) {
|
|
2885
|
+
_vm.addedTasks = $event;
|
|
2886
|
+
}, "update:added-tasks": function($event) {
|
|
2887
|
+
_vm.addedTasks = $event;
|
|
2843
2888
|
}, "update:newTaskVisible": function($event) {
|
|
2844
2889
|
_vm.newTaskVisible = $event;
|
|
2845
2890
|
}, "update:new-task-visible": function($event) {
|
|
@@ -2848,37 +2893,33 @@ var render$1 = function() {
|
|
|
2848
2893
|
_vm.reviewModalVisible = $event;
|
|
2849
2894
|
}, "update:review-modal-visible": function($event) {
|
|
2850
2895
|
_vm.reviewModalVisible = $event;
|
|
2851
|
-
}, "update:
|
|
2852
|
-
_vm.addedTasks = $event;
|
|
2853
|
-
}, "update:added-tasks": function($event) {
|
|
2854
|
-
_vm.addedTasks = $event;
|
|
2855
|
-
}, "update:visible": function($event) {
|
|
2896
|
+
}, "editTask": _vm.editTask, "update:visible": function($event) {
|
|
2856
2897
|
return _vm.$emit("update:visible", $event);
|
|
2857
|
-
}
|
|
2898
|
+
} }, scopedSlots: _vm._u([{ key: "default", fn: function(ref2) {
|
|
2858
2899
|
var loading = ref2.loading;
|
|
2859
2900
|
var dataSource = ref2.dataSource;
|
|
2860
2901
|
var pagination = ref2.pagination;
|
|
2861
2902
|
var changePagination = ref2.changePagination;
|
|
2862
2903
|
return [_vm._t("table", null, { "loading": loading, "dataSource": dataSource, "pagination": pagination, "changePagination": changePagination })];
|
|
2863
|
-
} }], null, true) }), _c("review-modal", { ref: "reviewModal", attrs: { "
|
|
2904
|
+
} }], null, true) }), _c("review-modal", { ref: "reviewModal", attrs: { "sendEmail": _vm.sendEmail, "allow-clear": _vm.allowClear, "tempTask": _vm.tempTask, "review-text": _vm.reviewText, "added-tasks": _vm.addedTasks, "showSendEmail": _vm.showSendEmail, "visible": _vm.reviewModalVisible, "newTaskVisible": _vm.newTaskVisible }, on: { "update:tempTask": function($event) {
|
|
2864
2905
|
_vm.tempTask = $event;
|
|
2865
2906
|
}, "update:temp-task": function($event) {
|
|
2866
2907
|
_vm.tempTask = $event;
|
|
2908
|
+
}, "update:addedTasks": function($event) {
|
|
2909
|
+
_vm.addedTasks = $event;
|
|
2910
|
+
}, "update:added-tasks": function($event) {
|
|
2911
|
+
_vm.addedTasks = $event;
|
|
2867
2912
|
}, "update:visible": function($event) {
|
|
2868
2913
|
_vm.reviewModalVisible = $event;
|
|
2869
2914
|
}, "update:newTaskVisible": function($event) {
|
|
2870
2915
|
_vm.newTaskVisible = $event;
|
|
2871
2916
|
}, "update:new-task-visible": function($event) {
|
|
2872
2917
|
_vm.newTaskVisible = $event;
|
|
2873
|
-
}, "update:addedTasks": function($event) {
|
|
2874
|
-
_vm.addedTasks = $event;
|
|
2875
|
-
}, "update:added-tasks": function($event) {
|
|
2876
|
-
_vm.addedTasks = $event;
|
|
2877
|
-
}, "update:sendEmail": function($event) {
|
|
2878
|
-
return _vm.$emit("update:sendEmail", $event);
|
|
2879
2918
|
}, "submit": function($event) {
|
|
2880
2919
|
return _vm.$emit("submit", $event);
|
|
2881
|
-
}
|
|
2920
|
+
}, "update:sendEmail": function($event) {
|
|
2921
|
+
return _vm.$emit("update:sendEmail", $event);
|
|
2922
|
+
} } }), _c("new-task", { attrs: { "user-id": _vm.userId, "loading": _vm.submitting, "value": _vm.tempTask, "law-firm-id": _vm.lawFirmId, "visible": _vm.newTaskVisible, "upload-files-func": _vm.uploadFilesFunc }, on: { "update:value": function($event) {
|
|
2882
2923
|
_vm.tempTask = $event;
|
|
2883
2924
|
}, "update:visible": function($event) {
|
|
2884
2925
|
_vm.newTaskVisible = $event;
|
|
@@ -2887,7 +2928,7 @@ var render$1 = function() {
|
|
|
2887
2928
|
var staticRenderFns$1 = [];
|
|
2888
2929
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2889
2930
|
const __cssModules$1 = {};
|
|
2890
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "
|
|
2931
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "5a18b070", null, null);
|
|
2891
2932
|
function __vue2_injectStyles$1(context) {
|
|
2892
2933
|
for (let o in __cssModules$1) {
|
|
2893
2934
|
this[o] = __cssModules$1[o];
|