@dev_ailaw/venus 1.450.0 → 1.451.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 +18 -6
- package/package.json +1 -1
package/dist/venus.es.js
CHANGED
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { defineComponent, ref, watch, toRefs, reactive, computed, getCurrentScope, shallowRef } from "vue-demi";
|
|
21
|
-
import { Select, Modal, FormModel, Input, Checkbox, Divider, Button, Popover, Upload, Tag, Icon, Tooltip, Form, Row, Col, Radio, Popconfirm, Table, Badge, Card, message } from "ant-design-vue";
|
|
21
|
+
import { Select, Modal, FormModel, Input, Checkbox, Divider, Button, Popover, Upload, Tag, Icon, Tooltip, Form, Row, Col, Radio, Popconfirm, DatePicker, Table, Badge, Card, message } from "ant-design-vue";
|
|
22
22
|
import { useQuery, useResult, useMutation, useApolloClient } from "@vue/apollo-composable";
|
|
23
23
|
import gql from "graphql-tag";
|
|
24
24
|
import { path, uniqBy, prop, sort, omit } from "ramda";
|
|
@@ -2633,7 +2633,10 @@ var __vue2_script$8 = defineComponent({
|
|
|
2633
2633
|
AntModal: Modal,
|
|
2634
2634
|
AntCheckbox: Checkbox,
|
|
2635
2635
|
AntButton: Button,
|
|
2636
|
-
AntPopconfirm: Popconfirm
|
|
2636
|
+
AntPopconfirm: Popconfirm,
|
|
2637
|
+
AntForm: Form,
|
|
2638
|
+
AntFormItem: Form.Item,
|
|
2639
|
+
AntDatePicker: DatePicker
|
|
2637
2640
|
},
|
|
2638
2641
|
props: {
|
|
2639
2642
|
visible: {
|
|
@@ -2656,6 +2659,10 @@ var __vue2_script$8 = defineComponent({
|
|
|
2656
2659
|
type: Boolean,
|
|
2657
2660
|
default: false
|
|
2658
2661
|
},
|
|
2662
|
+
showDueDate: {
|
|
2663
|
+
type: Boolean,
|
|
2664
|
+
default: false
|
|
2665
|
+
},
|
|
2659
2666
|
uploadFilesFunc: {
|
|
2660
2667
|
type: Function,
|
|
2661
2668
|
required: true
|
|
@@ -2697,7 +2704,7 @@ var __vue2_script$8 = defineComponent({
|
|
|
2697
2704
|
taskForm.value.validFields((passed, ts) => {
|
|
2698
2705
|
var _a;
|
|
2699
2706
|
if (passed) {
|
|
2700
|
-
const data = {
|
|
2707
|
+
const data = __spreadValues({
|
|
2701
2708
|
taskTemplateObj: __spreadProps(__spreadValues({}, omit(["presetDocs"], ts)), {
|
|
2702
2709
|
taskName: (_a = ts.taskName) == null ? void 0 : _a.trim(),
|
|
2703
2710
|
taskType: props.value.taskTemplateObj.taskType,
|
|
@@ -2711,7 +2718,7 @@ var __vue2_script$8 = defineComponent({
|
|
|
2711
2718
|
isAddedToTask: props.value.isAddedToTask || false,
|
|
2712
2719
|
isNotified: props.value.isNotified || false,
|
|
2713
2720
|
allowSubmitWithoutFile: props.value.allowSubmitWithoutFile
|
|
2714
|
-
};
|
|
2721
|
+
}, props.showDueDate ? { urgentDate: props.value.urgentDate || null } : {});
|
|
2715
2722
|
emit("submit", data);
|
|
2716
2723
|
}
|
|
2717
2724
|
});
|
|
@@ -2725,6 +2732,7 @@ var __vue2_script$8 = defineComponent({
|
|
|
2725
2732
|
isAddedToTask: props.value.isAddedToTask,
|
|
2726
2733
|
isNotified: props.value.isNotified,
|
|
2727
2734
|
allowSubmitWithoutFile: props.value.allowSubmitWithoutFile,
|
|
2735
|
+
urgentDate: props.value.urgentDate,
|
|
2728
2736
|
taskTemplateObj: __spreadProps(__spreadValues({}, record), {
|
|
2729
2737
|
isEmployee: record.isEmployee
|
|
2730
2738
|
})
|
|
@@ -2756,7 +2764,11 @@ var render$8 = function() {
|
|
|
2756
2764
|
} } }, [_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) {
|
|
2757
2765
|
return _vm.changeVisible(false);
|
|
2758
2766
|
} } }, [_vm._v(_vm._s(_vm.$t("message.cancel")) + " ")])], 1)])];
|
|
2759
|
-
}, proxy: true }]) }, [_vm._t("banner"), _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, "check-rule-func": _vm.checkRuleFunc }, on: { "update:value": _vm.updateFormValue } }), _vm.
|
|
2767
|
+
}, proxy: true }]) }, [_vm._t("banner"), _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, "check-rule-func": _vm.checkRuleFunc }, on: { "update:value": _vm.updateFormValue } }), _vm.showDueDate ? _c("ant-form", { staticClass: "add-edit-task-modal", on: { "submit": function(e) {
|
|
2768
|
+
return e.preventDefault();
|
|
2769
|
+
} } }, [_c("ant-form-item", { attrs: { "label": "" + _vm.$t("message.durDate") + " (" + _vm.$t("message.optional") + ")" } }, [_c("ant-date-picker", { attrs: { "id": "venus-new-task-due-date", "value": _vm.value.urgentDate, "format": "MM/DD/YYYY", "value-format": "YYYY-MM-DD" }, on: { "change": function($event) {
|
|
2770
|
+
return _vm.changeVal("urgentDate", $event);
|
|
2771
|
+
} } })], 1)], 1) : _vm._e(), _vm.showAddToList ? _c("ant-checkbox", { attrs: { "checked": _vm.value.isAddedToTask }, on: { "change": function($event) {
|
|
2760
2772
|
return _vm.changeVal("isAddedToTask", $event.target.checked);
|
|
2761
2773
|
} } }, [_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) {
|
|
2762
2774
|
return _vm.changeVal("allowSubmitWithoutFile", $event.target.checked);
|
|
@@ -2765,7 +2777,7 @@ var render$8 = function() {
|
|
|
2765
2777
|
var staticRenderFns$8 = [];
|
|
2766
2778
|
var index_vue_vue_type_style_index_0_scoped_true_lang$2 = "";
|
|
2767
2779
|
const __cssModules$8 = {};
|
|
2768
|
-
var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "
|
|
2780
|
+
var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "463df3f8", null, null);
|
|
2769
2781
|
function __vue2_injectStyles$8(context) {
|
|
2770
2782
|
for (let o in __cssModules$8) {
|
|
2771
2783
|
this[o] = __cssModules$8[o];
|