cloud-web-corejs 1.0.188 → 1.0.190
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 +273 -187
- package/src/components/baseAlert/index.vue +23 -19
- package/src/components/baseAlert/mixins.js +1 -1
- package/src/components/baseInputExport/index.vue +1 -1
- package/src/components/baseInputExport/mixins.js +1 -1
- package/src/components/errorMsg/index.vue +78 -78
- package/src/components/errorMsg/mixins.js +1 -1
- package/src/components/excelImport/mixins.js +1 -1
- package/src/components/fileLibrary/index.vue +17 -14
- package/src/components/hiprint/view/design/index.vue +139 -47
- package/src/components/hiprint/view/design/preview.vue +75 -52
- package/src/components/hiprint/view/json-view.vue +31 -31
- package/src/components/luckysheet/dialog.vue +159 -0
- package/src/components/luckysheet/export.js +5 -0
- package/src/components/luckysheet/fileUtils.js +1 -0
- package/src/components/luckysheet/index.js +1 -0
- package/src/components/luckysheet/templateJson.js +12078 -0
- package/src/components/luckysheet/view.vue +210 -0
- package/src/components/oplogTable/mixins.js +4 -4
- package/src/components/table/index.js +1 -1
- package/src/components/table/util/index.js +8 -1
- package/src/components/wf/content.vue +3 -2
- package/src/components/wf/wf.js +1 -1
- package/src/components/wf/wfUtil.js +1 -1
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +8 -2
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +11 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +4 -0
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +92 -0
- package/src/components/xform/form-designer/form-widget/field-widget/static-text-widget.vue +8 -3
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +37 -37
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +54 -47
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +432 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/preWrap-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +71 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +39 -34
- package/src/components/xform/form-render/container-item/data-table-item.vue +6 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
- package/src/components/xform/form-render/index.vue +7 -7
- package/src/components/xform/form-render/indexMixin.js +2 -1
- package/src/components/xform/lang/zh-CN.js +2 -0
- package/src/components/xform/utils/formHttp.js +162 -0
- package/src/layout/components/extractedCode/viewDialog.vue +1 -0
- package/src/mixins/tableTree/index.js +4 -4
- package/src/store/modules/permission.js +41 -41
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +1 -239
- 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 +1 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +3 -2
- package/src/views/bd/setting/form_script/mixins/edit1.js +3 -2
- package/src/views/bd/setting/form_script/mixins/list.js +1 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +1 -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 +2 -1
- package/src/views/bd/setting/form_template/mixins/edit.js +10 -9
- package/src/views/bd/setting/form_template/mixins/list.js +3 -3
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +7 -0
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/logic_param/edit2.vue +17 -0
- package/src/views/bd/setting/menu_kind/list.vue +172 -87
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +7 -7
- package/src/views/bd/setting/menu_kind/mixins/list.js +1 -201
- 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 +3 -1
- package/src/views/bd/setting/table_model/mixins/list.js +2 -2
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +7 -0
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/user/company_info/dialog.vue +80 -49
- package/src/views/user/home/default.vue +8 -6
- package/src/views/user/notify_message/dialog.vue +9 -7
- package/src/views/user/user/form_dialog.vue +158 -0
- package/src/views/user/user/modifyPasswordDialog.vue +64 -53
- package/src/views/user/wf/wfReport/index.vue +1 -0
- package/src/views/user/wf/wf_manage/list.vue +8 -1
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +25 -22
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
v-if="showWfDialog2"
|
|
8
8
|
:visible.sync="showWfDialog2"
|
|
9
9
|
:modal="false"
|
|
10
|
-
custom-class="dialog-style designer-dialog indexUse"
|
|
10
|
+
custom-class="el-dialog dialog-style designer-dialog indexUse"
|
|
11
11
|
width="100%"
|
|
12
12
|
height="100%"
|
|
13
13
|
top="0px"
|
|
@@ -81,8 +81,14 @@ export default {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
if (wfUrl == "form") {
|
|
84
|
+
let formCode = null;
|
|
85
|
+
if (param.formCode) {
|
|
86
|
+
formCode = param.formCode;
|
|
87
|
+
} else {
|
|
88
|
+
formCode = param.objTypeCode.substr(9);
|
|
89
|
+
}
|
|
84
90
|
this.param = Object.assign(param, {
|
|
85
|
-
formCode:
|
|
91
|
+
formCode: formCode,
|
|
86
92
|
dataId: wfDataId,
|
|
87
93
|
});
|
|
88
94
|
let url = "/user/form/vform/render.vue";
|
|
@@ -107,8 +113,4 @@ export default {
|
|
|
107
113
|
};
|
|
108
114
|
</script>
|
|
109
115
|
|
|
110
|
-
<style scoped>
|
|
111
|
-
.designer-dialog.indexUse #containt .detail-wrap .d-cont {
|
|
112
|
-
height: calc(100vh - 82px);
|
|
113
|
-
}
|
|
114
|
-
</style>
|
|
116
|
+
<style scoped></style>
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
:title="$t1('用户列表')"
|
|
4
|
+
:append-to-body="true"
|
|
5
|
+
:modal-append-to-body="true"
|
|
6
|
+
:close-on-click-modal="falseValue"
|
|
7
|
+
:visible.sync="showDialog"
|
|
8
|
+
:modal="falseValue"
|
|
9
|
+
custom-class="dialog-style list-dialog dialog-checkbox pd_0"
|
|
10
|
+
width="1200px"
|
|
11
|
+
@close="dialogClose"
|
|
12
|
+
v-el-drag-dialog
|
|
13
|
+
v-el-dialog-center
|
|
14
|
+
>
|
|
15
|
+
<div class="cont" style="height:65vh">
|
|
16
|
+
<vxe-grid
|
|
17
|
+
class="is-pointer"
|
|
18
|
+
ref="table-m1"
|
|
19
|
+
v-bind="vxeOption"
|
|
20
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
21
|
+
@custom="$vxeTableUtil.customHandle"
|
|
22
|
+
@checkbox-change="addDataTable"
|
|
23
|
+
@checkbox-all="checkAll"
|
|
24
|
+
@cell-dblclick="checkWithSubmit"
|
|
25
|
+
>
|
|
26
|
+
<template #form>
|
|
27
|
+
<div class="clearfix screen-btns">
|
|
28
|
+
<div class="fr">
|
|
29
|
+
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
30
|
+
plain>{{ $t1('重置') }}
|
|
31
|
+
</vxe-button>
|
|
32
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
|
33
|
+
{{ $t1('搜索') }}
|
|
34
|
+
</vxe-button>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
<vxe-form class="screen-box" title-width="92px" title-align="right" :data="formData" @submit="searchEvent"
|
|
38
|
+
@reset="resetEvent">
|
|
39
|
+
<vxe-form-item :title="$t1('登录名')+':'" field="loginAccount">
|
|
40
|
+
<template v-slot>
|
|
41
|
+
<el-input v-model="formData.loginAccount" size="small" clearable/>
|
|
42
|
+
</template>
|
|
43
|
+
</vxe-form-item>
|
|
44
|
+
<vxe-form-item :title="$t1('姓名')+':'" field="nickName">
|
|
45
|
+
<template v-slot>
|
|
46
|
+
<el-input v-model="formData.nickName" size="small" clearable/>
|
|
47
|
+
</template>
|
|
48
|
+
</vxe-form-item>
|
|
49
|
+
<vxe-button type="submit" @click="searchEvent" v-show="false"></vxe-button>
|
|
50
|
+
</vxe-form>
|
|
51
|
+
</template>
|
|
52
|
+
</vxe-grid>
|
|
53
|
+
</div>
|
|
54
|
+
<label id="labBtn" class="transverse">
|
|
55
|
+
<div class="icon">
|
|
56
|
+
<i class="el-icon-more"></i>
|
|
57
|
+
<i class="el-icon-more"></i>
|
|
58
|
+
</div>
|
|
59
|
+
</label>
|
|
60
|
+
<div class="multipleChoice">
|
|
61
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('全部删除')" placement="top"><a
|
|
62
|
+
class="allDel icon-quanbushanchu" @click="clearChecked()"></a></el-tooltip>
|
|
63
|
+
<div class="list">
|
|
64
|
+
<div class="item" v-for="(checkRow, index) in checkRows" :key="index">
|
|
65
|
+
<p>{{ getCheckLabel(checkRow,'nickName') }}</p>
|
|
66
|
+
<a class="el-icon-close" @click="clearTable1Select(index)"></a>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
<span slot="footer" class="dialog-footer">
|
|
71
|
+
<span class="fl tips" v-if="!selectMulti">{{ $t1('注:双击确认选择(单选)') }}</span>
|
|
72
|
+
<el-button type="primary" plain class="button-sty" @click="dialogClose">
|
|
73
|
+
<i class="el-icon-close el-icon"></i>
|
|
74
|
+
{{ $t1('取 消') }}
|
|
75
|
+
</el-button>
|
|
76
|
+
<el-button type="primary" @click="dialogPrimary" class="button-sty">
|
|
77
|
+
<i class="el-icon-check el-icon"></i>
|
|
78
|
+
{{ $t1('确 定') }}
|
|
79
|
+
</el-button>
|
|
80
|
+
</span>
|
|
81
|
+
</el-dialog>
|
|
82
|
+
</template>
|
|
83
|
+
|
|
84
|
+
<script>
|
|
85
|
+
import {selectDialogMixins} from '@base/mixins/selectDialog/index.js';
|
|
86
|
+
|
|
87
|
+
export default {
|
|
88
|
+
name: 'userDialog',
|
|
89
|
+
props: ['visiable', 'multi', 'rows', 'param'],
|
|
90
|
+
mixins: [selectDialogMixins],
|
|
91
|
+
created() {
|
|
92
|
+
this.initSetting();
|
|
93
|
+
if (this.param) {
|
|
94
|
+
if (this.param.userType !== null) {
|
|
95
|
+
this.userType = this.param.userType;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
mounted() {
|
|
100
|
+
this.initTableM1();
|
|
101
|
+
},
|
|
102
|
+
data() {
|
|
103
|
+
var that = this;
|
|
104
|
+
return {
|
|
105
|
+
showDialog: true,
|
|
106
|
+
falseValue: false,
|
|
107
|
+
userType: 0,
|
|
108
|
+
formData: {
|
|
109
|
+
saleOrgId: '',
|
|
110
|
+
saleOrgName: ''
|
|
111
|
+
},
|
|
112
|
+
selectMulti: true,
|
|
113
|
+
vxeOption: {}
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
methods: {
|
|
117
|
+
initTableM1() {
|
|
118
|
+
var that = this;
|
|
119
|
+
let tableOption = {
|
|
120
|
+
vue: that,
|
|
121
|
+
tableRef: 'table-m1',
|
|
122
|
+
tableName: 'user_user_form_dialog-m1',
|
|
123
|
+
path: USER_PREFIX + '/user/listCurrentPage',
|
|
124
|
+
param: () => {
|
|
125
|
+
// this.formData.userType = this.userType;
|
|
126
|
+
return {
|
|
127
|
+
enabled: true,
|
|
128
|
+
...this.formData,
|
|
129
|
+
...this.param
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
config: {
|
|
133
|
+
checkboxConfig: {
|
|
134
|
+
checkStrictly: true,
|
|
135
|
+
showHeader: this.selectMulti,
|
|
136
|
+
trigger: 'row'
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
columns: [
|
|
140
|
+
{type: 'checkbox', width: 50, resizable: false, fixed: 'left'},
|
|
141
|
+
{title: this.$t1('登录名'), field: 'loginAccount', width: 250, fixed: 'left'},
|
|
142
|
+
{field: 'nickName', title: this.$t1('姓名'), width: 150},
|
|
143
|
+
{field: 'groupName', title: this.$t1('用户组'), width: 250},
|
|
144
|
+
{
|
|
145
|
+
width: 47,
|
|
146
|
+
fixed: 'right',
|
|
147
|
+
title: '',
|
|
148
|
+
sortable: false
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
};
|
|
152
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
153
|
+
that.vxeOption = opts;
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
</script>
|
|
@@ -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>
|
|
@@ -475,9 +475,16 @@ export default {
|
|
|
475
475
|
|
|
476
476
|
let id = row.objId;
|
|
477
477
|
let wfDataId = !id || typeof id == "object" ? 0 : Number(id);
|
|
478
|
+
|
|
478
479
|
if (row.url == "form") {
|
|
480
|
+
let formCode = null;
|
|
481
|
+
if (row.formCode) {
|
|
482
|
+
formCode = row.formCode;
|
|
483
|
+
} else {
|
|
484
|
+
formCode = row.objTypeCode.substr(9);
|
|
485
|
+
}
|
|
479
486
|
this.param = {
|
|
480
|
-
formCode:
|
|
487
|
+
formCode: formCode,
|
|
481
488
|
dataId: wfDataId,
|
|
482
489
|
};
|
|
483
490
|
let url = "/user/form/vform/render.vue";
|
|
@@ -31,14 +31,13 @@
|
|
|
31
31
|
</template>
|
|
32
32
|
|
|
33
33
|
<script>
|
|
34
|
-
|
|
35
34
|
export default {
|
|
36
35
|
name: "wfContentDialog",
|
|
37
36
|
props: {
|
|
38
37
|
option: {
|
|
39
38
|
type: Object,
|
|
40
|
-
default: {}
|
|
41
|
-
}
|
|
39
|
+
default: {},
|
|
40
|
+
},
|
|
42
41
|
},
|
|
43
42
|
components: {},
|
|
44
43
|
data() {
|
|
@@ -46,7 +45,7 @@ export default {
|
|
|
46
45
|
param: {},
|
|
47
46
|
wfContent: null,
|
|
48
47
|
showWfContent: false,
|
|
49
|
-
showWfDialog: true
|
|
48
|
+
showWfDialog: true,
|
|
50
49
|
};
|
|
51
50
|
},
|
|
52
51
|
created() {
|
|
@@ -58,7 +57,7 @@ export default {
|
|
|
58
57
|
this.$http({
|
|
59
58
|
url: USER_PREFIX + "/wf_diy_attribute/getValue",
|
|
60
59
|
method: `post`,
|
|
61
|
-
data: {attributeKey: "param4"},
|
|
60
|
+
data: { attributeKey: "param4" },
|
|
62
61
|
isLoading: true,
|
|
63
62
|
success: (res) => {
|
|
64
63
|
let val = res.objx || false;
|
|
@@ -66,7 +65,7 @@ export default {
|
|
|
66
65
|
if (val === true) {
|
|
67
66
|
this.wfClose();
|
|
68
67
|
}
|
|
69
|
-
}
|
|
68
|
+
},
|
|
70
69
|
});
|
|
71
70
|
} else {
|
|
72
71
|
this.option._handleCallback && this.option._handleCallback(flag);
|
|
@@ -74,33 +73,37 @@ export default {
|
|
|
74
73
|
},
|
|
75
74
|
wfClose() {
|
|
76
75
|
this.showWfDialog = false;
|
|
77
|
-
this.$emit(
|
|
78
|
-
this.$emit(
|
|
76
|
+
this.$emit("update:visible", false);
|
|
77
|
+
this.$emit("close");
|
|
79
78
|
},
|
|
80
79
|
openWfDialog() {
|
|
81
80
|
let id = this.option.objId;
|
|
82
|
-
let wfDataId = !id || typeof id ==
|
|
81
|
+
let wfDataId = !id || typeof id == "object" ? 0 : Number(id);
|
|
83
82
|
let param = this.option.param || {};
|
|
84
|
-
if (this.option.url ==
|
|
83
|
+
if (this.option.url == "form") {
|
|
84
|
+
let formCode = null;
|
|
85
|
+
if (this.option.formCode) {
|
|
86
|
+
formCode = this.option.formCode;
|
|
87
|
+
} else {
|
|
88
|
+
formCode = this.option.objTypeCode.substr(9);
|
|
89
|
+
}
|
|
85
90
|
this.param = Object.assign(param, {
|
|
86
|
-
formCode:
|
|
87
|
-
dataId: wfDataId
|
|
91
|
+
formCode: formCode,
|
|
92
|
+
dataId: wfDataId,
|
|
88
93
|
});
|
|
89
|
-
let url =
|
|
90
|
-
this.wfContent = require(
|
|
94
|
+
let url = "/user/form/vform/render.vue";
|
|
95
|
+
this.wfContent = require("@base/views" + url).default;
|
|
91
96
|
} else {
|
|
92
97
|
this.param = Object.assign(param, {
|
|
93
|
-
_dataId: wfDataId
|
|
98
|
+
_dataId: wfDataId,
|
|
94
99
|
});
|
|
95
|
-
let url = this.option.url +
|
|
96
|
-
this.wfContent = require(
|
|
100
|
+
let url = this.option.url + ".vue";
|
|
101
|
+
this.wfContent = require("@/views" + url).default;
|
|
97
102
|
}
|
|
98
103
|
this.showWfContent = true;
|
|
99
104
|
},
|
|
100
|
-
}
|
|
101
|
-
}
|
|
105
|
+
},
|
|
106
|
+
};
|
|
102
107
|
</script>
|
|
103
108
|
|
|
104
|
-
<style scoped>
|
|
105
|
-
|
|
106
|
-
</style>
|
|
109
|
+
<style scoped></style>
|