look-ui 1.2.11 → 1.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "look-ui",
3
- "version": "1.2.11",
3
+ "version": "1.2.13",
4
4
  "description": "a ui library which is based on element-ui",
5
5
  "main": "./dist/look-ui.common.js",
6
6
  "scripts": {
package/utils/api.js CHANGED
@@ -1,10 +1,37 @@
1
1
  import request from './request';
2
2
  import Qs from 'qs';
3
3
 
4
- export const searchRepeated = function (url, data) {
4
+ export const searchRepeated = function (url, data, ticket) {
5
5
  return request({
6
6
  url: `${url}/searchRepeated/batchSearch`,
7
+ headers: { 'Accesstoken': ticket },
7
8
  method: 'post',
8
9
  data
9
10
  });
10
11
  };
12
+
13
+ export const searchAttachment = function (url, data, ticket) {
14
+ return request({
15
+ url: `${url}/api/archive/search/attachment`,
16
+ headers: { 'Accesstoken': ticket },
17
+ method: 'post',
18
+ data
19
+ });
20
+ };
21
+
22
+ export const searchPersonal = function (url, data, ticket) {
23
+ return request({
24
+ url: `${url}/api/archive/search/personal`,
25
+ headers: { 'Accesstoken': ticket },
26
+ method: 'post',
27
+ data
28
+ });
29
+ };
30
+
31
+ export const searchUnit = function (url, data) {
32
+ return request({
33
+ url: `${url}/api/archive/search/unit`,
34
+ method: 'post',
35
+ data
36
+ });
37
+ };