cloud-web-corejs 1.0.54-dev.83 → 1.0.54-dev.85
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 +1 -1
- package/src/components/excelExport/mixins.js +1 -2
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +27 -6
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +103 -18
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1873
- package/src/components/xform/form-render/indexMixin.js +1 -1
- package/src/store/config/index.js +1 -598
- package/src/utils/request.js +1 -1
- package/src/views/user/company_info/dialog.vue +2 -1
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +11 -5
- package/src/views/user/user/info.vue +21 -91
- package/src/views/user/wf/wf_obj_config/list.vue +1 -13
@@ -41,24 +41,66 @@
|
|
41
41
|
stripe=""
|
42
42
|
>
|
43
43
|
<el-table-column type="index" width="35" fixed="left"></el-table-column>
|
44
|
-
<el-table-column :label="i18nt('
|
45
|
-
<template slot-scope="
|
46
|
-
<el-select v-model="
|
47
|
-
<el-option
|
48
|
-
|
44
|
+
<el-table-column :label="i18nt('服务')" width="150">
|
45
|
+
<template slot-scope="{row}">
|
46
|
+
<el-select v-model="row.serveType" @change="changeServeType(row)">
|
47
|
+
<el-option :value="1" label="正式"></el-option>
|
48
|
+
<el-option :value="2" label="UAT"></el-option>
|
49
|
+
<el-option :value="3" label="测试"></el-option>
|
50
|
+
<el-option :value="4" label="自定义"></el-option>
|
49
51
|
</el-select>
|
50
|
-
|
51
52
|
</template>
|
52
53
|
</el-table-column>
|
53
|
-
<el-table-column :label="i18nt('
|
54
|
-
<template slot-scope="
|
55
|
-
<el-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
54
|
+
<el-table-column :label="i18nt('自定义服务')" width="150">
|
55
|
+
<template slot-scope="{row}">
|
56
|
+
<el-input v-model="row.serveName" clearable :disabled="row.serveType!==4"></el-input>
|
57
|
+
</template>
|
58
|
+
</el-table-column>
|
59
|
+
<el-table-column :label="i18nt('组织')" width="250">
|
60
|
+
<template slot-scope="{row,$index}">
|
61
|
+
<el-input
|
62
|
+
class="search-input"
|
63
|
+
:value="getCompanyNames(row)"
|
64
|
+
clearable
|
65
|
+
@clear="
|
66
|
+
row.companyInfos = [];
|
67
|
+
"
|
68
|
+
v-el-readonly
|
69
|
+
>
|
70
|
+
<i slot="suffix" class="el-input__icon el-icon-search"
|
71
|
+
@click="openCompanyDialog(row, $index)"></i>
|
72
|
+
</el-input>
|
73
|
+
</template>
|
74
|
+
</el-table-column>
|
75
|
+
<el-table-column :label="i18nt('流程模板')" width="150">
|
76
|
+
<template slot-scope="{row}">
|
77
|
+
<el-input v-model="row.modelKey" clearable></el-input>
|
78
|
+
</template>
|
79
|
+
</el-table-column>
|
80
|
+
<el-table-column :label="i18nt('节点')" width="250">
|
81
|
+
<template slot-scope="{row}">
|
82
|
+
<el-input v-model="row.modelSteps" clearable></el-input>
|
60
83
|
</template>
|
61
84
|
</el-table-column>
|
85
|
+
|
86
|
+
<!-- <el-table-column :label="i18nt('流程模板')" width="250" prop="label">
|
87
|
+
<template slot-scope="scope">
|
88
|
+
<el-select v-model="scope.row.modelId" @change="changeModelId">
|
89
|
+
<el-option v-for="(wfDefItem,index) in wfDefItems" :key="index" :value="wfDefItem.modelId"
|
90
|
+
:label="wfDefItem.modelName"></el-option>
|
91
|
+
</el-select>
|
92
|
+
|
93
|
+
</template>
|
94
|
+
</el-table-column>
|
95
|
+
<el-table-column :label="i18nt('流程节点')" width="550" prop="prop">
|
96
|
+
<template slot-scope="scope">
|
97
|
+
<el-checkbox-group v-model="scope.row.nodeIds" v-if="!!wfNodeMap[scope.row.modelId]">
|
98
|
+
<el-checkbox v-for="(node,index) in wfNodeMap[scope.row.modelId]" :key="index"
|
99
|
+
:label="node.nodeId">{{ node.nodeName }}
|
100
|
+
</el-checkbox>
|
101
|
+
</el-checkbox-group>
|
102
|
+
</template>
|
103
|
+
</el-table-column>-->
|
62
104
|
<el-table-column :label="i18nt('designer.setting.actionColumn')" width="100" align="center">
|
63
105
|
<template #header>
|
64
106
|
<span>{{ i18nt('designer.setting.actionColumn') }}</span>
|
@@ -88,14 +130,19 @@
|
|
88
130
|
</el-button>
|
89
131
|
</div>
|
90
132
|
</el-dialog>
|
133
|
+
<companyInfoDialog v-if="showCompanyInfoDialog" :visiable.sync="showCompanyInfoDialog"
|
134
|
+
@confirm="confirmCompanyDialog" :multi="true" :allCompany="true" :rows="currentCompanyInfos"
|
135
|
+
fieldKey="companyCode"/>
|
91
136
|
</div>
|
92
137
|
</template>
|
93
138
|
|
94
139
|
<script>
|
95
140
|
import i18n from "../../../../../components/xform/utils/i18n"
|
141
|
+
import companyInfoDialog from "@base/views/user/company_info/dialog.vue";
|
96
142
|
|
97
143
|
export default {
|
98
144
|
name: "wfFlag-editor",
|
145
|
+
components: {companyInfoDialog},
|
99
146
|
mixins: [i18n],
|
100
147
|
props: {
|
101
148
|
designer: Object,
|
@@ -108,7 +155,12 @@ export default {
|
|
108
155
|
dialogVisible: false,
|
109
156
|
tableData: [],
|
110
157
|
wfDefItems: [],
|
111
|
-
wfNodeMap: {}
|
158
|
+
wfNodeMap: {},
|
159
|
+
|
160
|
+
currentCompanyInfos: [],
|
161
|
+
operateIndex: 0,
|
162
|
+
showCompanyInfoDialog: false
|
163
|
+
|
112
164
|
}
|
113
165
|
},
|
114
166
|
computed: {
|
@@ -160,10 +212,14 @@ export default {
|
|
160
212
|
});
|
161
213
|
},
|
162
214
|
addItem() {
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
215
|
+
let newItem = {
|
216
|
+
serveType: null,
|
217
|
+
serveName: null,
|
218
|
+
modelKey: null,
|
219
|
+
modelSteps: null,
|
220
|
+
companyInfos: []
|
221
|
+
}
|
222
|
+
this.tableData.push(newItem);
|
167
223
|
},
|
168
224
|
colSubmit() {
|
169
225
|
this.dialogVisible = !1;
|
@@ -189,6 +245,35 @@ export default {
|
|
189
245
|
if (val) {
|
190
246
|
this.optionModel.enabledByWf = false;
|
191
247
|
}
|
248
|
+
},
|
249
|
+
changeServeType(row) {
|
250
|
+
// modelKey
|
251
|
+
let map = {
|
252
|
+
1: "prod",
|
253
|
+
2: "at",
|
254
|
+
3: "dev"
|
255
|
+
}
|
256
|
+
let serveName = null;
|
257
|
+
let serveType = row.serveType;
|
258
|
+
if (serveType && map[serveType]) {
|
259
|
+
serveName = map[row.serveType];
|
260
|
+
}
|
261
|
+
row.serveName = serveName;
|
262
|
+
},
|
263
|
+
openCompanyDialog(row, rowIndex) {
|
264
|
+
this.operateIndex = rowIndex;
|
265
|
+
this.currentCompanyInfos = row.companyInfos || [];
|
266
|
+
this.showCompanyInfoDialog = true;
|
267
|
+
|
268
|
+
},
|
269
|
+
confirmCompanyDialog(rows) {
|
270
|
+
if (rows.length) {
|
271
|
+
let item = this.tableData[this.operateIndex];
|
272
|
+
item.companyInfos = rows;
|
273
|
+
}
|
274
|
+
},
|
275
|
+
getCompanyNames(item) {
|
276
|
+
return item.companyInfos.map(item => item.companyName).join(',');
|
192
277
|
}
|
193
278
|
}
|
194
279
|
}
|