cloud-web-corejs 1.0.31 → 1.0.32

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.
Files changed (49) hide show
  1. package/package.json +1 -1
  2. package/src/components/statusTag/index.vue +14 -14
  3. package/src/components/statusTag/mixins.js +5 -5
  4. package/src/components/table/index.js +10 -10
  5. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
  6. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +379 -379
  7. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +125 -125
  8. package/src/components/xform/form-render/container-item/data-table-mixin.js +18 -18
  9. package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -2
  10. package/src/views/bd/setting/bd_attach_setting/edit.vue +7 -6
  11. package/src/views/bd/setting/bd_attach_setting/list.vue +2 -2
  12. package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +5 -5
  13. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +15 -23
  14. package/src/views/bd/setting/form_script/dialog.vue +8 -7
  15. package/src/views/bd/setting/form_script/edit.vue +9 -9
  16. package/src/views/bd/setting/form_script/edit1.vue +20 -18
  17. package/src/views/bd/setting/form_script/form_list.vue +5 -5
  18. package/src/views/bd/setting/form_script/list1.vue +8 -6
  19. package/src/views/bd/setting/form_script/mixins/dialog.js +15 -23
  20. package/src/views/bd/setting/form_script/mixins/form_list.js +52 -36
  21. package/src/views/bd/setting/form_script/mixins/list.js +19 -27
  22. package/src/views/bd/setting/form_script/mixins/list1.js +28 -36
  23. package/src/views/bd/setting/form_template/dialog.vue +6 -6
  24. package/src/views/bd/setting/form_template/edit.vue +30 -37
  25. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +3 -3
  26. package/src/views/bd/setting/form_template/ftHistoryDialog.vue +5 -4
  27. package/src/views/bd/setting/form_template/itemEdit.vue +29 -25
  28. package/src/views/bd/setting/form_template/itemList.vue +1 -1
  29. package/src/views/bd/setting/form_template/list.vue +15 -13
  30. package/src/views/bd/setting/form_template/mixins/dialog.js +7 -14
  31. package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +4 -4
  32. package/src/views/bd/setting/form_template/mixins/itemList.js +43 -57
  33. package/src/views/bd/setting/form_template/mixins/list.js +40 -77
  34. package/src/views/bd/setting/form_template/preformDialog.vue +1 -1
  35. package/src/views/bd/setting/menu_kind/authDialog.vue +7 -2
  36. package/src/views/bd/setting/menu_kind/dialog.vue +2 -2
  37. package/src/views/bd/setting/menu_kind/list.vue +7 -10
  38. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +14 -33
  39. package/src/views/bd/setting/menu_kind/mixins/dialog.js +14 -18
  40. package/src/views/bd/setting/menu_kind/mixins/list.js +17 -24
  41. package/src/views/bd/setting/table_model/dialog.vue +8 -6
  42. package/src/views/bd/setting/table_model/edit.vue +79 -41
  43. package/src/views/bd/setting/table_model/list.vue +8 -11
  44. package/src/views/bd/setting/table_model/mixins/dialog.js +6 -6
  45. package/src/views/bd/setting/table_model/mixins/edit.js +54 -84
  46. package/src/views/bd/setting/table_model/mixins/list.js +26 -58
  47. package/src/views/bd/setting/table_model/mixins/zdDialog.js +14 -16
  48. package/src/views/bd/setting/table_model/zdDialog.vue +8 -6
  49. package/src/views/bd/setting/utils/index.js +60 -0
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div>
3
3
  <el-dialog
4
- title="实体历史列表"
4
+ :title="$t1('实体历史列表')"
5
5
  :append-to-body="true"
6
6
  :modal-append-to-body="true"
7
7
  :close-on-click-modal="falseValue"
@@ -28,15 +28,16 @@
28
28
  <div class="clearfix screen-btns">
29
29
  <div class="fr">
30
30
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
31
- plain>{{$t1('重置')}}
31
+ plain>{{ $t1('重置') }}
32
32
  </vxe-button>
