cloud-web-corejs-haier 1.0.5 → 1.0.6
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 +7 -4
- package/src/App.vue +30 -34
- package/src/api/user.js +8 -0
- package/src/components/Tinymce/index.vue +112 -71
- package/src/components/VabUpload/image-viewer.vue +2 -2
- package/src/components/VabUpload/index.js +1 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/privateProfileDialogMixins.js +1 -1063
- package/src/components/VabUpload/view.vue +6 -2
- package/src/components/base-textarea/index.vue +104 -0
- package/src/components/baseAlert/mixins.js +1 -1
- package/src/components/baseAttachment/mixins.js +2 -1
- package/src/components/baseInputExport/index.vue +19 -12
- package/src/components/baseInputExport/mixins.js +1 -1
- package/src/components/baseTabs/mixins.js +1 -1
- package/src/components/code-editor/index.vue +102 -63
- package/src/components/confirmDialog/index.vue +24 -17
- package/src/components/confirmDialog/mixins.js +1 -1
- package/src/components/errorMsg/index.vue +42 -34
- package/src/components/errorMsg/mixins.js +1 -1
- package/src/components/excelExport/index.js +1 -2
- package/src/components/excelExport/mixins.js +1 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +179 -89
- package/src/components/fileLibrary/filterDialog.vue +45 -21
- package/src/components/fileLibrary/index.vue +579 -238
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +4 -1
- package/src/components/fileLibrary/mixins/indexMixins.js +3 -0
- package/src/components/scriptDescription/button.vue +12 -4
- package/src/components/scriptTest/mixins.js +1 -1
- package/src/components/table/index.js +12 -12
- package/src/components/tempStorage/index.vue +1 -1
- package/src/components/vb-tabs/x-tabs.vue +0 -1
- package/src/components/wf/content.vue +32 -36
- package/src/components/wf/mixins/setCandidateDialog2.js +1 -1
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +131 -3
- package/src/components/wf/setCandidateDialog2.vue +76 -66
- package/src/components/wf/wf.js +2176 -1
- package/src/components/wf/wfFlowEleScriptDialog.vue +5 -1
- package/src/components/wf/wfStartDialog.vue +6 -10
- package/src/components/wf/wfUtil.js +279 -1
- package/src/components/xform/form-designer/designer.js +1 -1
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +16 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +17 -4
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +247 -187
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +2 -0
- package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +6 -2
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +10 -0
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +65 -4
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +132 -118
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +137 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +124 -50
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +5 -1
- package/src/components/xform/form-render/index.vue +8 -0
- package/src/components/xform/form-render/indexMixin copy.js +3462 -0
- package/src/components/xform/form-render/indexMixin.js +3496 -1
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/utils/format.js +14 -4
- package/src/components/xform/utils/formula-util.js +0 -4
- package/src/components/xform/utils/util.js +1 -1
- package/src/index.js +215 -190
- package/src/lang/index.js +56 -51
- package/src/lang/locale/en/login.js +20 -0
- package/src/lang/locale/zh/login.js +20 -0
- package/src/layout/components/Sidebar/default.vue +1423 -1266
- package/src/layout/components/TagsView/index.vue +37 -11
- package/src/layout/components/createCompany/createCompanyDialog.vue +157 -0
- package/src/layout/components/extractedCode/viewDialog.vue +1 -0
- package/src/layout/defaultLayout.vue +1 -1
- package/src/layout/index.vue +3 -5
- package/src/mixins/table/index.js +151 -0
- package/src/permission.js +1 -18
- package/src/router/modules/customer.js +3 -8
- package/src/store/getters.js +24 -23
- package/src/store/modules/user.js +1 -30
- package/src/utils/vab.js +1 -1
- package/src/views/bd/setting/config_manage/list.vue +36 -19
- package/src/views/bd/setting/form_script/edit.vue +9 -0
- package/src/views/bd/setting/form_script/edit1.vue +29 -3
- package/src/views/bd/setting/form_script/form_list.vue +99 -37
- package/src/views/bd/setting/form_script/list1.vue +181 -118
- package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +199 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
- package/src/views/bd/setting/form_script/mixins/list.js +236 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +410 -1
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
- package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/edit.vue +13 -0
- package/src/views/bd/setting/form_template/list.vue +326 -214
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +279 -1
- package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
- package/src/views/bd/setting/form_template/mixins/list.js +667 -3
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/logic_param/mixins/edit.js +1 -91
- package/src/views/bd/setting/logic_param/mixins/list.js +2 -362
- package/src/views/bd/setting/menu_kind/list.vue +172 -87
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +300 -7
- package/src/views/bd/setting/table_model/edit.vue +345 -304
- package/src/views/bd/setting/table_model/list.vue +190 -128
- package/src/views/bd/setting/table_model/mixins/edit.js +1191 -1
- package/src/views/bd/setting/table_model/mixins/list.js +428 -2
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/user/access_log/list.vue +418 -349
- package/src/views/user/area/dialog.vue +223 -116
- package/src/views/user/area/list.vue +318 -0
- package/src/views/user/common_attribute/list.vue +4 -1
- package/src/views/user/extend_datasource/dialog.vue +3 -0
- package/src/views/user/extend_datasource/edit.vue +2 -1
- package/src/views/user/extend_datasource/list.vue +3 -0
- package/src/views/user/form/vform/designer.vue +2 -1
- package/src/views/user/home/bears/index.vue +1032 -0
- package/src/views/user/home/default.vue +6 -5
- package/src/views/user/home/taili/index.vue +1034 -0
- package/src/views/user/ledger_library/list.vue +10 -12
- package/src/views/user/login/default.vue +165 -36
- package/src/views/user/login/index.vue +4 -6
- package/src/views/user/login/indexMixin.js +184 -8
- package/src/views/user/menu/list.vue +24 -1
- package/src/views/user/notify_message/dialog.vue +2 -6
- package/src/views/user/outLink/index.vue +57 -18
- package/src/views/user/role/authConfig.vue +89 -0
- package/src/views/user/role/dialog.vue +70 -48
- package/src/views/user/role/edit.vue +114 -4
- package/src/views/user/user/form_dialog.vue +158 -0
- package/src/views/user/user/list.vue +652 -582
- package/src/views/user/user/modifyPasswordDialog.vue +64 -53
- package/src/views/user/wf/wfReport/index.vue +137 -28
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +15 -116
- package/src/views/user/wf/wf_obj_config/itemOperateDialog.vue +414 -0
- package/src/views/user/wf/wf_obj_config/list.vue +84 -78
- package/src/views/user/wf/wf_transfer_setting/edit.vue +52 -0
- package/src/views/user/wf/wf_transfer_setting/list.vue +10 -0
- package/src/components/xform/form-render/container-item/data-table-mixin2.js +0 -2169
- package/src/views/bd/setting/table_model/mixins/edit copy.js +0 -903
- package/src/views/user/login/index2.vue +0 -131
|
@@ -40,51 +40,58 @@
|
|
|
40
40
|
clearable
|
|
41
41
|
/>
|
|
42
42
|
</el-form-item>
|
|
43
|
+
<el-form-item label-width="0" style="padding: 5px">
|
|
44
|
+
<div class="tips_1" style="white-space: pre-wrap; line-height: 20px">
|
|
45
|
+
{{ $t1(tip) }}
|
|
46
|
+
</div>
|
|
47
|
+
</el-form-item>
|
|
43
48
|
</el-form>
|
|
44
49
|
</div>
|
|
45
50
|
<span slot="footer" class="dialog-footer">
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
<el-button
|
|
52
|
+
type="primary"
|
|
53
|
+
plain
|
|
54
|
+
class="button-sty"
|
|
55
|
+
@click="dialogClose"
|
|
56
|
+
v-if="!modifyMust"
|
|
57
|
+
>
|
|
58
|
+
<i class="el-icon-close el-icon"></i>
|
|
59
|
+
{{ $t1("取 消") }}
|
|
60
|
+
</el-button>
|
|
61
|
+
<el-button type="primary" @click="saveData" class="button-sty">
|
|
62
|
+
<i class="el-icon-check el-icon"></i>
|
|
63
|
+
{{ $t1("确 定") }}
|
|
64
|
+
</el-button>
|
|
65
|
+
</span>
|
|
55
66
|
</el-dialog>
|
|
56
67
|
</template>
|
|
57
68
|
|
|
58
69
|
<script>
|
|
59
|
-
import {getParameterVauleByCode} from "@base/api/user";
|
|
70
|
+
import { getParameterVauleByCode } from "@base/api/user";
|
|
60
71
|
|
|
61
72
|
export default {
|
|
62
73
|
components: {},
|
|
63
|
-
created() {
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
mounted() {
|
|
67
|
-
|
|
68
|
-
},
|
|
74
|
+
created() {},
|
|
75
|
+
mounted() {},
|
|
69
76
|
data() {
|
|
70
77
|
var validatePass = (rule, value, callback) => {
|
|
71
78
|
const isPassRequired = true;
|
|
72
|
-
if (isPassRequired && (value ==
|
|
73
|
-
callback(new Error(this.$t1(
|
|
79
|
+
if (isPassRequired && (value == "" || value == undefined)) {
|
|
80
|
+
callback(new Error(this.$t1("密码不能为空")));
|
|
74
81
|
} else {
|
|
75
82
|
callback();
|
|
76
83
|
}
|
|
77
|
-
this.$refs.editForm.validateField(
|
|
84
|
+
this.$refs.editForm.validateField("rePassword");
|
|
78
85
|
};
|
|
79
86
|
var validatePass2 = (rule, value, callback) => {
|
|
80
87
|
const isPassRequired = true;
|
|
81
|
-
const rePassword = value != undefined ? value :
|
|
82
|
-
const password = this.formData.password != undefined ? this.formData.password :
|
|
88
|
+
const rePassword = value != undefined ? value : "";
|
|
89
|
+
const password = this.formData.password != undefined ? this.formData.password : "";
|
|
83
90
|
|
|
84
|
-
if (isPassRequired && rePassword ==
|
|
85
|
-
callback(new Error(this.$t1(
|
|
91
|
+
if (isPassRequired && rePassword == "") {
|
|
92
|
+
callback(new Error(this.$t1("确认密码不能为空")));
|
|
86
93
|
} else if (rePassword != password) {
|
|
87
|
-
callback(new Error(this.$t1(
|
|
94
|
+
callback(new Error(this.$t1("两次输入密码不一致!")));
|
|
88
95
|
} else {
|
|
89
96
|
callback();
|
|
90
97
|
}
|
|
@@ -94,9 +101,13 @@ export default {
|
|
|
94
101
|
falseValue: false,
|
|
95
102
|
modifyMust: false,
|
|
96
103
|
user: {},
|
|
97
|
-
formData: {password: null, rePassword: null},
|
|
98
|
-
passRules: [{validator: validatePass, trigger:
|
|
99
|
-
pass2Rules: [{validator: validatePass2, trigger:
|
|
104
|
+
formData: { password: null, rePassword: null },
|
|
105
|
+
passRules: [{ validator: validatePass, trigger: "blur", required: true }],
|
|
106
|
+
pass2Rules: [{ validator: validatePass2, trigger: "blur", required: true }],
|
|
107
|
+
tip: `密码规则:
|
|
108
|
+
1、密码必须是8~20位,包含英文大写、英文小写、数字、特殊字符中的3种组合,字符例如:!@#$%^&0,不能包含空格和中文字符;
|
|
109
|
+
2、密码有效期为90天,且不允许与前3次的密码相同
|
|
110
|
+
3、密码不允许包含登录账号、hisense、admin、连续字母、连续键盘键等弱密码信息,例如:qwer1234!@、admin1234@#等`,
|
|
100
111
|
};
|
|
101
112
|
},
|
|
102
113
|
methods: {
|
|
@@ -105,33 +116,33 @@ export default {
|
|
|
105
116
|
url: USER_PREFIX + `/user/currentUser`,
|
|
106
117
|
method: `post`,
|
|
107
118
|
data: {
|
|
108
|
-
id: this.dataId
|
|
119
|
+
id: this.dataId,
|
|
109
120
|
},
|
|
110
|
-
success: res => {
|
|
121
|
+
success: (res) => {
|
|
111
122
|
var user = res.objx || {};
|
|
112
123
|
this.user = res.objx || {};
|
|
113
|
-
}
|
|
124
|
+
},
|
|
114
125
|
});
|
|
115
126
|
},
|
|
116
127
|
saveData() {
|
|
117
|
-
this.$refs.editForm.validate(valid => {
|
|
128
|
+
this.$refs.editForm.validate((valid) => {
|
|
118
129
|
if (valid) {
|
|
119
|
-
this.$baseConfirm(this.$t1(
|
|
120
|
-
let resData = {...this.user, ...this.formData}
|
|
121
|
-
var url = USER_PREFIX +
|
|
130
|
+
this.$baseConfirm(this.$t1("您确定要修改密码吗?")).then(() => {
|
|
131
|
+
let resData = { ...this.user, ...this.formData };
|
|
132
|
+
var url = USER_PREFIX + "/user/updateUserInfo";
|
|
122
133
|
this.$http({
|
|
123
134
|
url: url,
|
|
124
135
|
method: `post`,
|
|
125
136
|
data: resData,
|
|
126
137
|
isLoading: true,
|
|
127
|
-
success: res => {
|
|
138
|
+
success: (res) => {
|
|
128
139
|
this.$message({
|
|
129
140
|
message: res.content,
|
|
130
|
-
type:
|
|
131
|
-
duration: 2000
|
|
141
|
+
type: "success",
|
|
142
|
+
duration: 2000,
|
|
132
143
|
});
|
|
133
144
|
this.dialogClose();
|
|
134
|
-
}
|
|
145
|
+
},
|
|
135
146
|
});
|
|
136
147
|
});
|
|
137
148
|
} else {
|
|
@@ -139,17 +150,17 @@ export default {
|
|
|
139
150
|
let rePassword = this.formData.rePassword;
|
|
140
151
|
if (!password || !rePassword) {
|
|
141
152
|
this.$message({
|
|
142
|
-
message: this.$t1(
|
|
143
|
-
type:
|
|
144
|
-
duration: 2000
|
|
153
|
+
message: this.$t1("密码/确认密码不能为空"),
|
|
154
|
+
type: "error",
|
|
155
|
+
duration: 2000,
|
|
145
156
|
});
|
|
146
|
-
return
|
|
157
|
+
return;
|
|
147
158
|
}
|
|
148
159
|
if (password !== rePassword) {
|
|
149
160
|
this.$message({
|
|
150
|
-
message: this.$t1(
|
|
151
|
-
type:
|
|
152
|
-
duration: 2000
|
|
161
|
+
message: this.$t1("两次输入密码不一致"),
|
|
162
|
+
type: "error",
|
|
163
|
+
duration: 2000,
|
|
153
164
|
});
|
|
154
165
|
}
|
|
155
166
|
}
|
|
@@ -164,15 +175,15 @@ export default {
|
|
|
164
175
|
},
|
|
165
176
|
init() {
|
|
166
177
|
getParameterVauleByCode({
|
|
167
|
-
data: {code: "checkPasswordModify"},
|
|
178
|
+
data: { code: "checkPasswordModify" },
|
|
168
179
|
success: (res0) => {
|
|
169
180
|
if (res0.objx && res0.objx.value) {
|
|
170
181
|
this.$http({
|
|
171
182
|
url: USER_PREFIX + `/user/checkPasswordModifyDate`,
|
|
172
183
|
method: `post`,
|
|
173
184
|
data: {},
|
|
174
|
-
success: res => {
|
|
175
|
-
let flag = 0
|
|
185
|
+
success: (res) => {
|
|
186
|
+
let flag = 0; //0 不提示;1 提示但不强制修改,即弹框它可以点x关掉;2 提示且强制修改,即他不能关掉这个弹框,要输入密码,点确定才能关掉
|
|
176
187
|
if (res.objx) {
|
|
177
188
|
flag = res.objx.flag || 0;
|
|
178
189
|
}
|
|
@@ -182,12 +193,12 @@ export default {
|
|
|
182
193
|
this.modifyMust = flag == 2;
|
|
183
194
|
this.showDialog = true;
|
|
184
195
|
}
|
|
185
|
-
}
|
|
196
|
+
},
|
|
186
197
|
});
|
|
187
198
|
}
|
|
188
|
-
}
|
|
189
|
-
})
|
|
190
|
-
}
|
|
191
|
-
}
|
|
199
|
+
},
|
|
200
|
+
});
|
|
201
|
+
},
|
|
202
|
+
},
|
|
192
203
|
};
|
|
193
204
|
</script>
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
v-model="formData.dateRange"
|
|
7
7
|
@change="handleSelectChange"
|
|
8
8
|
clearable
|
|
9
|
+
style="width: 128px !important"
|
|
9
10
|
>
|
|
10
11
|
<el-option :label="$t1('本日')" :value="1"></el-option>
|
|
11
12
|
<el-option :label="$t1('本周')" :value="2"></el-option>
|
|
@@ -15,67 +16,91 @@
|
|
|
15
16
|
<el-select
|
|
16
17
|
class="f-btn"
|
|
17
18
|
v-model="formData.stat"
|
|
18
|
-
:placeholder="$
|
|
19
|
+
:placeholder="$t1('全部状态')"
|
|
19
20
|
clearable
|
|
20
21
|
@clear="formData.stat = null"
|
|
21
22
|
@change="handleSelectChange"
|
|
23
|
+
style="width: 128px !important"
|
|
24
|
+
>
|
|
25
|
+
<el-option :label="$t1('审核中')" :value="1"></el-option>
|
|
26
|
+
<el-option :label="$t1('已完成')" :value="2"></el-option>
|
|
27
|
+
<el-option :label="$t1('已驳回')" :value="3"></el-option>
|
|
28
|
+
</el-select>
|
|
29
|
+
<el-select
|
|
30
|
+
class="f-btn"
|
|
31
|
+
v-model="formData.objTypeCode"
|
|
32
|
+
:placeholder="$t1('流程类型')"
|
|
33
|
+
clearable
|
|
34
|
+
@change="handleSelectChange"
|
|
35
|
+
style="width: 128px !important"
|
|
22
36
|
>
|
|
23
37
|
<el-option
|
|
24
|
-
|
|
25
|
-
:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
:label="$t2('已完成', 'components.wf.wfStatus2')"
|
|
29
|
-
:value="2"
|
|
30
|
-
></el-option>
|
|
31
|
-
<el-option
|
|
32
|
-
:label="$t2('已驳回', 'components.wf.wfStatus3')"
|
|
33
|
-
:value="3"
|
|
38
|
+
v-for="(item, index) in objTypeList"
|
|
39
|
+
:key="index"
|
|
40
|
+
:label="item.objTypeName"
|
|
41
|
+
:value="item.objTypeCode"
|
|
34
42
|
></el-option>
|
|
35
43
|
</el-select>
|
|
36
|
-
<el-input
|
|
44
|
+
<el-input
|
|
45
|
+
v-model="formData.name"
|
|
46
|
+
:placeholder="$t1('流程主题')"
|
|
47
|
+
style="width: 128px !important"
|
|
48
|
+
></el-input>
|
|
37
49
|
<span class="button-sty">
|
|
38
50
|
<el-date-picker
|
|
39
51
|
v-model="formData.startStartTime"
|
|
40
52
|
type="date"
|
|
41
|
-
placeholder="启动时间(开始)"
|
|
53
|
+
:placeholder="$t1('启动时间(开始)')"
|
|
42
54
|
size="small"
|
|
43
55
|
clearable
|
|
44
56
|
value-format="yyyy-MM-dd"
|
|
45
57
|
:picker-options="$baseStartPickerOptions(formData.endStartTime)"
|
|
58
|
+
style="width: 128px !important"
|
|
46
59
|
></el-date-picker>
|
|
47
60
|
<span>-</span>
|
|
48
61
|
<el-date-picker
|
|
49
62
|
v-model="formData.endStartTime"
|
|
50
63
|
type="date"
|
|
51
|
-
placeholder="启动时间(结束)"
|
|
64
|
+
:placeholder="$t1('启动时间(结束)')"
|
|
52
65
|
size="small"
|
|
53
66
|
clearable
|
|
54
67
|
value-format="yyyy-MM-dd"
|
|
55
68
|
:picker-options="$baseEndPickerOptions(formData.startStartTime)"
|
|
69
|
+
style="width: 128px !important"
|
|
56
70
|
></el-date-picker>
|
|
57
71
|
</span>
|
|
58
72
|
<span class="button-sty">
|
|
59
73
|
<el-date-picker
|
|
60
74
|
v-model="formData.startEndTime"
|
|
61
75
|
type="date"
|
|
62
|
-
placeholder="结束时间(开始)"
|
|
76
|
+
:placeholder="$t1('结束时间(开始)')"
|
|
63
77
|
size="small"
|
|
64
78
|
clearable
|
|
65
79
|
value-format="yyyy-MM-dd"
|
|
66
80
|
:picker-options="$baseStartPickerOptions(formData.endEndTime)"
|
|
81
|
+
style="width: 128px !important"
|
|
67
82
|
></el-date-picker>
|
|
68
83
|
<span>-</span>
|
|
69
84
|
<el-date-picker
|
|
70
85
|
v-model="formData.endEndTime"
|
|
71
86
|
type="date"
|
|
72
|
-
placeholder="结束时间(结束)"
|
|
87
|
+
:placeholder="$t1('结束时间(结束)')"
|
|
73
88
|
size="small"
|
|
74
89
|
clearable
|
|
75
90
|
value-format="yyyy-MM-dd"
|
|
76
91
|
:picker-options="$baseEndPickerOptions(formData.startEndTime)"
|
|
92
|
+
style="width: 128px !important"
|
|
77
93
|
></el-date-picker>
|
|
78
94
|
</span>
|
|
95
|
+
<el-button
|
|
96
|
+
type="primary"
|
|
97
|
+
plain
|
|
98
|
+
class="button-sty"
|
|
99
|
+
@click="resetEvent"
|
|
100
|
+
icon="el-icon-brush"
|
|
101
|
+
>
|
|
102
|
+
{{ $t1("重置") }}
|
|
103
|
+
</el-button>
|
|
79
104
|
<el-button
|
|
80
105
|
type="warning"
|
|
81
106
|
size="small"
|
|
@@ -124,7 +149,29 @@
|
|
|
124
149
|
<span>流程详情列表</span>
|
|
125
150
|
</div>
|
|
126
151
|
<div style="height: 100%">
|
|
127
|
-
<vxe-grid ref="table-m1" v-bind="vxeOption" :data="tableData">
|
|
152
|
+
<vxe-grid ref="table-m1" v-bind="vxeOption" :data="tableData">
|
|
153
|
+
<template #form>
|
|
154
|
+
<div class="clearfix screen-btns">
|
|
155
|
+
<div class="fl">
|
|
156
|
+
<base-table-export
|
|
157
|
+
:option="{
|
|
158
|
+
title: $t1('流程处理耗用时间查询'),
|
|
159
|
+
targetRef: 'table-m1',
|
|
160
|
+
}"
|
|
161
|
+
:parent-target="_self"
|
|
162
|
+
/>
|
|
163
|
+
</div>
|
|
164
|
+
<div class="fr">
|
|
165
|
+
<!-- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
166
|
+
plain>{{ $t1('重置') }}
|
|
167
|
+
</vxe-button>
|
|
168
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
|
169
|
+
{{ $t1('搜索') }}
|
|
170
|
+
</vxe-button> -->
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
</template>
|
|
174
|
+
</vxe-grid>
|
|
128
175
|
</div>
|
|
129
176
|
</el-card>
|
|
130
177
|
</el-col>
|
|
@@ -169,14 +216,23 @@
|
|
|
169
216
|
</el-card>
|
|
170
217
|
</el-col>
|
|
171
218
|
</el-row>
|
|
219
|
+
<wfContentDialog
|
|
220
|
+
v-if="showWfDialog"
|
|
221
|
+
:visible.sync="showWfDialog"
|
|
222
|
+
:option.sync="wfContentOption"
|
|
223
|
+
></wfContentDialog>
|
|
172
224
|
</div>
|
|
173
225
|
</template>
|
|
174
226
|
|
|
175
227
|
<script>
|
|
176
228
|
import scriptHttpMixin from "@base/components/xform/mixins/scriptHttp";
|
|
229
|
+
import wfContentDialog from "@base/views/user/wf/wf_manage/wfContentDialog";
|
|
177
230
|
export default {
|
|
178
231
|
name: "wf_report:index",
|
|
179
232
|
mixins: [scriptHttpMixin],
|
|
233
|
+
components: {
|
|
234
|
+
wfContentDialog,
|
|
235
|
+
},
|
|
180
236
|
data() {
|
|
181
237
|
return {
|
|
182
238
|
vxeOption: {},
|
|
@@ -224,16 +280,33 @@ export default {
|
|
|
224
280
|
dateRange: 3,
|
|
225
281
|
stat: null,
|
|
226
282
|
},
|
|
283
|
+
objTypeList: [],
|
|
284
|
+
|
|
285
|
+
showWfDialog: false,
|
|
286
|
+
wfContentOption: {},
|
|
227
287
|
};
|
|
228
288
|
},
|
|
229
289
|
mounted() {
|
|
290
|
+
this.initObjTypeList();
|
|
230
291
|
this.initTableList();
|
|
231
292
|
this.loadWfSummaryCount();
|
|
232
293
|
},
|
|
233
294
|
methods: {
|
|
295
|
+
openWfDialog(row) {
|
|
296
|
+
this.wfContentOption = {
|
|
297
|
+
objId: row.obj_id,
|
|
298
|
+
url: row.url,
|
|
299
|
+
objTypeCode: row.obj_type_code,
|
|
300
|
+
};
|
|
301
|
+
this.showWfDialog = true;
|
|
302
|
+
},
|
|
234
303
|
searchEvent() {
|
|
235
304
|
this.$refs["table-m1"].commitProxy("reload");
|
|
236
305
|
},
|
|
306
|
+
resetEvent() {
|
|
307
|
+
this.formData = {};
|
|
308
|
+
this.$refs["table-m1"].commitProxy("reload");
|
|
309
|
+
},
|
|
237
310
|
initTableList() {
|
|
238
311
|
let that = this;
|
|
239
312
|
let formCode = this.$route.query.formCode;
|
|
@@ -249,8 +322,13 @@ export default {
|
|
|
249
322
|
},
|
|
250
323
|
columns: [
|
|
251
324
|
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
|
252
|
-
{
|
|
253
|
-
|
|
325
|
+
{
|
|
326
|
+
field: "obj_type_name",
|
|
327
|
+
title: this.$t1("流程类型"),
|
|
328
|
+
width: 150,
|
|
329
|
+
fixed: "left",
|
|
330
|
+
},
|
|
331
|
+
{ field: "name", title: this.$t1("流程主题"), width: 180 },
|
|
254
332
|
{
|
|
255
333
|
field: "stat",
|
|
256
334
|
title: "状态",
|
|
@@ -279,10 +357,10 @@ export default {
|
|
|
279
357
|
},
|
|
280
358
|
},
|
|
281
359
|
},
|
|
282
|
-
{ field: "task_name", title: "当前节点", width: 180 },
|
|
360
|
+
{ field: "task_name", title: this.$t1("当前节点"), width: 180 },
|
|
283
361
|
{
|
|
284
362
|
field: "candidate_names",
|
|
285
|
-
title: "当前处理人",
|
|
363
|
+
title: this.$t1("当前处理人"),
|
|
286
364
|
width: 180,
|
|
287
365
|
slots: {
|
|
288
366
|
default: ({ row }) => {
|
|
@@ -295,11 +373,11 @@ export default {
|
|
|
295
373
|
},
|
|
296
374
|
},
|
|
297
375
|
},
|
|
298
|
-
{ field: "start_time", title: "启动时间", width: 150 },
|
|
299
|
-
{ field: "end_time", title: "结束时间", width: 150 },
|
|
376
|
+
{ field: "start_time", title: this.$t1("启动时间"), width: 150 },
|
|
377
|
+
{ field: "end_time", title: this.$t1("结束时间"), width: 150 },
|
|
300
378
|
{
|
|
301
379
|
field: "duration",
|
|
302
|
-
title: "总耗时",
|
|
380
|
+
title: this.$t1("总耗时"),
|
|
303
381
|
width: 180,
|
|
304
382
|
slots: {
|
|
305
383
|
default: ({ row }) => {
|
|
@@ -314,7 +392,7 @@ export default {
|
|
|
314
392
|
},
|
|
315
393
|
{
|
|
316
394
|
field: "task_duration",
|
|
317
|
-
title: "当前节点耗时",
|
|
395
|
+
title: this.$t1("当前节点耗时"),
|
|
318
396
|
width: 180,
|
|
319
397
|
slots: {
|
|
320
398
|
default: ({ row }) => {
|
|
@@ -327,8 +405,10 @@ export default {
|
|
|
327
405
|
},
|
|
328
406
|
},
|
|
329
407
|
},
|
|
408
|
+
{ field: "approver_num", title: this.$t1("审批总人数"), width: 180 },
|
|
409
|
+
{ field: "node_num", title: this.$t1("审批节点数量"), width: 180 },
|
|
330
410
|
{
|
|
331
|
-
width:
|
|
411
|
+
width: 90,
|
|
332
412
|
fixed: "right",
|
|
333
413
|
title: "",
|
|
334
414
|
sortable: false,
|
|
@@ -345,13 +425,30 @@ export default {
|
|
|
345
425
|
<el-tooltip
|
|
346
426
|
enterable={false}
|
|
347
427
|
effect="dark"
|
|
348
|
-
content="
|
|
428
|
+
content={this.$t1("查看详情")}
|
|
349
429
|
placement="top"
|
|
350
430
|
popper-class="tooltip-skin"
|
|
351
431
|
>
|
|
352
432
|
<i class="iconfont icon-dianji" />
|
|
353
433
|
</el-tooltip>
|
|
354
434
|
</a>,
|
|
435
|
+
<a
|
|
436
|
+
href="javascript:void(0);"
|
|
437
|
+
class="a-link"
|
|
438
|
+
onclick={() => {
|
|
439
|
+
this.openWfDialog(row);
|
|
440
|
+
}}
|
|
441
|
+
>
|
|
442
|
+
<el-tooltip
|
|
443
|
+
enterable={false}
|
|
444
|
+
effect="dark"
|
|
445
|
+
content={this.$t1("查看单据")}
|
|
446
|
+
placement="top"
|
|
447
|
+
popper-class="tooltip-skin"
|
|
448
|
+
>
|
|
449
|
+
<i class="el-icon-edit" />
|
|
450
|
+
</el-tooltip>
|
|
451
|
+
</a>,
|
|
355
452
|
];
|
|
356
453
|
},
|
|
357
454
|
},
|
|
@@ -402,6 +499,18 @@ export default {
|
|
|
402
499
|
this.searchEvent();
|
|
403
500
|
this.clearWfSummaryNode();
|
|
404
501
|
},
|
|
502
|
+
initObjTypeList() {
|
|
503
|
+
this.$http({
|
|
504
|
+
url: `/${this.serviceName}/wf_info/listGroupPage`,
|
|
505
|
+
method: "post",
|
|
506
|
+
data: {
|
|
507
|
+
type: 99,
|
|
508
|
+
},
|
|
509
|
+
success: (res) => {
|
|
510
|
+
this.objTypeList = res?.objx?.records || [];
|
|
511
|
+
},
|
|
512
|
+
});
|
|
513
|
+
},
|
|
405
514
|
},
|
|
406
515
|
};
|
|
407
516
|
</script>
|
|
@@ -413,7 +522,7 @@ export default {
|
|
|
413
522
|
}
|
|
414
523
|
.filter-btns {
|
|
415
524
|
.f-btn {
|
|
416
|
-
margin-right:
|
|
525
|
+
margin-right: 25px;
|
|
417
526
|
}
|
|
418
527
|
}
|
|
419
528
|
.sum-statistics {
|