centaline-data-driven 1.6.40 → 1.6.41

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": "centaline-data-driven",
3
- "version": "1.6.40",
3
+ "version": "1.6.41",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/release-log.md CHANGED
@@ -1,3 +1,10 @@
1
+ # v1.6.41
2
+ 2024-05-07
3
+
4
+ 优化
5
+
6
+ 附件上传添加上传文件大小的限制[code2,单位M],默认不限制
7
+
1
8
  # v1.6.40
2
9
  2024-04-10
3
10
 
@@ -36,7 +36,7 @@
36
36
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/workwxmanage/WorkWXApplicationList/getLayoutOfSearch'" :searchDataApi="'/workwxmanage/WorkWXApplicationList/getList'"></ct-searchlist> -->
37
37
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/UrgentResponsiblePersonList/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/UrgentResponsiblePersonList/getList'"></ct-searchlist> -->
38
38
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/ProjectCustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/ProjectCustomerList/getList'"></ct-searchlist> -->
39
- <ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/MyCustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/MyCustomerList/getList'"></ct-searchlist>
39
+ <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/MyCustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/MyCustomerList/getList'"></ct-searchlist> -->
40
40
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/CustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/CustomerList/getList'"></ct-searchlist> -->
41
41
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customerquery/publiccustcalltaskreferrallist/getLayoutOfSearch'" :searchDataApi="'/customerquery/publiccustcalltaskreferrallist/getList'"></ct-searchlist> -->
42
42
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customerquery/publiccustcalltaskreferrallist/getLayoutOfSearch'" :searchDataApi="'/customerquery/publiccustcalltaskreferrallist/getList'"></ct-searchlist> -->
@@ -46,6 +46,7 @@
46
46
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/employeelist/getLayoutOfSearch'" :searchDataApi="'/employeelist/getList'"></ct-searchlist> -->
47
47
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/estatemanage/estatlist/getLayoutOfSearch'" :searchDataApi="'/estatemanage/estatlist/getList'"></ct-searchlist> -->
48
48
  <!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/system/AreaList/getLayoutOfSearch'" :searchDataApi="'/system/AreaList/getList'"></ct-searchlist> -->
49
+ <ct-searchlist :apiParam="para" :searchConditionApi="'/selectionactivitymanage/EvaluationActWorksList/getLayoutOfSearch'" :searchDataApi="'/selectionactivitymanage/EvaluationActWorksList/getListOfSearchModel'"></ct-searchlist>
49
50
  <!-- CCES -->
50
51
 
51
52
  <!-- <ct-searchlist :apiParam="para"
@@ -490,6 +490,10 @@ export default {
490
490
  handleDownload(file) {
491
491
  },
492
492
  handleChange(file, fileList) {
493
+ if (this.model.maxSize && file.size > this.model.maxSize) {
494
+ this.$message.error(`文件大小不能超过 ${this.model.maxSize / (1024 * 1024)}MB`);
495
+ fileList.pop(); // 移除不符合要求的文件
496
+ }
493
497
  this.changeHandler(this.model.value);
494
498
  },
495
499
  //上传之前的钩子
@@ -612,7 +612,13 @@ const box = function (source, fileSourceList, router, optionApi,videoPlayIconUrl
612
612
  configurable: true
613
613
  });
614
614
  return rtnFormObj;
615
- }
615
+ },
616
+ get maxSize() {
617
+ if(source.code2){
618
+ return source.code2 * 1024 * 1024;
619
+ }
620
+ return null;
621
+ },
616
622
  };
617
623
  rtn = base.copy(Base(data), rtn);
618
624
  rtn = base.copy(rtn, valid.Init(rtn));
@@ -349,6 +349,11 @@ const Enum = {
349
349
  ///
350
350
  /// </summary>
351
351
  Data: 4,
352
+
353
+ /**
354
+ * url
355
+ **/
356
+ Url:5,
352
357
  },
353
358
 
354
359
  /// <summary>
package/src/main.js CHANGED
@@ -76,7 +76,7 @@ Vue.use(centaline, {
76
76
  estateId: '',
77
77
 
78
78
  authObject: '{"currentEstate":{"estateId":"241113105409757BFF2887A7472E99D2","estateName":"U%E7%89%88%E6%A5%BC%E7%9B%98%E6%8C%89%E7%82%B9%E4%BD%8D","estDeptPath":"001.200.063.001"},"platform":1,"osVersion":"","machineCode":"eeb8e2fc88b5bcbc2e4f297777142537","token":"","random":"jijlB","time":1744183725353,"sign":"528fb9ea127871dacfda5d2e56abe364","systemSource":"CCESU","empNo":"maopp","empId":"2411120940038E8B1C87525447179987","clientVersion":"12.5","empName":"%E6%AF%9B%E7%AE%A1%E7%90%86","roleName":"%E9%9B%86%E5%9B%A2IT%E7%AE%A1%E7%90%86%E5%91%98","deptFullName":"%E6%9C%AA%E5%8C%B9%E9%85%8DCCHR%E4%B8%ADHROC%E9%83%A8%E9%97%A8%2F%E9%9B%86%E5%9B%A2IT"}',
79
- AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImY1MGUyMTk2LTA3MjUtNDc3NS1iMjU0LTA1MmEyM2I3NWIwZiJ9.wOVpO974fdap7nW1JZeG3rGaMGDY6ktlRzHWwJPXXtYxpXeBtDaRgBRwnol9x5jGlEHmsGckEIBgfksSivbOYg',
79
+ AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjI1ZjYwYTJkLWEwNmMtNGRmNy1iNTQ1LTY1YTAwNjk5ZGI2OSJ9.8J9_ATCF2DYDE1wVr5cGoJgT9kNf1kajqkYtcr2se6s44PPMWOGaIzmpzVQTm1_Q9WD9laGM2BtKcfK2n2_aiw',
80
80
  };
81
81
  },
82
82
  // 请求完成事件,可判断是否登录过期执行响应操作