@dev_ailaw/venus 1.419.0 → 1.420.0
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 +41 -6
- package/package.json +1 -1
package/dist/venus.es.js
CHANGED
|
@@ -2197,6 +2197,7 @@ var refactorParams = (record) => {
|
|
|
2197
2197
|
isEmployee: record.isEmployee || AssigneeTypes[AssigneeTypes.EMPTY_DEFAULT],
|
|
2198
2198
|
generalTaskType: record.generalTaskType,
|
|
2199
2199
|
descriptions: record.descriptions,
|
|
2200
|
+
ruleDescription: record.ruleDescription,
|
|
2200
2201
|
tagList: record.tagList
|
|
2201
2202
|
};
|
|
2202
2203
|
};
|
|
@@ -2364,6 +2365,10 @@ var __vue2_script$8 = defineComponent({
|
|
|
2364
2365
|
showNotApplicable: {
|
|
2365
2366
|
type: Boolean,
|
|
2366
2367
|
default: false
|
|
2368
|
+
},
|
|
2369
|
+
showAiRule: {
|
|
2370
|
+
type: Boolean,
|
|
2371
|
+
default: false
|
|
2367
2372
|
}
|
|
2368
2373
|
},
|
|
2369
2374
|
mounted() {
|
|
@@ -2378,6 +2383,21 @@ var __vue2_script$8 = defineComponent({
|
|
|
2378
2383
|
const typeError = ref(false);
|
|
2379
2384
|
const nameErrorContent = ref("message.required");
|
|
2380
2385
|
const changeVal = useChangeVal(props, emit);
|
|
2386
|
+
const ruleMirror = ref(null);
|
|
2387
|
+
const ruleLinked = () => {
|
|
2388
|
+
const rule = props.value.ruleDescription || "";
|
|
2389
|
+
return !rule || rule === ruleMirror.value;
|
|
2390
|
+
};
|
|
2391
|
+
watch(() => props.value.descriptions, (desc) => {
|
|
2392
|
+
if (!props.showAiRule || !ruleLinked())
|
|
2393
|
+
return;
|
|
2394
|
+
ruleMirror.value = desc || "";
|
|
2395
|
+
changeVal("ruleDescription", desc || "");
|
|
2396
|
+
});
|
|
2397
|
+
const changeRule = (text) => {
|
|
2398
|
+
ruleMirror.value = null;
|
|
2399
|
+
changeVal("ruleDescription", text);
|
|
2400
|
+
};
|
|
2381
2401
|
const changeMultiple = (event) => {
|
|
2382
2402
|
let toBeEmitted = __spreadProps(__spreadValues({}, props.value), {
|
|
2383
2403
|
isEmployee: event
|
|
@@ -2439,6 +2459,7 @@ var __vue2_script$8 = defineComponent({
|
|
|
2439
2459
|
typeError,
|
|
2440
2460
|
nameError,
|
|
2441
2461
|
changeVal,
|
|
2462
|
+
changeRule,
|
|
2442
2463
|
changeMultiple,
|
|
2443
2464
|
validFields,
|
|
2444
2465
|
TaskTypes,
|
|
@@ -2480,7 +2501,11 @@ var render$8 = function() {
|
|
|
2480
2501
|
return _c("ant-select-option", { key: item[0], attrs: { "value": item[1] } }, [_vm._v(" " + _vm._s(item[0]) + " ")]);
|
|
2481
2502
|
}), 1)], 1)], 1) : _vm._e()], 1), _c("ant-form-item", { attrs: { "label": "" + _vm.$t("message.descriptions") + " (" + _vm.$t("message.optional") + ")" } }, [_c("ant-textarea", { attrs: { "disabled": _vm.disabled, "value": _vm.value.descriptions }, on: { "input": function($event) {
|
|
2482
2503
|
return _vm.changeVal("descriptions", $event.target.value);
|
|
2483
|
-
} } })], 1), _c("ant-form-item", {
|
|
2504
|
+
} } })], 1), _vm.showAiRule ? _c("ant-form-item", { scopedSlots: _vm._u([{ key: "label", fn: function() {
|
|
2505
|
+
return [_vm._v(" " + _vm._s(_vm.$t("message.aiReviewRule")) + _vm._s(" ") + "(" + _vm._s(_vm.$t("message.optional")) + ") "), _c("ant-popover", { attrs: { "content": _vm.$t("message.aiReviewRuleHint") } }, [_c("ant-icon", { staticClass: "pt-3.5 text-classic cursor-pointer", attrs: { "type": "question-circle" } })], 1)];
|
|
2506
|
+
}, proxy: true }], null, false, 974060645) }, [_c("ant-textarea", { attrs: { "disabled": _vm.disabled, "value": _vm.value.ruleDescription, "placeholder": _vm.$t("message.aiReviewRulePlaceholder") }, on: { "input": function($event) {
|
|
2507
|
+
return _vm.changeRule($event.target.value);
|
|
2508
|
+
} } })], 1) : _vm._e(), _c("ant-form-item", { attrs: { "label": "" + _vm.$t("message.attachment") + " (" + _vm.$t("message.optional") + ")" } }, [_c("a-file-uploader", { attrs: { "disabled": _vm.value.presetDocs != null || _vm.disabled, "value": _vm.value.presetDocs || _vm.value.sampleDocs, "uploadFilesFunc": _vm.uploadFilesFunc }, on: { "change": function($event) {
|
|
2484
2509
|
return _vm.changeVal("sampleDocs", $event);
|
|
2485
2510
|
} } })], 1), _c("ant-form-item", { attrs: { "label": "" + _vm.$t("message.tags") + " (" + _vm.$t("message.optional") + ")" } }, [_c("ant-select", { attrs: { "disabled": _vm.disabled, "mode": "tags", "value": _vm.value.tagList || [], "options": [] }, on: { "change": function($event) {
|
|
2486
2511
|
return _vm.changeVal("tagList", $event);
|
|
@@ -2491,7 +2516,7 @@ var render$8 = function() {
|
|
|
2491
2516
|
var staticRenderFns$8 = [];
|
|
2492
2517
|
var index_vue_vue_type_style_index_0_scoped_true_lang$3 = "";
|
|
2493
2518
|
const __cssModules$8 = {};
|
|
2494
|
-
var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "
|
|
2519
|
+
var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "88b231b2", null, null);
|
|
2495
2520
|
function __vue2_injectStyles$8(context) {
|
|
2496
2521
|
for (let o in __cssModules$8) {
|
|
2497
2522
|
this[o] = __cssModules$8[o];
|
|
@@ -2550,6 +2575,10 @@ var __vue2_script$7 = defineComponent({
|
|
|
2550
2575
|
hasDoubleConfirm: {
|
|
2551
2576
|
type: Boolean,
|
|
2552
2577
|
default: true
|
|
2578
|
+
},
|
|
2579
|
+
showAiRule: {
|
|
2580
|
+
type: Boolean,
|
|
2581
|
+
default: false
|
|
2553
2582
|
}
|
|
2554
2583
|
},
|
|
2555
2584
|
setup(props, { emit }) {
|
|
@@ -2623,7 +2652,7 @@ var render$7 = function() {
|
|
|
2623
2652
|
} } }, [_vm._v(" " + _vm._s(_vm.$t("message.sendTaskEmail")) + " ")])], 1) : _vm._e(), _c("div", [_vm.hasDoubleConfirm ? _c("ant-popconfirm", { attrs: { "title": _vm.$t("message.updateTaskConfirm"), "placement": "top" }, on: { "confirm": _vm.submit } }, [_c("ant-button", { attrs: { "loading": _vm.loading, "type": "primary" } }, [_vm._v(_vm._s(_vm.$t("message.submit")) + " ")])], 1) : _c("ant-button", { attrs: { "loading": _vm.loading, "type": "primary" }, on: { "click": _vm.submit } }, [_vm._v(_vm._s(_vm.$t("message.submit")) + " ")]), _c("ant-button", { on: { "click": function($event) {
|
|
2624
2653
|
return _vm.changeVisible(false);
|
|
2625
2654
|
} } }, [_vm._v(_vm._s(_vm.$t("message.cancel")) + " ")])], 1)])];
|
|
2626
|
-
}, proxy: true }]) }, [_c("task-form", { ref: "taskForm", attrs: { "upload-files-func": _vm.uploadFilesFunc, "law-firm-id": _vm.lawFirmId, "user-id": _vm.userId, "value": _vm.value.taskTemplateObj }, on: { "update:value": _vm.updateFormValue } }), _vm.showAddToList ? _c("ant-checkbox", { attrs: { "checked": _vm.value.isAddedToTask }, on: { "change": function($event) {
|
|
2655
|
+
}, proxy: true }]) }, [_c("task-form", { ref: "taskForm", attrs: { "upload-files-func": _vm.uploadFilesFunc, "law-firm-id": _vm.lawFirmId, "user-id": _vm.userId, "value": _vm.value.taskTemplateObj, "show-ai-rule": _vm.showAiRule }, on: { "update:value": _vm.updateFormValue } }), _vm.showAddToList ? _c("ant-checkbox", { attrs: { "checked": _vm.value.isAddedToTask }, on: { "change": function($event) {
|
|
2627
2656
|
return _vm.changeVal("isAddedToTask", $event.target.checked);
|
|
2628
2657
|
} } }, [_vm._v(" " + _vm._s(_vm.$t("message.addToTaskList")) + " ")]) : _vm._e(), _vm.showAllowSubmit ? _c("ant-checkbox", { staticClass: "ml-2", attrs: { "checked": _vm.value.allowSubmitWithoutFile }, on: { "change": function($event) {
|
|
2629
2658
|
return _vm.changeVal("allowSubmitWithoutFile", $event.target.checked);
|
|
@@ -2632,7 +2661,7 @@ var render$7 = function() {
|
|
|
2632
2661
|
var staticRenderFns$7 = [];
|
|
2633
2662
|
var index_vue_vue_type_style_index_0_scoped_true_lang$2 = "";
|
|
2634
2663
|
const __cssModules$7 = {};
|
|
2635
|
-
var __component__$7 = /* @__PURE__ */ normalizeComponent(__vue2_script$7, render$7, staticRenderFns$7, false, __vue2_injectStyles$7, "
|
|
2664
|
+
var __component__$7 = /* @__PURE__ */ normalizeComponent(__vue2_script$7, render$7, staticRenderFns$7, false, __vue2_injectStyles$7, "40b09048", null, null);
|
|
2636
2665
|
function __vue2_injectStyles$7(context) {
|
|
2637
2666
|
for (let o in __cssModules$7) {
|
|
2638
2667
|
this[o] = __cssModules$7[o];
|
|
@@ -2860,6 +2889,8 @@ const taskTemplateFragment = gql`
|
|
|
2860
2889
|
taskType
|
|
2861
2890
|
generalTaskType
|
|
2862
2891
|
descriptions
|
|
2892
|
+
ruleDescription
|
|
2893
|
+
aiCheckItems
|
|
2863
2894
|
sampleDocs {
|
|
2864
2895
|
id
|
|
2865
2896
|
name
|
|
@@ -3359,6 +3390,10 @@ var __vue2_script$1 = defineComponent({
|
|
|
3359
3390
|
showNewBtn: {
|
|
3360
3391
|
type: Boolean,
|
|
3361
3392
|
default: true
|
|
3393
|
+
},
|
|
3394
|
+
showAiRule: {
|
|
3395
|
+
type: Boolean,
|
|
3396
|
+
default: false
|
|
3362
3397
|
}
|
|
3363
3398
|
},
|
|
3364
3399
|
setup(props, { emit }) {
|
|
@@ -3511,7 +3546,7 @@ var render$1 = function() {
|
|
|
3511
3546
|
_vm.newTaskVisible = $event;
|
|
3512
3547
|
}, "submit": _vm.endReviewing, "update:sendEmail": function($event) {
|
|
3513
3548
|
return _vm.$emit("update:sendEmail", $event);
|
|
3514
|
-
} } }), _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, "has-double-confirm": !!_vm.tempTask.taskTemplateObj.id }, on: { "update:value": function($event) {
|
|
3549
|
+
} } }), _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, "has-double-confirm": !!_vm.tempTask.taskTemplateObj.id, "show-ai-rule": _vm.showAiRule }, on: { "update:value": function($event) {
|
|
3515
3550
|
_vm.tempTask = $event;
|
|
3516
3551
|
}, "update:visible": function($event) {
|
|
3517
3552
|
_vm.newTaskVisible = $event;
|
|
@@ -3520,7 +3555,7 @@ var render$1 = function() {
|
|
|
3520
3555
|
var staticRenderFns$1 = [];
|
|
3521
3556
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
3522
3557
|
const __cssModules$1 = {};
|
|
3523
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "
|
|
3558
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "07a41818", null, null);
|
|
3524
3559
|
function __vue2_injectStyles$1(context) {
|
|
3525
3560
|
for (let o in __cssModules$1) {
|
|
3526
3561
|
this[o] = __cssModules$1[o];
|