@ailaw/venus 0.3.9 → 0.3.13
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/style.css +1 -1
- package/dist/venus.es.js +117 -79
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tailwindcss v2.2.17 | MIT License | https://tailwindcss.com *//*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:before,:after{box-sizing:border-box}html{-moz-tab-size:4;-o-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}hr{height:0;color:inherit}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#a1a1aa}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#a1a1aa}input::placeholder,textarea::placeholder{opacity:1;color:#a1a1aa}button,[role=button]{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{border-color:currentColor}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.relative{position:relative}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mr-2{margin-right:.5rem}.mb-5{margin-bottom:1.25rem}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.table{display:table}.h-6{height:1.5rem}.h-screen{height:100vh}.w-6{width:1.5rem}.w-60{width:15rem}.w-72{width:18rem}.flex-1{flex:1 1 0%}@-webkit-keyframes spin{to{transform:rotate(360deg)}}@keyframes spin{to{transform:rotate(360deg)}}@-webkit-keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}.items-center{align-items:center}.justify-end{justify-content:flex-end}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.border{border-width:1px}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.capitalize{text-transform:capitalize}.text-secondary{--tw-text-opacity: 1;color:rgba(102,102,102,var(--tw-text-opacity))}*,:before,:after{--tw-shadow: 0 0 #0000}*,:before,:after{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000}.filter{--tw-blur: var(--tw-empty, );--tw-brightness: var(--tw-empty, );--tw-contrast: var(--tw-empty, );--tw-grayscale: var(--tw-empty, );--tw-hue-rotate: var(--tw-empty, );--tw-invert: var(--tw-empty, );--tw-saturate: var(--tw-empty, );--tw-sepia: var(--tw-empty, );--tw-drop-shadow: var(--tw-empty, );filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur{--tw-blur: blur(8px)}.tags-container[data-v-c4729600]{word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.container[data-v-d2a7dbe0]{border:1px solid #cccccc;border-radius:6px;padding:0 4px;min-height:30px;cursor:pointer}.taskTemplateInline[data-v-
|
|
1
|
+
/*! tailwindcss v2.2.17 | MIT License | https://tailwindcss.com *//*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:before,:after{box-sizing:border-box}html{-moz-tab-size:4;-o-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}hr{height:0;color:inherit}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#a1a1aa}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#a1a1aa}input::placeholder,textarea::placeholder{opacity:1;color:#a1a1aa}button,[role=button]{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{border-color:currentColor}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.relative{position:relative}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mr-2{margin-right:.5rem}.mb-5{margin-bottom:1.25rem}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.table{display:table}.h-6{height:1.5rem}.h-screen{height:100vh}.w-6{width:1.5rem}.w-60{width:15rem}.w-72{width:18rem}.flex-1{flex:1 1 0%}@-webkit-keyframes spin{to{transform:rotate(360deg)}}@keyframes spin{to{transform:rotate(360deg)}}@-webkit-keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}.items-center{align-items:center}.justify-end{justify-content:flex-end}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.border{border-width:1px}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.capitalize{text-transform:capitalize}.text-secondary{--tw-text-opacity: 1;color:rgba(102,102,102,var(--tw-text-opacity))}*,:before,:after{--tw-shadow: 0 0 #0000}*,:before,:after{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000}.filter{--tw-blur: var(--tw-empty, );--tw-brightness: var(--tw-empty, );--tw-contrast: var(--tw-empty, );--tw-grayscale: var(--tw-empty, );--tw-hue-rotate: var(--tw-empty, );--tw-invert: var(--tw-empty, );--tw-saturate: var(--tw-empty, );--tw-sepia: var(--tw-empty, );--tw-drop-shadow: var(--tw-empty, );filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur{--tw-blur: blur(8px)}.tags-container[data-v-c4729600]{word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.container[data-v-d2a7dbe0]{border:1px solid #cccccc;border-radius:6px;padding:0 4px;min-height:30px;cursor:pointer}.taskTemplateInline[data-v-5128ec2c]{float:right}a.taskTemplateInline[data-v-5128ec2c]{margin-left:10px}div.taskTemplateInline[data-v-5128ec2c]{margin-top:5px!important}
|
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";
|
|
@@ -1083,7 +1083,7 @@ var __vue2_script$7 = defineComponent({
|
|
|
1083
1083
|
const nameError = ref$1(false);
|
|
1084
1084
|
const typeError = ref$1(false);
|
|
1085
1085
|
const changeVal = useChangeVal(props, emit);
|
|
1086
|
-
const
|
|
1086
|
+
const submit2 = () => {
|
|
1087
1087
|
taskForm.value.validFields((passed, ts) => {
|
|
1088
1088
|
if (passed) {
|
|
1089
1089
|
const data = {
|
|
@@ -1112,7 +1112,7 @@ var __vue2_script$7 = defineComponent({
|
|
|
1112
1112
|
emit("update:value", data);
|
|
1113
1113
|
};
|
|
1114
1114
|
return {
|
|
1115
|
-
submit,
|
|
1115
|
+
submit: submit2,
|
|
1116
1116
|
taskForm,
|
|
1117
1117
|
changeVisible,
|
|
1118
1118
|
changeVal,
|
|
@@ -1171,6 +1171,10 @@ var __vue2_script$6 = defineComponent({
|
|
|
1171
1171
|
inline: {
|
|
1172
1172
|
type: Boolean,
|
|
1173
1173
|
default: false
|
|
1174
|
+
},
|
|
1175
|
+
width: {
|
|
1176
|
+
type: Number,
|
|
1177
|
+
default: 300
|
|
1174
1178
|
}
|
|
1175
1179
|
},
|
|
1176
1180
|
setup(props, { emit }) {
|
|
@@ -1193,7 +1197,7 @@ var render$6 = function() {
|
|
|
1193
1197
|
var _vm = this;
|
|
1194
1198
|
var _h = _vm.$createElement;
|
|
1195
1199
|
var _c = _vm._self._c || _h;
|
|
1196
|
-
return _c("div", { staticClass: "filter mb-5" }, [_c("ant-input", {
|
|
1200
|
+
return _c("div", { staticClass: "filter mb-5" }, [_c("ant-input", { style: "width:" + _vm.width + "px", attrs: { "value": _vm.conditions.keywords }, on: { "input": function($event) {
|
|
1197
1201
|
return _vm.changeVal("keywords", $event.target.value);
|
|
1198
1202
|
} }, scopedSlots: _vm._u([{ key: "suffix", fn: function() {
|
|
1199
1203
|
return void 0;
|
|
@@ -1206,7 +1210,7 @@ var render$6 = function() {
|
|
|
1206
1210
|
var staticRenderFns$6 = [];
|
|
1207
1211
|
var index_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
|
|
1208
1212
|
const __cssModules$6 = {};
|
|
1209
|
-
var __component__$6 = /* @__PURE__ */ normalizeComponent(__vue2_script$6, render$6, staticRenderFns$6, false, __vue2_injectStyles$6, "
|
|
1213
|
+
var __component__$6 = /* @__PURE__ */ normalizeComponent(__vue2_script$6, render$6, staticRenderFns$6, false, __vue2_injectStyles$6, "5128ec2c", null, null);
|
|
1210
1214
|
function __vue2_injectStyles$6(context) {
|
|
1211
1215
|
for (let o in __cssModules$6) {
|
|
1212
1216
|
this[o] = __cssModules$6[o];
|
|
@@ -2408,7 +2412,7 @@ var __vue2_script$4 = defineComponent({
|
|
|
2408
2412
|
},
|
|
2409
2413
|
addedTasks: {
|
|
2410
2414
|
type: Array,
|
|
2411
|
-
|
|
2415
|
+
default: () => []
|
|
2412
2416
|
},
|
|
2413
2417
|
lawFirmId: {
|
|
2414
2418
|
type: Number,
|
|
@@ -2431,8 +2435,8 @@ var __vue2_script$4 = defineComponent({
|
|
|
2431
2435
|
refetch,
|
|
2432
2436
|
dataSource,
|
|
2433
2437
|
pagination,
|
|
2434
|
-
changePagination,
|
|
2435
2438
|
AssigneeTypesText,
|
|
2439
|
+
changePagination,
|
|
2436
2440
|
addTask,
|
|
2437
2441
|
editTask,
|
|
2438
2442
|
removeTask
|
|
@@ -2443,12 +2447,14 @@ var render$4 = function() {
|
|
|
2443
2447
|
var _vm = this;
|
|
2444
2448
|
var _h = _vm.$createElement;
|
|
2445
2449
|
var _c = _vm._self._c || _h;
|
|
2446
|
-
return _c("
|
|
2450
|
+
return _c("div", [_vm._t("default", function() {
|
|
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 } })];
|
|
2452
|
+
}, { "loading": _vm.loading, "dataSource": _vm.dataSource, "pagination": _vm.pagination, "AssigneeTypesText": _vm.AssigneeTypesText, "changePagination": _vm.changePagination })], 2);
|
|
2447
2453
|
};
|
|
2448
2454
|
var staticRenderFns$4 = [];
|
|
2449
2455
|
var TaskTable_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2450
2456
|
const __cssModules$4 = {};
|
|
2451
|
-
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);
|
|
2452
2458
|
function __vue2_injectStyles$4(context) {
|
|
2453
2459
|
for (let o in __cssModules$4) {
|
|
2454
2460
|
this[o] = __cssModules$4[o];
|
|
@@ -2462,7 +2468,6 @@ var __vue2_script$3 = defineComponent({
|
|
|
2462
2468
|
components: {
|
|
2463
2469
|
TaskTable,
|
|
2464
2470
|
TaskTemplateFilter,
|
|
2465
|
-
AntModal: Modal,
|
|
2466
2471
|
AntButton: Button,
|
|
2467
2472
|
AntBadge: Badge
|
|
2468
2473
|
},
|
|
@@ -2482,15 +2487,21 @@ var __vue2_script$3 = defineComponent({
|
|
|
2482
2487
|
taskSettingPageUrl: {
|
|
2483
2488
|
type: String,
|
|
2484
2489
|
required: true
|
|
2490
|
+
},
|
|
2491
|
+
showPage: {
|
|
2492
|
+
type: Boolean,
|
|
2493
|
+
default: false
|
|
2485
2494
|
}
|
|
2486
2495
|
},
|
|
2487
|
-
setup() {
|
|
2496
|
+
setup(props) {
|
|
2488
2497
|
const taskTable = ref$1(null);
|
|
2489
2498
|
const conditions = useSearchTaskConditions();
|
|
2499
|
+
const currentComponent = shallowRef(props.showPage ? Card : Modal);
|
|
2490
2500
|
return {
|
|
2491
2501
|
taskTable,
|
|
2492
2502
|
conditions,
|
|
2493
|
-
AssigneeTypes
|
|
2503
|
+
AssigneeTypes,
|
|
2504
|
+
currentComponent
|
|
2494
2505
|
};
|
|
2495
2506
|
}
|
|
2496
2507
|
});
|
|
@@ -2498,7 +2509,7 @@ var render$3 = function() {
|
|
|
2498
2509
|
var _vm = this;
|
|
2499
2510
|
var _h = _vm.$createElement;
|
|
2500
2511
|
var _c = _vm._self._c || _h;
|
|
2501
|
-
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) {
|
|
2502
2513
|
return _vm.$emit("update:visible", false);
|
|
2503
2514
|
} }, scopedSlots: _vm._u([{ key: "footer", fn: function() {
|
|
2504
2515
|
return [_c("ant-button", { staticStyle: { "margin-right": "20px" }, on: { "click": function($event) {
|
|
@@ -2506,7 +2517,7 @@ var render$3 = function() {
|
|
|
2506
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) {
|
|
2507
2518
|
return _vm.$emit("update:reviewModalVisible", true);
|
|
2508
2519
|
} } }, [_vm._v(" " + _vm._s(_vm.$t("message.reviewTasks")) + " ")])], 1)];
|
|
2509
|
-
}, 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) {
|
|
2510
2521
|
_vm.conditions = $event;
|
|
2511
2522
|
}, "update:newTaskVisible": function($event) {
|
|
2512
2523
|
return _vm.$emit("update:newTaskVisible", true);
|
|
@@ -2516,12 +2527,18 @@ var render$3 = function() {
|
|
|
2516
2527
|
return _vm.$emit("update:tempTask", $event);
|
|
2517
2528
|
}, "update:newTaskVisible": function($event) {
|
|
2518
2529
|
return _vm.$emit("update:newTaskVisible", $event);
|
|
2519
|
-
} }
|
|
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);
|
|
2520
2537
|
};
|
|
2521
2538
|
var staticRenderFns$3 = [];
|
|
2522
2539
|
var MainModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2523
2540
|
const __cssModules$3 = {};
|
|
2524
|
-
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);
|
|
2525
2542
|
function __vue2_injectStyles$3(context) {
|
|
2526
2543
|
for (let o in __cssModules$3) {
|
|
2527
2544
|
this[o] = __cssModules$3[o];
|
|
@@ -2623,47 +2640,73 @@ var ReviewModal = /* @__PURE__ */ function() {
|
|
|
2623
2640
|
}();
|
|
2624
2641
|
const useMutateTaskTemplate = () => useMutation(UpdateTaskTemplateMutation);
|
|
2625
2642
|
const useCreateTaskTemplate = () => useMutation(CreateTaskTemplateMutation);
|
|
2643
|
+
const submit = async (record, updateTemplate, createTemplate) => {
|
|
2644
|
+
var _a2, _b, _c, _d;
|
|
2645
|
+
let newRecord = {};
|
|
2646
|
+
let res;
|
|
2647
|
+
let success;
|
|
2648
|
+
const isUpdate = !!record.taskTemplateId;
|
|
2649
|
+
if (isUpdate) {
|
|
2650
|
+
res = await updateTemplate.mutate(record);
|
|
2651
|
+
newRecord = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.updateTaskTemplate.updatedTaskTemplate) || {};
|
|
2652
|
+
success = ((_b = res == null ? void 0 : res.data) == null ? void 0 : _b.updateTaskTemplate.code) === ResponseCode.success;
|
|
2653
|
+
} else {
|
|
2654
|
+
res = await createTemplate.mutate(record);
|
|
2655
|
+
newRecord = ((_c = res == null ? void 0 : res.data) == null ? void 0 : _c.createTaskTemplate.newTaskTemplate) || {};
|
|
2656
|
+
success = ((_d = res == null ? void 0 : res.data) == null ? void 0 : _d.createTaskTemplate.code) === ResponseCode.success;
|
|
2657
|
+
}
|
|
2658
|
+
if (success) {
|
|
2659
|
+
message.success("Success!");
|
|
2660
|
+
} else {
|
|
2661
|
+
message.error("Failed!");
|
|
2662
|
+
}
|
|
2663
|
+
return {
|
|
2664
|
+
isUpdate,
|
|
2665
|
+
newRecord,
|
|
2666
|
+
success
|
|
2667
|
+
};
|
|
2668
|
+
};
|
|
2626
2669
|
const UpdateTaskTemplateMutation = gql`
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
) {
|
|
2633
|
-
updateTaskTemplate(
|
|
2634
|
-
selfUserId: $selfUserId
|
|
2635
|
-
selfLawFirmId: $selfLawFirmId
|
|
2636
|
-
taskTemplateObj: $taskTemplateObj
|
|
2637
|
-
taskTemplateId: $taskTemplateId
|
|
2670
|
+
mutation updateTaskTemplate(
|
|
2671
|
+
$selfUserId: Int!
|
|
2672
|
+
$selfLawFirmId: Int!
|
|
2673
|
+
$taskTemplateObj: TaskTemplateInput!
|
|
2674
|
+
$taskTemplateId: Int!
|
|
2638
2675
|
) {
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2676
|
+
updateTaskTemplate(
|
|
2677
|
+
selfUserId: $selfUserId
|
|
2678
|
+
selfLawFirmId: $selfLawFirmId
|
|
2679
|
+
taskTemplateObj: $taskTemplateObj
|
|
2680
|
+
taskTemplateId: $taskTemplateId
|
|
2681
|
+
) {
|
|
2682
|
+
code
|
|
2683
|
+
message
|
|
2684
|
+
updatedTaskTemplate {
|
|
2685
|
+
...taskTemplate
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2644
2688
|
}
|
|
2645
|
-
|
|
2646
|
-
${taskTemplateFragment}
|
|
2689
|
+
${taskTemplateFragment}
|
|
2647
2690
|
`;
|
|
2648
2691
|
const CreateTaskTemplateMutation = gql`
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
) {
|
|
2654
|
-
createTaskTemplate(
|
|
2655
|
-
selfUserId: $selfUserId
|
|
2656
|
-
selfLawFirmId: $selfLawFirmId
|
|
2657
|
-
taskTemplateObj: $taskTemplateObj
|
|
2692
|
+
mutation createTaskTemplate(
|
|
2693
|
+
$selfUserId: Int!
|
|
2694
|
+
$selfLawFirmId: Int!
|
|
2695
|
+
$taskTemplateObj: TaskTemplateInput!
|
|
2658
2696
|
) {
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2697
|
+
createTaskTemplate(
|
|
2698
|
+
selfUserId: $selfUserId
|
|
2699
|
+
selfLawFirmId: $selfLawFirmId
|
|
2700
|
+
taskTemplateObj: $taskTemplateObj
|
|
2701
|
+
) {
|
|
2702
|
+
code
|
|
2703
|
+
message
|
|
2704
|
+
newTaskTemplate {
|
|
2705
|
+
...taskTemplate
|
|
2706
|
+
}
|
|
2707
|
+
}
|
|
2664
2708
|
}
|
|
2665
|
-
|
|
2666
|
-
${taskTemplateFragment}
|
|
2709
|
+
${taskTemplateFragment}
|
|
2667
2710
|
`;
|
|
2668
2711
|
/*! *****************************************************************************
|
|
2669
2712
|
Copyright (c) Microsoft Corporation.
|
|
@@ -6301,12 +6344,11 @@ var __vue2_script$1 = defineComponent({
|
|
|
6301
6344
|
},
|
|
6302
6345
|
value: {
|
|
6303
6346
|
type: Array,
|
|
6304
|
-
required: true,
|
|
6305
6347
|
default: () => []
|
|
6306
6348
|
},
|
|
6307
6349
|
reviewText: {
|
|
6308
6350
|
type: String,
|
|
6309
|
-
|
|
6351
|
+
default: "Add"
|
|
6310
6352
|
},
|
|
6311
6353
|
showSendEmail: {
|
|
6312
6354
|
type: Boolean,
|
|
@@ -6317,12 +6359,15 @@ var __vue2_script$1 = defineComponent({
|
|
|
6317
6359
|
default: false
|
|
6318
6360
|
},
|
|
6319
6361
|
taskSettingPageUrl: {
|
|
6320
|
-
type: String
|
|
6321
|
-
required: true
|
|
6362
|
+
type: String
|
|
6322
6363
|
},
|
|
6323
6364
|
allowClear: {
|
|
6324
6365
|
type: Boolean,
|
|
6325
6366
|
default: false
|
|
6367
|
+
},
|
|
6368
|
+
pageMode: {
|
|
6369
|
+
type: Boolean,
|
|
6370
|
+
default: false
|
|
6326
6371
|
}
|
|
6327
6372
|
},
|
|
6328
6373
|
setup(props, { emit }) {
|
|
@@ -6353,24 +6398,13 @@ var __vue2_script$1 = defineComponent({
|
|
|
6353
6398
|
tempTask.value = defaultTaskTemplate;
|
|
6354
6399
|
}
|
|
6355
6400
|
});
|
|
6356
|
-
const
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
let success;
|
|
6362
|
-
if (record.taskTemplateId) {
|
|
6363
|
-
res = await updateTemplate.mutate(record);
|
|
6364
|
-
newRecord = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.updateTaskTemplate.updatedTaskTemplate) || {};
|
|
6365
|
-
success = ((_b = res == null ? void 0 : res.data) == null ? void 0 : _b.updateTaskTemplate.code) === ResponseCode.success;
|
|
6366
|
-
} else {
|
|
6367
|
-
res = await createTemplate.mutate(record);
|
|
6368
|
-
newRecord = ((_c = res == null ? void 0 : res.data) == null ? void 0 : _c.createTaskTemplate.newTaskTemplate) || {};
|
|
6369
|
-
success = ((_d = res == null ? void 0 : res.data) == null ? void 0 : _d.createTaskTemplate.code) === ResponseCode.success;
|
|
6370
|
-
}
|
|
6401
|
+
const _submit = async (record) => {
|
|
6402
|
+
const {
|
|
6403
|
+
newRecord,
|
|
6404
|
+
success
|
|
6405
|
+
} = await submit(record, updateTemplate, createTemplate);
|
|
6371
6406
|
if (success) {
|
|
6372
6407
|
newTaskVisible.value = false;
|
|
6373
|
-
message.success("Success!");
|
|
6374
6408
|
mainModal.value.taskTable.refetch();
|
|
6375
6409
|
if (reviewModalVisible.value) {
|
|
6376
6410
|
const newValue = addedTasks.value.map((originTask) => {
|
|
@@ -6381,15 +6415,13 @@ var __vue2_script$1 = defineComponent({
|
|
|
6381
6415
|
});
|
|
6382
6416
|
emit("update:value", newValue.map(({ id }) => id));
|
|
6383
6417
|
}
|
|
6384
|
-
} else {
|
|
6385
|
-
message.error("Failed!");
|
|
6386
6418
|
}
|
|
6387
6419
|
};
|
|
6388
6420
|
const submitting = computed(() => updateTemplate.loading.value || createTemplate.loading.value);
|
|
6389
6421
|
return {
|
|
6390
6422
|
mainModal,
|
|
6391
6423
|
reviewModal,
|
|
6392
|
-
|
|
6424
|
+
_submit,
|
|
6393
6425
|
newTaskVisible,
|
|
6394
6426
|
tempTask,
|
|
6395
6427
|
reviewModalVisible,
|
|
@@ -6402,7 +6434,7 @@ var render$1 = function() {
|
|
|
6402
6434
|
var _vm = this;
|
|
6403
6435
|
var _h = _vm.$createElement;
|
|
6404
6436
|
var _c = _vm._self._c || _h;
|
|
6405
|
-
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) {
|
|
6437
|
+
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) {
|
|
6406
6438
|
_vm.tempTask = $event;
|
|
6407
6439
|
}, "update:temp-task": function($event) {
|
|
6408
6440
|
_vm.tempTask = $event;
|
|
@@ -6420,7 +6452,13 @@ var render$1 = function() {
|
|
|
6420
6452
|
_vm.addedTasks = $event;
|
|
6421
6453
|
}, "update:visible": function($event) {
|
|
6422
6454
|
return _vm.$emit("update:visible", $event);
|
|
6423
|
-
} }
|
|
6455
|
+
} }, scopedSlots: _vm._u([{ key: "default", fn: function(ref2) {
|
|
6456
|
+
var loading = ref2.loading;
|
|
6457
|
+
var dataSource = ref2.dataSource;
|
|
6458
|
+
var pagination = ref2.pagination;
|
|
6459
|
+
var changePagination = ref2.changePagination;
|
|
6460
|
+
return [_vm._t("table", null, { "loading": loading, "dataSource": dataSource, "pagination": pagination, "changePagination": changePagination })];
|
|
6461
|
+
} }], 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) {
|
|
6424
6462
|
_vm.tempTask = $event;
|
|
6425
6463
|
}, "update:temp-task": function($event) {
|
|
6426
6464
|
_vm.tempTask = $event;
|
|
@@ -6442,12 +6480,12 @@ var render$1 = function() {
|
|
|
6442
6480
|
_vm.tempTask = $event;
|
|
6443
6481
|
}, "update:visible": function($event) {
|
|
6444
6482
|
_vm.newTaskVisible = $event;
|
|
6445
|
-
}, "submit": _vm.
|
|
6483
|
+
}, "submit": _vm._submit } })], 1);
|
|
6446
6484
|
};
|
|
6447
6485
|
var staticRenderFns$1 = [];
|
|
6448
6486
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
6449
6487
|
const __cssModules$1 = {};
|
|
6450
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "
|
|
6488
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "246717bb", null, null);
|
|
6451
6489
|
function __vue2_injectStyles$1(context) {
|
|
6452
6490
|
for (let o in __cssModules$1) {
|
|
6453
6491
|
this[o] = __cssModules$1[o];
|
|
@@ -6485,4 +6523,4 @@ function __vue2_injectStyles(context) {
|
|
|
6485
6523
|
var index = /* @__PURE__ */ function() {
|
|
6486
6524
|
return __component__.exports;
|
|
6487
6525
|
}();
|
|
6488
|
-
export { AssigneeTag, NewTask, index$3 as ProfileSelect, TagsWithTooltip, index$1 as TaskCart, TaskForm, TaskTable, TaskTemplateFilter, index as TestComponent, index$2 as forms, getLanguageMessage, refactorParams as refactorTaskTemplateParams, useCreateTaskTemplate, useMutateTaskTemplate, useSearchTaskConditions, useSearchTaskTemplates };
|
|
6526
|
+
export { AssigneeTag, NewTask, index$3 as ProfileSelect, TagsWithTooltip, index$1 as TaskCart, TaskForm, TaskTable, TaskTemplateFilter, index as TestComponent, index$2 as forms, getLanguageMessage, refactorParams as refactorTaskTemplateParams, submit as submitTaskTemplate, useCreateTaskTemplate, useMutateTaskTemplate, useSearchTaskConditions, useSearchTaskTemplates };
|