33
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
33
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
34
+ {{ $t1('搜索') }}
34
35
  </vxe-button>
35
36
  </div>
36
37
  </div>
37
38
  <vxe-form class="screen-box" title-width="92px" title-align="right" :data="formData" @submit="searchEvent"
38
39
  @reset="resetEvent">
39
- <vxe-form-item title="模板版本:" field="formVersion">
40
+ <vxe-form-item :title="$t1('模板版本') + ':'" field="formVersion">
40
41
  <template v-slot>
41
42
  <base-input-number v-model="formData.formVersion"/>
42
43
  </template>
@@ -7,9 +7,11 @@
7
7
  {{ dataId ? $t1('查看流程模版') : $t1('新增流程模版') }}
8
8
  </div>
9
9
  <div class="fr">
10
- <el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">{{$t1('重置')}}
10
+ <el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
11
+ {{ $t1('重置') }}
12
+ </el-button>
13
+ <el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
11
14
  </el-button>
12
- <el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{$t1('保存')}}</el-button>
13
15
  </div>
14
16
  </div>
15
17
  <div class="d-cont">
@@ -20,7 +22,7 @@
20
22
  <tr>
21
23
  <th>
22
24
  <em class="f-red">*</em>
23
- 流程模版名称
25
+ {{ $t1('流程模版名称') }}
24
26
  </th>
25
27
  <td>
26
28
  <el-form-item prop="modelName" :rules="[{ required: true, trigger: 'blur' }]">
@@ -29,7 +31,7 @@
29
31
  </td>
30
32
  <th>
31
33
  <em class="f-red">*</em>
32
- 流程模版KEY
34
+ {{ $t1('流程模版KEY') }}
33
35
  </th>
34
36
  <td>
35
37
  <el-form-item prop="modelKey" :rules="[{ required: true, trigger: 'blur' }]" v-if="!dataId">
@@ -39,7 +41,7 @@
39
41
  </td>
40
42
  <th>
41
43
  <em class="f-red">*</em>
42
- 表单类型编码
44
+ {{ $t1('表单类型编码') }}
43
45
  </th>
44
46
  <td>
45
47
  {{ wfObjConfigItem.objTypeCode }}
@@ -47,69 +49,69 @@
47
49
  </tr>
48
50
  <tr>
49
51
  <th>
50
- 跳过相邻任务
52
+ {{ $t1('跳过相邻任务') }}
51
53
  </th>
52
54
  <td>
53
55
  <el-form-item prop="skipAdjacentTask" :rules="[{ required: false, trigger: 'blur' }]">
54
56
  <el-radio-group v-model="wfObjConfigItem.skipAdjacentTask">
55
- <el-radio :label="true">是</el-radio>
56
- <el-radio :label="false">否</el-radio>
57
+ <el-radio :label="true">{{ $t1('是') }}</el-radio>
58
+ <el-radio :label="false">{{ $t1('否') }}</el-radio>
57
59
  </el-radio-group>
58
60
  </el-form-item>
59
61
  </td>
60
62
  <th>
61
- 驳回后提交模式
63
+ {{ $t1('驳回后提交模式') }}
62
64
  </th>
63
65
  <td colspan="3">
64
66
  <el-form-item prop="toRejectNode" :rules="[{ required: false, trigger: 'blur' }]">
65
67
  <el-radio-group v-model="wfObjConfigItem.toRejectNode">
66
- <el-radio :label="true">由提交人确定提交节点</el-radio>
67
- <el-radio :label="false">由驳回人指定提交节点</el-radio>
68
+ <el-radio :label="true">{{ $t1('由提交人确定提交节点') }}</el-radio>
69
+ <el-radio :label="false">{{ $t1('由驳回人指定提交节点') }}</el-radio>
68
70
  </el-radio-group>
69
71
  </el-form-item>
70
72
  </td>
71
73
  </tr>
72
74
  <tr>
73
75
  <th>
74
- 流程启动处理
76
+ {{ $t1('流程启动处理') }}
75
77
  </th>
76
78
  <td colspan="5">
