cloud-web-corejs 1.0.54-dev.84 → 1.0.54-dev.86
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/xform/form-designer/form-widget/dialog/importDialog.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +109 -22
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1881 -1
- package/src/components/xform/form-render/indexMixin.js +1691 -1
- package/src/layout/components/Sidebar/default.vue +2 -0
- package/src/layout/components/Sidebar/mixins/pdd.js +50 -0
- package/src/store/modules/user.js +302 -1
- package/src/utils/pddLog.js +84 -0
- package/src/views/user/company_info/dialog.vue +2 -1
- package/src/views/user/user/info.vue +21 -62
- package/src/views/user/user/infoEdit.vue +25 -12
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<div v-if="showContent">
|
3
3
|
<el-dialog
|
4
4
|
:title="$t2('导入', 'components.excelImport.title')"
|
5
|
-
:append-to-body="
|
5
|
+
:append-to-body="true"
|
6
6
|
:modal-append-to-body="falseValue"
|
7
7
|
:close-on-click-modal="falseValue"
|
8
8
|
:visible.sync="showImportDialog"
|
@@ -55,7 +55,7 @@
|
|
55
55
|
<el-dialog
|
56
56
|
ref="importDialog"
|
57
57
|
:title="$t2('导入', 'components.excelImport.title')"
|
58
|
-
:append-to-body="
|
58
|
+
:append-to-body="true"
|
59
59
|
:modal-append-to-body="falseValue"
|
60
60
|
:close-on-click-modal="falseValue"
|
61
61
|
:visible.sync="showImportDialog2"
|
@@ -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>
|
60
78
|
</template>
|
61
79
|
</el-table-column>
|
80
|
+
<el-table-column :label="i18nt('节点')" width="250">
|
81
|
+
<template slot-scope="{row}">
|
82
|
+
<el-input v-model="row.taskSteps" clearable></el-input>
|
83
|
+
</template>
|
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: {
|
@@ -122,11 +174,13 @@ export default {
|
|
122
174
|
let reportTemplate = this.getReportTemplate();
|
123
175
|
let objTypeCode = reportTemplate.objTypeCode;
|
124
176
|
let wfConfigData = this.optionModel.wfConfigData || [];
|
125
|
-
|
177
|
+
this.dialogVisible = true;
|
178
|
+
this.tableData = this.$baseLodash.cloneDeep(wfConfigData)
|
179
|
+
/*wfConfigData.forEach(item => {
|
126
180
|
this.getWfObjConfigItem(item.modelId)
|
127
|
-
})
|
181
|
+
})*/
|
128
182
|
|
129
|
-
this.$http({
|
183
|
+
/*this.$http({
|
130
184
|
url: this.current_prefix + "/wf_obj_config_item/list",
|
131
185
|
data: {
|
132
186
|
objTypeCode: objTypeCode,
|
@@ -139,7 +193,7 @@ export default {
|
|
139
193
|
this.dialogVisible = true;
|
140
194
|
this.tableData = this.$baseLodash.cloneDeep(wfConfigData)
|
141
195
|
},
|
142
|
-
})
|
196
|
+
});*/
|
143
197
|
},
|
144
198
|
getWfObjConfigItem(modelId) {
|
145
199
|
let reportTemplate = this.getReportTemplate();
|
@@ -160,10 +214,14 @@ export default {
|
|
160
214
|
});
|
161
215
|
},
|
162
216
|
addItem() {
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
217
|
+
let newItem = {
|
218
|
+
serveType: null,
|
219
|
+
serveName: null,
|
220
|
+
modelKey: null,
|
221
|
+
taskSteps: null,
|
222
|
+
companyInfos: []
|
223
|
+
}
|
224
|
+
this.tableData.push(newItem);
|
167
225
|
},
|
168
226
|
colSubmit() {
|
169
227
|
this.dialogVisible = !1;
|
@@ -189,6 +247,35 @@ export default {
|
|
189
247
|
if (val) {
|
190
248
|
this.optionModel.enabledByWf = false;
|
191
249
|
}
|
250
|
+
},
|
251
|
+
changeServeType(row) {
|
252
|
+
// modelKey
|
253
|
+
let map = {
|
254
|
+
1: "prod",
|
255
|
+
2: "at",
|
256
|
+
3: "dev"
|
257
|
+
}
|
258
|
+
let serveName = null;
|
259
|
+
let serveType = row.serveType;
|
260
|
+
if (serveType && map[serveType]) {
|
261
|
+
serveName = map[row.serveType];
|
262
|
+
}
|
263
|
+
row.serveName = serveName;
|
264
|
+
},
|
265
|
+
openCompanyDialog(row, rowIndex) {
|
266
|
+
this.operateIndex = rowIndex;
|
267
|
+
this.currentCompanyInfos = row.companyInfos || [];
|
268
|
+
this.showCompanyInfoDialog = true;
|
269
|
+
|
270
|
+
},
|
271
|
+
confirmCompanyDialog(rows) {
|
272
|
+
if (rows.length) {
|
273
|
+
let item = this.tableData[this.operateIndex];
|
274
|
+
item.companyInfos = rows;
|
275
|
+
}
|
276
|
+
},
|
277
|
+
getCompanyNames(item) {
|
278
|
+
return item.companyInfos.map(item => item.companyName).join(',');
|
192
279
|
}
|
193
280
|
}
|
194
281
|
}
|