fmui-base 2.2.46 → 2.2.47

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/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.2.47: 选人组件党员,非党员默认选中支持配置
6
7
  - 2.2.46: 结束回调
7
8
  - 2.2.45: 北京CA
8
9
  - 2.2.44: 多行文本不限制高度
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  // 这里放置全局的变量
7
7
  // const isDev = process.env.NODE_ENV == "development";
8
- // const isDev = process.env.envType == "api" ;
9
- var isDev = false;
8
+ var isDev = process.env.envType == "api";
10
9
  // const isDev = process.env.envType == "mock" ;
11
10
  var context = document.getElementById('context').value;
12
11
  var token = document.getElementById('token').value;
@@ -32,7 +31,7 @@ exports.default = {
32
31
  URLS: {
33
32
  userInfo: urlPrefix + 'currenUserInfo', // 获取个人信息
34
33
  transaction: {
35
- undo: urlPrefix + 'queryProcessPage?type=0',
34
+ undo: isDev ? "/mock/query/queryProcessPage.json?type=0" : urlPrefix + 'queryProcessPage?type=0',
36
35
  // undo: urlPrefix_a + 'getTransactionList_Undo.json',
37
36
  unread: urlPrefix + 'queryProcessPage?type=1',
38
37
  done: urlPrefix + 'queryProcessPage?type=2',
@@ -318,6 +318,19 @@ var Page = function (_React$Component) {
318
318
  _db2.default.FlowModuleAPI.getSysSettingByMark({ mark: 'selUserIsDJ' }).then(function (content) {
319
319
  if (content && content == '1') {
320
320
  _this.state.isShowSelectCpc = true;
321
+ _db2.default.FlowModuleAPI.getSysSettingByMark({ mark: 'isDefaultdy' }).then(function (content2) {
322
+ //非党员
323
+ console.log("isDefaultdy", content2);
324
+ if (content2 && content2 == '1') {
325
+ _this.state.curSelectCpc = '0';
326
+ _this.state.selectCpcOptions = [{ value: "1", checked: false, content: '党员', disable: false }, { value: "0", checked: true, content: '非党员', disable: false }];
327
+ } else if (content2 == '2') {
328
+ _this.state.curSelectCpc = '';
329
+ his.state.curSelectCpc = [{ value: "1", checked: true, content: '党员', disable: false }, { value: "0", checked: true, content: '非党员', disable: false }];
330
+ }
331
+ }).catch(function (error) {
332
+ console.error(error);
333
+ });
321
334
  }
322
335
  }).catch(function (error) {
323
336
  console.error(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.2.46",
3
+ "version": "2.2.47",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",