77
79
  <el-form-item prop="startMode" :rules="[{ required: false, trigger: 'blur' }]">
78
80
  <el-radio-group v-model="wfObjConfigItem.startMode">
79
- <el-radio :label="1">节点无候选人,提示异常</el-radio>
80
- <el-radio :label="2">节点无候选人,提示警告</el-radio>
81
- <el-radio :label="3">节点无候选人,无提示</el-radio>
81
+ <el-radio :label="1">{{ $t1('节点无候选人,提示异常') }}</el-radio>
82
+ <el-radio :label="2">{{ $t1('节点无候选人,提示警告') }}</el-radio>
83
+ <el-radio :label="3">{{ $t1('节点无候选人,无提示') }}</el-radio>
82
84
  </el-radio-group>
83
85
  </el-form-item>
84
86
  </td>
85
87
  </tr>
86
88
  <tr>
87
89
  <th>
88
- 跨任务跳过
90
+ {{ $t1('跨任务跳过') }}
89
91
  </th>
90
92
  <td>
91
93
  <el-form-item prop="skipSameUserTask" :rules="[{ required: false, trigger: 'blur' }]">
92
94
  <el-radio-group v-model="wfObjConfigItem.skipSameUserTask">
93
- <el-radio :label="true">是</el-radio>
94
- <el-radio :label="false">否</el-radio>
95
+ <el-radio :label="true">{{ $t1('是') }}</el-radio>
96
+ <el-radio :label="false">{{ $t1('否') }}</el-radio>
95
97
  </el-radio-group>
96
98
  </el-form-item>
97
99
  </td>
98
100
  <th>
99
- 是否启用
101
+ {{ $t1('是否启用') }}
100
102
  </th>
101
103
  <td>
102
104
  <el-form-item prop="enabled" :rules="[{ required: false, trigger: 'blur' }]">
103
105
  <el-radio-group v-model="wfObjConfigItem.enabled">
104
- <el-radio :label="true">是</el-radio>
105
- <el-radio :label="false">否</el-radio>
106
+ <el-radio :label="true">{{ $t1('是') }}</el-radio>
107
+ <el-radio :label="false">{{ $t1('否') }}</el-radio>
106
108
  </el-radio-group>
107
109
  </el-form-item>
108
110
  </td>
109
111
  </tr>
110
112
  <tr>
111
113
  <th>
112
- 任务action脚本<br/>
114
+ {{ $t1('任务action脚本') }}<br/>
113
115
  <scriptDescriptionButton path="static/readme/Wf.txt"></scriptDescriptionButton>
114
116
  <scriptTestButton :script.sync="wfObjConfigItem.script"></scriptTestButton>
115
117
  </th>
@@ -123,12 +125,12 @@
123
125
  <tr>
124
126
  <th class="no"></th>
125
127
  <td colspan="7">
126
- <span class="fl tips">注:流程任务执行过程中,每一次的action动作都会执行此脚本。</span>
128
+ <span class="fl tips">{{ $t1('注:流程任务执行过程中,每一次的action动作都会执行此脚本。') }}</span>
127
129
  </td>
128
130
  </tr>
129
131
  <tr>
130
132
  <th>
131
- 模板筛选脚本<br/>
133
+ {{ $t1('模板筛选脚本') }}<br/>
132
134
  <scriptDescriptionButton path="static/readme/Wf.txt"></scriptDescriptionButton>
133
135
  <scriptTestButton :script.sync="wfObjConfigItem.script"></scriptTestButton>
134
136
  </th>
@@ -143,7 +145,9 @@
143
145
  <th class="no"></th>
144
146
  <td colspan="7">
145
147
  <span
146
- class="fl tips">注:流程启动时,执行筛选脚本,返回true或者不配置筛选脚本表示选用当前模板,返回false表示不选用当前模板。</span>
148
+ class="fl tips">{{
149
+ $t1('注:流程启动时,执行筛选脚本,返回true或者不配置筛选脚本表示选用当前模板,返回false表示不选用当前模板。')
150
+ }}</span>
147
151
  </td>
