@ailaw/venus 1.106.0 → 1.108.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 +36 -15
- package/package.json +1 -1
package/dist/venus.es.js
CHANGED
|
@@ -163,6 +163,9 @@ const meQuery = gql`
|
|
|
163
163
|
me {
|
|
164
164
|
id
|
|
165
165
|
lawFirmId
|
|
166
|
+
lawFirm {
|
|
167
|
+
licenseTags
|
|
168
|
+
}
|
|
166
169
|
}
|
|
167
170
|
}
|
|
168
171
|
`;
|
|
@@ -170,7 +173,14 @@ function useMe() {
|
|
|
170
173
|
const { result } = useQuery(meQuery, void 0, {
|
|
171
174
|
fetchPolicy: "cache-first"
|
|
172
175
|
});
|
|
173
|
-
return useResult(result
|
|
176
|
+
return useResult(result, {
|
|
177
|
+
id: "",
|
|
178
|
+
lawFirmId: -1,
|
|
179
|
+
lawFirm: {
|
|
180
|
+
id: -1,
|
|
181
|
+
licenseTags: []
|
|
182
|
+
}
|
|
183
|
+
});
|
|
174
184
|
}
|
|
175
185
|
const profilesQuery = gql`
|
|
176
186
|
query ProfileSearch(
|
|
@@ -2244,25 +2254,33 @@ var TaskTablePure = /* @__PURE__ */ function() {
|
|
|
2244
2254
|
return __component__$5.exports;
|
|
2245
2255
|
}();
|
|
2246
2256
|
var useSearchTaskTemplates = (pagination, conditions = ref({}), lawFirmId, withGallery = true) => {
|
|
2257
|
+
var _a, _b, _c;
|
|
2247
2258
|
const startIndex = computed(() => (pagination.value.current - 1) * pagination.value.pageSize);
|
|
2248
2259
|
const endIndex = computed(() => startIndex.value + pagination.value.pageSize);
|
|
2249
2260
|
watch(() => conditions.value, () => {
|
|
2250
2261
|
pagination.value.current = 1;
|
|
2251
2262
|
pagination.value.total = 0;
|
|
2252
2263
|
});
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2264
|
+
const me = useMe();
|
|
2265
|
+
return useQuery(SearchTaskTemplatesQuery, () => {
|
|
2266
|
+
var _a2, _b2;
|
|
2267
|
+
return {
|
|
2268
|
+
query: {
|
|
2269
|
+
includeGallery: withGallery,
|
|
2270
|
+
keywords: conditions.value.keywords || "",
|
|
2271
|
+
isEmployee: conditions.value.isEmployee,
|
|
2272
|
+
taskTemplateId: conditions.value.taskTemplateId,
|
|
2273
|
+
sortBy: TaskTemplateSortBy.name,
|
|
2274
|
+
sortOrder: SortOrder.asc,
|
|
2275
|
+
tags: (_b2 = (_a2 = me.value) == null ? void 0 : _a2.lawFirm) == null ? void 0 : _b2.licenseTags
|
|
2276
|
+
},
|
|
2277
|
+
startIndex: startIndex.value,
|
|
2278
|
+
endIndex: endIndex.value,
|
|
2279
|
+
lawFirmId
|
|
2280
|
+
};
|
|
2281
|
+
}, {
|
|
2282
|
+
enabled: !!((_c = (_b = (_a = me.value) == null ? void 0 : _a.lawFirm) == null ? void 0 : _b.licenseTags) == null ? void 0 : _c.length)
|
|
2283
|
+
});
|
|
2266
2284
|
};
|
|
2267
2285
|
const taskTemplateFragment = gql`
|
|
2268
2286
|
fragment taskTemplate on TaskTemplate {
|
|
@@ -2682,11 +2700,13 @@ const CreateTaskTemplateMutation = gql`
|
|
|
2682
2700
|
$selfUserId: Int!
|
|
2683
2701
|
$selfLawFirmId: Int!
|
|
2684
2702
|
$taskTemplateObj: TaskTemplateInput!
|
|
2703
|
+
$tag: String!
|
|
2685
2704
|
) {
|
|
2686
2705
|
createTaskTemplate(
|
|
2687
2706
|
selfUserId: $selfUserId
|
|
2688
2707
|
selfLawFirmId: $selfLawFirmId
|
|
2689
2708
|
taskTemplateObj: $taskTemplateObj
|
|
2709
|
+
tag: $tag
|
|
2690
2710
|
) {
|
|
2691
2711
|
code
|
|
2692
2712
|
message
|
|
@@ -2844,6 +2864,7 @@ var __vue2_script$1 = defineComponent({
|
|
|
2844
2864
|
});
|
|
2845
2865
|
};
|
|
2846
2866
|
const _submit = async (record) => {
|
|
2867
|
+
record.tag = me.value.lawFirm.licenseTags[0];
|
|
2847
2868
|
const { newRecord, success, isUpdate } = await submit(record, updateTemplate, createTemplate);
|
|
2848
2869
|
if (success) {
|
|
2849
2870
|
writeQuery(record.taskTemplateId, newRecord, isUpdate);
|
|
@@ -2934,7 +2955,7 @@ var render$1 = function() {
|
|
|
2934
2955
|
var staticRenderFns$1 = [];
|
|
2935
2956
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2936
2957
|
const __cssModules$1 = {};
|
|
2937
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "
|
|
2958
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "183a0848", null, null);
|
|
2938
2959
|
function __vue2_injectStyles$1(context) {
|
|
2939
2960
|
for (let o in __cssModules$1) {
|
|
2940
2961
|
this[o] = __cssModules$1[o];
|