148
152
  </tr>
149
153
  <tr>
@@ -16,7 +16,7 @@
16
16
  :disabled="!wfObjConfig.id">{{ $t1('新增') }}
17
17
  </vxe-button>
18
18
  <div class="txt-name el-icon-house">
19
- 表单类型名称:
19
+ {{ $t1('表单类型名称') }}:
20
20
  <span>{{ wfObjConfig.objTypeName }}</span>
21
21
  </div>
22
22
  </div>
@@ -8,7 +8,7 @@
8
8
  </el-tab-pane>
9
9
  <el-tab-pane :label="$t1('列表')" name="second">
10
10
  <div class="tree-box fl">
11
- <div class="tit"><b>表单分类</b></div>
11
+ <div class="tit"><b>{{ $t1('表单分类') }}</b></div>
12
12
  <div class="tree-btns" style="margin-top: 10px;">
13
13
  </div>
14
14
  <el-tree
@@ -45,7 +45,8 @@
45
45
  <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog()"
46
46
  v-if="isDev && currentFormType.editAuth===1">{{ $t1('新增') }}
47
47
  </vxe-button>
48
- <vxe-button status="success" class="button-sty" icon="el-icon-download" @click="jsonImport" v-if="currentFormType.editAuth===1">{{ $t1('导入发布') }}
48
+ <vxe-button status="success" class="button-sty" icon="el-icon-download" @click="jsonImport"
49
+ v-if="currentFormType.editAuth===1">{{ $t1('导入发布') }}
49
50
  </vxe-button>
50
51
  <vxe-button status="success" class="button-sty" icon="el-icon-upload2" @click="jsonExport"
51
52
  v-if="isDev && currentFormType.exportAuth===1">{{ $t1('导出发布') }}
@@ -55,20 +56,21 @@
55
56
  </template>
56
57
  <template #buttonRight>
57
58
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
58
- plain>{{$t1('重置')}}
59
+ plain>{{ $t1('重置') }}
59
60
  </vxe-button>
60
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
61
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
62
+ {{ $t1('搜索') }}
61
63
  </vxe-button>
62
64
  </template>
63
65
  <template #menuKindName>
64
- <vxe-form-item title="表单分类:" field="tag">
66
+ <vxe-form-item :title="$t1('表单分类') + ':'" field="tag">
65
67
  <template v-slot>
66
68
  <el-input v-model="currentMenuKindName" disabled></el-input>
67
69
  </template>
68
70
  </vxe-form-item>
69
71
  </template>
70
72
  <template #tag>
71
- <vxe-form-item title="项目标签:" field="tag">
73
+ <vxe-form-item :title="$t1('项目标签') + ':'" field="tag">
72
74
  <template v-slot>
73
75
  <el-input
74
76
  class="search-input"
@@ -91,7 +93,7 @@
91
93
  <projectTagView v-model="row.formTemplateTagDTOs" :readonly="true"></projectTagView>
92
94
  </template>
93
95
  </vxe-grid>
94
- <el-drawer title="流程模板" :visible.sync="showItemView" :modal="false" :wrapperClosable="false"
96
+ <el-drawer :title="$t1('流程模板')" :visible.sync="showItemView" :modal="false" :wrapperClosable="false"
95
97
  :destroy-on-close="true" size="90%" direction="btt">
96
98
  <itemList v-if="showItemView" :formTemplate="currentRow"
97
99
  @openWfDesignDialog="openWfDesignDialog"></itemList>
@@ -108,34 +110,34 @@
108
110
  </el-tab-pane>
109
111
  </template>
110
112
  </x-tabs>
111
- <el-drawer :title="'表单设计('+formName+')'" :visible.sync="showDesingerDialog" :modal="false"
113
+ <el-drawer :title="$t1('表单设计({formName})',{formName})" :visible.sync="showDesingerDialog" :modal="false"
112
114
  :destroy-on-close="true"
113
115
  size="100%" direction="rtl" :before-close="closeFormDesignwinEvent" :append-to-body="false"
114
116
  class="designer-drawer" :class="[isFullscreen ? 'is-fullscreen' : '']" @close="handleFormDesignClose">
115
117
  <el-tabs v-model="formDesTabs" type="card" class="tab-boxOnly" :stretch="true">
116
- <el-tab-pane label="设计器" name="first">
118
+ <el-tab-pane :label="$t1('设计器')" name="first">
117
119
  <designer ref="designer" :formCode.sync="formCode" @reflushTemplateList="reflushTemplateList"></designer>
118
120
  </el-tab-pane>
119
- <el-tab-pane label="后端脚本" name="second">
121
+ <el-tab-pane :label="$t1('后端脚本')" name="second">
120
122
  <formScriptList :formCode="formCode" :formTemplate="currentFormTemplate"
121
123
  v-if="showFormScriptList"></formScriptList>
122
124
  </el-tab-pane>
123
125
  </el-tabs>
124
126
  <el-button class="isFullIcon" v-if="!isFullscreen" @click="handleFullscreen">
125
- <el-tooltip effect="dark" content="全屏" placement="top">
127
+ <el-tooltip effect="dark" :content="$t1('全屏')" placement="top">
126
128
  <i class="iconfont icon-quanping"></i>
127
129
  </el-tooltip>
128
130
 
129
131
  </el-button>
130
132
  <el-button class="isFullIcon" v-else @click="handleFullscreen">
131
- <el-tooltip effect="dark" content="缩小" placement="top">
133
+ <el-tooltip effect="dark" :content="$t1('缩小')" placement="top">
132
134
  <i class="iconfont icon-suoxiao"></i>
133
135
  </el-tooltip>
134
136
  </el-button>
135
137
  </el-drawer>
136
138
 
137
139
  <el-dialog
138
- :title="流程设计"
140
+ :title="$t1('流程设计')"
139
141
  :append-to-body="true"
140
142
  :modal-append-to-body="true"
141
143
  :close-on-click-modal="false"
@@ -1,4 +1,5 @@
1
1
  import {selectDialogMixins} from "@base/mixins/selectDialog";
2
+ import {getJsxStatus} from "@base/views/bd/setting/utils/index";
2
3
 
3
4
  let modules = {};
4
5
  modules = {
@@ -45,18 +46,18 @@ modules = {
45
46
  columns: [
46
47
  {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
47
48
  {
48
- title: '模板名称',
49
+ title: this.$t1('模板名称'),
49
50
  field: 'formName',
50
51
  width: 150,
51
52
  fixed: 'left'
52
53
  },
53
54
  {
54
- title: '模板编码',
55
+ title: this.$t1('模板编码'),
55
56
  field: 'formCode',
56
57
  width: 150
57
58
  },
58
59
  {
59
- title: '模板版本',
60
+ title: this.$t1('模板版本'),
60
61
  field: 'formVersion',
61
62
  width: 150
62
63
  },
@@ -67,17 +68,9 @@ modules = {
67
68
  slots: {
68
69
  default: ({row}) => {
69
70
  if (row.enabled) {
70
- return [
71
- <div class="txt-status">
72
- <span>启用</span>
73
- </div>
74
- ];
71
+ return getJsxStatus(null,this.$t1('启用'))
75
72
  } else {
76
- return [
77
- <div class="txt-status disable">
78
- <span>禁用</span>
79
- </div>
80
- ];
73
+ return getJsxStatus('s-3',this.$t1('禁用'))
81
74
  }
82
75
  }
83
76
  }
@@ -88,7 +81,7 @@ modules = {
88
81
  width: 150
89
82
  },
90
83
  {
91
- title: '数据表名',
84
+ title: this.$t1('数据表名'),
92
85
  field: 'ftableName',
93
86
  width: 200
94
87
  },
@@ -41,23 +41,23 @@ modules = {
41
41
  columns: [
42
42
  {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
43
43
  {
44
- title: '模板名称',
44
+ title: this.$t1('模板名称'),
45
45
  field: 'formName',
46
46
  width: 150,
47
47
  fixed: 'left'
48
48
  },
49
49
  {
50
- title: '模板编码',
50
+ title: this.$t1('模板编码'),
51
51
  field: 'formCode',
52
52
  width: 150
53
53
  },
54
54
  {
55
- title: '模板版本',
55
+ title: this.$t1('模板版本'),
56
56
  field: 'formVersion',
57
57
  width: 150
58
58
  },
59
59
  {
60
- title: '表单类型',
60
+ title: this.$t1('表单类型'),
61
61
  field: 'menuKindName',
62
62
  width: 150,
63
63
  },
@@ -1,5 +1,6 @@
1
1
  import editView from "@base/views/bd/setting/form_template/itemEdit.vue";
2
2
  import wfObjConfigDialog from "@base/views/bd/setting/form_template/editWfObjConfigDialog.vue";
3
+ import {getJsxBtn, getJsxBtnList, getJsxStatus} from "@base/views/bd/setting/utils/index";
3
4
 
4
5
  let modules = {};
5
6
  modules = {
@@ -38,9 +39,9 @@ modules = {
38
39
  initTableList() {
39
40
  let that = this;
40
41
  let startModeMap = {
41
- 1: "节点无候选人,提示异常",
42
- 2: "节点无候选人,提示警告",
43
- 3: "节点无候选人,无提示",
42
+ 1: this.$t1('节点无候选人,提示异常'),
43
+ 2: this.$t1('节点无候选人,提示警告'),
44
+ 3: this.$t1('节点无候选人,无提示'),
44
45
  }
45
46
  let tableOption1 = {
46
47
  vue: that,
@@ -64,18 +65,18 @@ modules = {
64
65
  columns: [
65
66
  {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
66
67
  {
67
- title: '流程模版名称',
68
+ title: this.$t1('流程模版名称'),
68
69
  field: 'modelName',
69
70
  width: 150,
70
71
  fixed: 'left'
71
72
  },
72
73
  {
73
- title: '流程模版KEY',
74
+ title: this.$t1('流程模版KEY'),
74
75
  field: 'modelKey',
75
76
  width: 150
76
77
  },
77
78
  {
78
- title: '单据类型编码',
79
+ title: this.$t1('单据类型编码'),
79
80
  field: 'objTypeCode',
80
81
  width: 150
81
82
  },
@@ -86,43 +87,43 @@ modules = {
86
87
  slots: {
87
88
  default: ({row}) => {
88
89
  if (row.enabled) {
89
- return [<div class="txt-status">{ this.$t1('启用') }</div>];
90
+ return getJsxStatus(null, this.$t1('启用'))
90
91
  } else {
91
- return [<div class="txt-status s-3">{ this.$t1('禁用') }</div>];
92
+ return getJsxStatus('s-3', this.$t1('禁用'))
92
93
  }
93
94
  }
94
95
  }
95
96
  },
96
97
  {
97
- title: '跳过相邻任务',
98
+ title: this.$t1('跳过相邻任务'),
98
99
  field: 'skipAdjacentTask',
99
100
  width: 150,
100
101
  slots: {
101
102
  default: ({row}) => {
102
103
  if (row.skipAdjacentTask) {
103
- return [<div class="txt-status">是</div>];
104
+ return getJsxStatus(null, this.$t1('是'))
104
105
  } else {
105
- return [<div class="txt-status s-3">否</div>];
106
+ return getJsxStatus('s-3', this.$t1('否'))
106
107
  }
107
108
  }
108
109
  }
109
110
  },
110
111
  {
111
- title: '驳回后提交模式',
112
+ title: this.$t1('驳回后提交模式'),
112
113
  field: 'toRejectNode',
113
114
  width: 180,
114
115
  slots: {
115
116
  default: ({row}) => {
116
117
  if (row.toRejectNode) {
117
- return [<div class="txt-status">由提交人确定提交节点</div>];
118
+ return getJsxStatus(null, this.$t1('由提交人确定提交节点'))
118
119
  } else {
119
- return [<div class="txt-status s-3">由驳回人指定提交节点</div>];
120
+ return getJsxStatus('s-3', this.$t1('由驳回人指定提交节点'))
120
121
  }
121
122
  }
122
123
  }
123
124
  },
124
125
  {
125
- title: '流程启动处理',
126
+ title: this.$t1('流程启动处理'),
126
127
  field: 'startMode',
127
128
  width: 180,
128
129
  slots: {
@@ -132,15 +133,15 @@ modules = {
132
133
  }
133
134
  },
134
135
  {
135
- title: '跨任务跳过',
136
+ title: this.$t1('跨任务跳过'),
136
137
  field: 'skipSameUserTask',
137
138
  width: 150,
138
139
  slots: {
139
140
  default: ({row}) => {
140
141
  if (row.skipSameUserTask) {
141
- return [<div class="txt-status">是</div>];
142
+ return getJsxStatus(null, this.$t1('是'))
142
143
  } else {
143
- return [<div class="txt-status s-3">否</div>];
144
+ return getJsxStatus('s-3', this.$t1('否'))
144
145
  }
145
146
  }
146
147
  }
@@ -157,44 +158,29 @@ modules = {
157
158
  title: '',
158
159
  slots: {
159
160
  default: ({row}) => {
160
- return [
161
- <a
162
- href="javascript:void(0);"
163
- class="a-link"
164
- onclick={() => {
165
- this.openEditDialog(row.id);
166
- }}
167
- >
168
- <el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
169
- popper-class="tooltip-skin">
170
- <i class="el-icon-edit"/>
171
- </el-tooltip>
172
- </a>,
173
- <a
174
- href="javascript:void(0);"
175
- onClick={() => {
161
+ return getJsxBtnList([
162
+ {
163
+ iconName: "el-icon-edit",
164
+ content: this.$t1('查看'),
165
+ onclick: () => {
166
+ this.openEditDialog(row);
167
+ }
168
+ },
169
+ {
170
+ iconName: "iconfont icon-liuchengguanli-shejiqi_liucheng",
171
+ content: this.$t1('流程设计'),
172
+ onclick: () => {
176
173
  this.wfEdit(row.modelId);
177
- }}
178
- class="a-link"
179
- >
180
- <el-tooltip enterable={false} effect="dark" content="流程设计" placement="top"
181
- popper-class="tooltip-skin">
182
- <i class="iconfont icon-liuchengguanli-shejiqi_liucheng"/>
183
- </el-tooltip>
184
- </a>,
185
- <a
186
- href="javascript:void(0);"
187
- class="a-link"
188
- onClick={() => {
174
+ }
175
+ },
176
+ {
177
+ iconName: "el-icon-delete",
178
+ content: this.$t1('删除'),
179
+ onclick: () => {
189
180
  this.deleteItem(row);
190
- }}
191
- >
192
- <el-tooltip enterable={false} effect="dark" content="删除" placement="top"
193
- popper-class="tooltip-skin">
194
- <i class="el-icon-delete"/>
195
- </el-tooltip>
196
- </a>
197
- ];
181
+ }
182
+ },
183
+ ]);
198
184
  }
199
185
  }
200
186
  }
@@ -205,9 +191,9 @@ modules = {
205
191
  });
206
192
  },
207
193
  deleteItem(row) {
208
- this.$baseConfirm('您确定要删除吗?').then(() => {
194
+ this.$baseConfirm(this.$t1('您确定要删除吗?')).then(() => {
209
195
  this.$http({
210
- aes:true,
196
+ aes: true,
211
197
  method: 'post',
212
198
  url: "/" + this.formTemplate.serviceName + '/wf_obj_config_item/delete',
213
199
  data: {id: row.id},
@@ -227,7 +213,7 @@ modules = {
227
213
  },
228
214
  initWfObjConfig() {
229
215
  this.$http({
230
- aes:true,
216
+ aes: true,
231
217
  method: 'post',
232
218
  url: "/" + this.formTemplate.serviceName + '/wf_obj_config/getByObjTypeCode',
233
219
  data: {stringOne: this.formTemplate.objTypeCode},