cloud-web-corejs 1.0.54-dev.600 → 1.0.54-dev.601
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/setting-panel/form-setting.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +3 -3
- package/src/views/bd/setting/formVersion/button.vue +1 -1
- package/src/views/bd/setting/formVersion/compareDialog.vue +286 -0
- package/src/views/bd/setting/formVersion/fieldCompare.vue +51 -0
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +91 -60
- package/src/views/bd/setting/formVersion/preformDialog.vue +2 -2
- package/src/views/bd/setting/formVersion/reverButton.vue +12 -14
- package/src/views/bd/setting/form_script/edit.vue +79 -34
- package/src/views/bd/setting/form_script/edit1.vue +143 -61
- package/src/views/bd/setting/form_script/mixins/edit.js +76 -53
- package/src/views/bd/setting/form_script/mixins/edit1.js +75 -52
- package/src/views/bd/setting/form_template/edit.vue +93 -36
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +166 -0
- package/src/views/bd/setting/form_template/list.vue +10 -42
- package/src/views/bd/setting/form_template/mixins/edit.js +19 -2
- package/src/views/bd/setting/form_template/mixins/list.js +2 -4
- package/src/views/bd/setting/form_template/mixins/wf_list.js +0 -4
- package/src/views/bd/setting/form_template/wf_list.vue +161 -127
- package/src/views/bd/setting/table_model/edit.vue +388 -203
- package/src/views/bd/setting/table_model/mixins/edit.js +87 -72
- package/src/views/user/form/vform/designer.vue +300 -284
- package/src/views/bd/setting/form_template/mixins/list2.js +0 -411
|
@@ -2,31 +2,38 @@ import formOplogTable from "@base/components/formOplog/index.vue";
|
|
|
2
2
|
import preformDialog from "@base/views/bd/setting/form_script/preformDialog.vue";
|
|
3
3
|
import projectTagView from "@base/components/projectTag/view.vue";
|
|
4
4
|
import MenuKindDialog from "@base/views/bd/setting/menu_kind/dialog.vue";
|
|
5
|
-
import {getBdFlag} from "@base/api/user";
|
|
5
|
+
import { getBdFlag } from "@base/api/user";
|
|
6
6
|
import otherAuthDialog from "../otherAuthDialog.vue";
|
|
7
7
|
|
|
8
8
|
let modules = {};
|
|
9
9
|
modules = {
|
|
10
|
-
name:
|
|
10
|
+
name: "user_form_scriptEdit",
|
|
11
11
|
props: {
|
|
12
12
|
_dataId: [String, Number],
|
|
13
13
|
formCode: String,
|
|
14
14
|
formTemplate: Object,
|
|
15
15
|
currentFormType: Object,
|
|
16
16
|
// readonly: Boolean,
|
|
17
|
-
otherFlag:Boolean,
|
|
17
|
+
otherFlag: Boolean,
|
|
18
18
|
scriptType: {
|
|
19
19
|
type: Number,
|
|
20
|
-
default: 0
|
|
20
|
+
default: 0,
|
|
21
21
|
},
|
|
22
22
|
hData: Object,
|
|
23
|
+
compareHData: Object,
|
|
24
|
+
},
|
|
25
|
+
components: {
|
|
26
|
+
formOplogTable,
|
|
27
|
+
preformDialog,
|
|
28
|
+
projectTagView,
|
|
29
|
+
MenuKindDialog,
|
|
30
|
+
otherAuthDialog,
|
|
23
31
|
},
|
|
24
|
-
components: {formOplogTable, preformDialog, projectTagView, MenuKindDialog,otherAuthDialog},
|
|
25
32
|
data() {
|
|
26
33
|
return {
|
|
27
34
|
isEdit: false,
|
|
28
|
-
tabIndex:
|
|
29
|
-
dataId:
|
|
35
|
+
tabIndex: "first",
|
|
36
|
+
dataId: "",
|
|
30
37
|
formScript: {
|
|
31
38
|
scriptType: 0,
|
|
32
39
|
enabled: true,
|
|
@@ -35,24 +42,35 @@ modules = {
|
|
|
35
42
|
menuKindName: null,
|
|
36
43
|
serviceName: null,
|
|
37
44
|
transactions: 1,
|
|
38
|
-
formScriptTagDTOs: []
|
|
45
|
+
formScriptTagDTOs: [],
|
|
46
|
+
},
|
|
47
|
+
oldFormScript: {
|
|
48
|
+
scriptType: 0,
|
|
49
|
+
enabled: true,
|
|
50
|
+
formCode: null,
|
|
51
|
+
menuKindCode: null,
|
|
52
|
+
menuKindName: null,
|
|
53
|
+
serviceName: null,
|
|
54
|
+
transactions: 1,
|
|
55
|
+
formScriptTagDTOs: [],
|
|
39
56
|
},
|
|
40
57
|
showCodeEditor: false,
|
|
41
58
|
showMenuKindDialog: false,
|
|
42
59
|
isDev: true,
|
|
43
60
|
showPreformDialog: false,
|
|
44
61
|
menuKindAuth: {
|
|
45
|
-
editAuth: 0
|
|
62
|
+
editAuth: 0,
|
|
46
63
|
},
|
|
47
64
|
sid: null,
|
|
48
|
-
showOtherAuthDialog:false,
|
|
65
|
+
showOtherAuthDialog: false,
|
|
49
66
|
readonly: false,
|
|
67
|
+
isCompare: false,
|
|
50
68
|
};
|
|
51
69
|
},
|
|
52
70
|
created() {
|
|
53
|
-
if(this.hData){
|
|
71
|
+
if (this.hData) {
|
|
54
72
|
this.readonly = true;
|
|
55
|
-
}else{
|
|
73
|
+
} else {
|
|
56
74
|
this.readonly = this.$attrs.readonly || false;
|
|
57
75
|
}
|
|
58
76
|
if (this._dataId && !isNaN(this._dataId)) {
|
|
@@ -66,12 +84,12 @@ modules = {
|
|
|
66
84
|
this.formScript.serviceName = this.formTemplate.serviceName;
|
|
67
85
|
} else {
|
|
68
86
|
this.formScript.scriptType = this.scriptType;
|
|
69
|
-
this.formScript.formCode =
|
|
87
|
+
this.formScript.formCode = "intf";
|
|
70
88
|
this.formScript.menuKindName = this.currentFormType?.name || null;
|
|
71
|
-
this.formScript.menuKindCode =
|
|
89
|
+
this.formScript.menuKindCode =
|
|
90
|
+
this.currentFormType?.menuKindCode || null;
|
|
72
91
|
this.formScript.serviceName = this.currentFormType?.serviceName || null;
|
|
73
92
|
}
|
|
74
|
-
|
|
75
93
|
}
|
|
76
94
|
},
|
|
77
95
|
mounted() {
|
|
@@ -87,50 +105,55 @@ modules = {
|
|
|
87
105
|
url: USER_PREFIX + `/formScript/get`,
|
|
88
106
|
method: `post`,
|
|
89
107
|
data: {
|
|
90
|
-
id: this.dataId
|
|
108
|
+
id: this.dataId,
|
|
91
109
|
},
|
|
92
110
|
isLoading: true,
|
|
93
111
|
modalStrictly: true,
|
|
94
|
-
success: res => {
|
|
112
|
+
success: (res) => {
|
|
95
113
|
this.formScript = res.objx || {};
|
|
96
114
|
this.showCodeEditor = true;
|
|
97
115
|
this.getMenuKindAuth(this.formScript.menuKindCode);
|
|
98
116
|
//获取操作日志数据
|
|
99
|
-
this.$refs[
|
|
117
|
+
this.$refs["oplogTable"].initData({
|
|
100
118
|
param: () => {
|
|
101
119
|
return {
|
|
102
120
|
logType: "FormScript",
|
|
103
|
-
logObjCode: this.formScript.sid
|
|
121
|
+
logObjCode: this.formScript.sid,
|
|
104
122
|
};
|
|
105
|
-
}
|
|
123
|
+
},
|
|
106
124
|
});
|
|
107
|
-
}
|
|
125
|
+
},
|
|
108
126
|
});
|
|
109
|
-
} else if (this.hData){
|
|
127
|
+
} else if (this.hData) {
|
|
110
128
|
this.isEdit = true;
|
|
111
129
|
this.formScript = this.$baseLodash.cloneDeep(this.hData);
|
|
112
|
-
this.dataId = this.hData.id
|
|
130
|
+
this.dataId = this.hData.id;
|
|
113
131
|
this.isInited = true;
|
|
114
132
|
this.getMenuKindAuth(this.formScript.menuKindCode);
|
|
115
133
|
this.showCodeEditor = true;
|
|
134
|
+
if (this.compareHData && this.$attrs.isCompare) {
|
|
135
|
+
this.oldFormScript = this.$baseLodash.cloneDeep(this.compareHData);
|
|
136
|
+
this.isCompare = true;
|
|
137
|
+
}
|
|
116
138
|
} else {
|
|
117
139
|
this.getMenuKindAuth(this.formScript.menuKindCode);
|
|
118
140
|
this.showCodeEditor = true;
|
|
119
141
|
}
|
|
120
142
|
},
|
|
121
143
|
saveData() {
|
|
122
|
-
this.$refs.editForm.$baseValidate(valid => {
|
|
144
|
+
this.$refs.editForm.$baseValidate((valid) => {
|
|
123
145
|
if (valid) {
|
|
124
146
|
this.openPreformDialog();
|
|
125
147
|
}
|
|
126
148
|
});
|
|
127
149
|
},
|
|
128
150
|
saveDataHandle(preformData) {
|
|
129
|
-
var url =
|
|
151
|
+
var url =
|
|
152
|
+
USER_PREFIX + (this.isEdit ? `/formScript/update` : `/formScript/save`);
|
|
130
153
|
let formData = {
|
|
131
154
|
...this.formScript,
|
|
132
155
|
logContent: preformData.logContent,
|
|
133
|
-
transactions: preformData.transactions
|
|
156
|
+
transactions: preformData.transactions,
|
|
134
157
|
};
|
|
135
158
|
this.$http({
|
|
136
159
|
aes: true,
|
|
@@ -138,24 +161,24 @@ modules = {
|
|
|
138
161
|
method: `post`,
|
|
139
162
|
data: formData,
|
|
140
163
|
isLoading: true,
|
|
141
|
-
success: res => {
|
|
164
|
+
success: (res) => {
|
|
142
165
|
this.$message({
|
|
143
166
|
message: res.content,
|
|
144
|
-
type:
|
|
167
|
+
type: "success",
|
|
145
168
|
duration: 500,
|
|
146
|
-
onClose: t => {
|
|
169
|
+
onClose: (t) => {
|
|
147
170
|
if (this.isEdit) {
|
|
148
171
|
this.$baseReload();
|
|
149
172
|
} else {
|
|
150
173
|
this.$baseReload({
|
|
151
174
|
updateParam: {
|
|
152
|
-
_dataId: res.objx
|
|
153
|
-
}
|
|
175
|
+
_dataId: res.objx,
|
|
176
|
+
},
|
|
154
177
|
});
|
|
155
178
|
}
|
|
156
|
-
}
|
|
179
|
+
},
|
|
157
180
|
});
|
|
158
|
-
}
|
|
181
|
+
},
|
|
159
182
|
});
|
|
160
183
|
},
|
|
161
184
|
openPreformDialog() {
|
|
@@ -167,30 +190,30 @@ modules = {
|
|
|
167
190
|
confirmInsertMenuKind(rows) {
|
|
168
191
|
if (rows.length > 0) {
|
|
169
192
|
let row = rows[0];
|
|
170
|
-
this.$set(this.formScript,
|
|
171
|
-
this.$set(this.formScript,
|
|
193
|
+
this.$set(this.formScript, "menuKindCode", row.menuKindCode);
|
|
194
|
+
this.$set(this.formScript, "menuKindName", row.name);
|
|
172
195
|
}
|
|
173
196
|
},
|
|
174
197
|
getBdEnv() {
|
|
175
198
|
getBdFlag({
|
|
176
|
-
success: res => {
|
|
177
|
-
this.isDev = res.objx == 1
|
|
178
|
-
}
|
|
199
|
+
success: (res) => {
|
|
200
|
+
this.isDev = res.objx == 1;
|
|
201
|
+
},
|
|
179
202
|
});
|
|
180
203
|
},
|
|
181
204
|
getMenuKindAuth(menuKindCode) {
|
|
182
|
-
if(this.otherFlag){
|
|
205
|
+
if (this.otherFlag) {
|
|
183
206
|
this.getOtherMenuKindAuth();
|
|
184
|
-
}else if (menuKindCode) {
|
|
207
|
+
} else if (menuKindCode) {
|
|
185
208
|
this.$http({
|
|
186
209
|
aes: true,
|
|
187
|
-
url: USER_PREFIX +
|
|
210
|
+
url: USER_PREFIX + "/menu_kind_auth/getAuth",
|
|
188
211
|
method: `post`,
|
|
189
|
-
data: {stringOne: menuKindCode},
|
|
212
|
+
data: { stringOne: menuKindCode },
|
|
190
213
|
isLoading: true,
|
|
191
|
-
success: res => {
|
|
192
|
-
this.menuKindAuth = res.objx || {}
|
|
193
|
-
}
|
|
214
|
+
success: (res) => {
|
|
215
|
+
this.menuKindAuth = res.objx || {};
|
|
216
|
+
},
|
|
194
217
|
});
|
|
195
218
|
}
|
|
196
219
|
},
|
|
@@ -201,7 +224,7 @@ modules = {
|
|
|
201
224
|
aes: true,
|
|
202
225
|
url: USER_PREFIX + "/form_script_auth/getAuth",
|
|
203
226
|
method: `post`,
|
|
204
|
-
data: {stringOne: this.formScript.sid},
|
|
227
|
+
data: { stringOne: this.formScript.sid },
|
|
205
228
|
isLoading: true,
|
|
206
229
|
success: (res) => {
|
|
207
230
|
this.menuKindAuth = res.objx || {};
|
|
@@ -209,13 +232,13 @@ modules = {
|
|
|
209
232
|
});
|
|
210
233
|
}
|
|
211
234
|
},
|
|
212
|
-
openOtherAuthDialog(){
|
|
213
|
-
this.sid = this.formScript.sid
|
|
214
|
-
this.showOtherAuthDialog = true
|
|
235
|
+
openOtherAuthDialog() {
|
|
236
|
+
this.sid = this.formScript.sid;
|
|
237
|
+
this.showOtherAuthDialog = true;
|
|
215
238
|
},
|
|
216
|
-
confirmOtherAuthDialog(){
|
|
217
|
-
this.$baseReload()
|
|
239
|
+
confirmOtherAuthDialog() {
|
|
240
|
+
this.$baseReload();
|
|
218
241
|
},
|
|
219
|
-
}
|
|
242
|
+
},
|
|
220
243
|
};
|
|
221
|
-
export default modules
|
|
244
|
+
export default modules;
|
|
@@ -2,27 +2,34 @@ import formOplogTable from "@base/components/formOplog/index.vue";
|
|
|
2
2
|
import preformDialog from "@base/views/bd/setting/form_script/preformDialog.vue";
|
|
3
3
|
import projectTagView from "@base/components/projectTag/view.vue";
|
|
4
4
|
import MenuKindDialog from "@base/views/bd/setting/menu_kind/dialog.vue";
|
|
5
|
-
import {getBdFlag} from "@base/api/user";
|
|
5
|
+
import { getBdFlag } from "@base/api/user";
|
|
6
6
|
import otherAuthDialog from "../otherAuthDialog.vue";
|
|
7
7
|
|
|
8
8
|
let modules = {};
|
|
9
9
|
modules = {
|
|
10
|
-
name:
|
|
10
|
+
name: "user_form_scriptEdit",
|
|
11
11
|
props: {
|
|
12
12
|
_dataId: [String, Number],
|
|
13
13
|
formCode: String,
|
|
14
14
|
formTemplate: Object,
|
|
15
15
|
currentFormType: Object,
|
|
16
16
|
// readonly: Boolean,
|
|
17
|
-
otherFlag:Boolean,
|
|
17
|
+
otherFlag: Boolean,
|
|
18
18
|
hData: Object,
|
|
19
|
+
compareHData: Object,
|
|
20
|
+
},
|
|
21
|
+
components: {
|
|
22
|
+
formOplogTable,
|
|
23
|
+
preformDialog,
|
|
24
|
+
projectTagView,
|
|
25
|
+
MenuKindDialog,
|
|
26
|
+
otherAuthDialog,
|
|
19
27
|
},
|
|
20
|
-
components: {formOplogTable, preformDialog, projectTagView, MenuKindDialog,otherAuthDialog},
|
|
21
28
|
data() {
|
|
22
29
|
return {
|
|
23
30
|
isEdit: false,
|
|
24
|
-
tabIndex:
|
|
25
|
-
dataId:
|
|
31
|
+
tabIndex: "first",
|
|
32
|
+
dataId: "",
|
|
26
33
|
formScript: {
|
|
27
34
|
scriptType: 1,
|
|
28
35
|
enabled: true,
|
|
@@ -31,24 +38,35 @@ modules = {
|
|
|
31
38
|
menuKindName: null,
|
|
32
39
|
serviceName: null,
|
|
33
40
|
transactions: 1,
|
|
34
|
-
formScriptTagDTOs: []
|
|
41
|
+
formScriptTagDTOs: [],
|
|
42
|
+
},
|
|
43
|
+
oldFormScript: {
|
|
44
|
+
scriptType: 1,
|
|
45
|
+
enabled: true,
|
|
46
|
+
formCode: null,
|
|
47
|
+
menuKindCode: null,
|
|
48
|
+
menuKindName: null,
|
|
49
|
+
serviceName: null,
|
|
50
|
+
transactions: 1,
|
|
51
|
+
formScriptTagDTOs: [],
|
|
35
52
|
},
|
|
36
53
|
showCodeEditor: false,
|
|
37
54
|
showMenuKindDialog: false,
|
|
38
55
|
isDev: true,
|
|
39
56
|
showPreformDialog: false,
|
|
40
57
|
menuKindAuth: {
|
|
41
|
-
editAuth: 0
|
|
58
|
+
editAuth: 0,
|
|
42
59
|
},
|
|
43
60
|
sid: null,
|
|
44
|
-
showOtherAuthDialog:false,
|
|
61
|
+
showOtherAuthDialog: false,
|
|
45
62
|
readonly: false,
|
|
63
|
+
isCompare: false,
|
|
46
64
|
};
|
|
47
65
|
},
|
|
48
66
|
created() {
|
|
49
|
-
if(this.hData){
|
|
67
|
+
if (this.hData) {
|
|
50
68
|
this.readonly = true;
|
|
51
|
-
}else{
|
|
69
|
+
} else {
|
|
52
70
|
this.readonly = this.$attrs.readonly || false;
|
|
53
71
|
}
|
|
54
72
|
if (this._dataId && !isNaN(this._dataId)) {
|
|
@@ -60,12 +78,12 @@ modules = {
|
|
|
60
78
|
this.formScript.menuKindName = this.formTemplate.menuKindName;
|
|
61
79
|
this.formScript.serviceName = this.formTemplate.serviceName;
|
|
62
80
|
} else {
|
|
63
|
-
this.formScript.formCode =
|
|
81
|
+
this.formScript.formCode = "intf";
|
|
64
82
|
this.formScript.menuKindName = this.currentFormType?.name || null;
|
|
65
|
-
this.formScript.menuKindCode =
|
|
83
|
+
this.formScript.menuKindCode =
|
|
84
|
+
this.currentFormType?.menuKindCode || null;
|
|
66
85
|
this.formScript.serviceName = this.currentFormType?.serviceName || null;
|
|
67
86
|
}
|
|
68
|
-
|
|
69
87
|
}
|
|
70
88
|
},
|
|
71
89
|
mounted() {
|
|
@@ -81,50 +99,55 @@ modules = {
|
|
|
81
99
|
url: USER_PREFIX + `/formScript/get`,
|
|
82
100
|
method: `post`,
|
|
83
101
|
data: {
|
|
84
|
-
id: this.dataId
|
|
102
|
+
id: this.dataId,
|
|
85
103
|
},
|
|
86
104
|
isLoading: true,
|
|
87
105
|
modalStrictly: true,
|
|
88
|
-
success: res => {
|
|
106
|
+
success: (res) => {
|
|
89
107
|
this.formScript = res.objx || {};
|
|
90
108
|
this.showCodeEditor = true;
|
|
91
109
|
this.getMenuKindAuth(this.formScript.menuKindCode);
|
|
92
110
|
//获取操作日志数据
|
|
93
|
-
this.$refs[
|
|
111
|
+
this.$refs["oplogTable"].initData({
|
|
94
112
|
param: () => {
|
|
95
113
|
return {
|
|
96
114
|
logType: "FormScript",
|
|
97
|
-
logObjCode: this.formScript.sid
|
|
115
|
+
logObjCode: this.formScript.sid,
|
|
98
116
|
};
|
|
99
|
-
}
|
|
117
|
+
},
|
|
100
118
|
});
|
|
101
|
-
}
|
|
119
|
+
},
|
|
102
120
|
});
|
|
103
|
-
} else if (this.hData){
|
|
121
|
+
} else if (this.hData) {
|
|
104
122
|
this.isEdit = true;
|
|
105
123
|
this.formScript = this.$baseLodash.cloneDeep(this.hData);
|
|
106
|
-
this.dataId = this.hData.id
|
|
124
|
+
this.dataId = this.hData.id;
|
|
107
125
|
this.isInited = true;
|
|
108
126
|
this.getMenuKindAuth(this.formScript.menuKindCode);
|
|
109
127
|
this.showCodeEditor = true;
|
|
128
|
+
if (this.compareHData && this.$attrs.isCompare) {
|
|
129
|
+
this.oldFormScript = this.$baseLodash.cloneDeep(this.compareHData);
|
|
130
|
+
this.isCompare = true;
|
|
131
|
+
}
|
|
110
132
|
} else {
|
|
111
133
|
this.getMenuKindAuth(this.formScript.menuKindCode);
|
|
112
134
|
this.showCodeEditor = true;
|
|
113
135
|
}
|
|
114
136
|
},
|
|
115
137
|
saveData() {
|
|
116
|
-
this.$refs.editForm.$baseValidate(valid => {
|
|
138
|
+
this.$refs.editForm.$baseValidate((valid) => {
|
|
117
139
|
if (valid) {
|
|
118
140
|
this.openPreformDialog();
|
|
119
141
|
}
|
|
120
142
|
});
|
|
121
143
|
},
|
|
122
144
|
saveDataHandle(preformData) {
|
|
123
|
-
var url =
|
|
145
|
+
var url =
|
|
146
|
+
USER_PREFIX + (this.isEdit ? `/formScript/update` : `/formScript/save`);
|
|
124
147
|
let formData = {
|
|
125
148
|
...this.formScript,
|
|
126
149
|
logContent: preformData.logContent,
|
|
127
|
-
transactions: preformData.transactions
|
|
150
|
+
transactions: preformData.transactions,
|
|
128
151
|
};
|
|
129
152
|
this.$http({
|
|
130
153
|
aes: true,
|
|
@@ -132,24 +155,24 @@ modules = {
|
|
|
132
155
|
method: `post`,
|
|
133
156
|
data: formData,
|
|
134
157
|
isLoading: true,
|
|
135
|
-
success: res => {
|
|
158
|
+
success: (res) => {
|
|
136
159
|
this.$message({
|
|
137
160
|
message: res.content,
|
|
138
|
-
type:
|
|
161
|
+
type: "success",
|
|
139
162
|
duration: 500,
|
|
140
|
-
onClose: t => {
|
|
163
|
+
onClose: (t) => {
|
|
141
164
|
if (this.isEdit) {
|
|
142
165
|
this.$baseReload();
|
|
143
166
|
} else {
|
|
144
167
|
this.$baseReload({
|
|
145
168
|
updateParam: {
|
|
146
|
-
_dataId: res.objx
|
|
147
|
-
}
|
|
169
|
+
_dataId: res.objx,
|
|
170
|
+
},
|
|
148
171
|
});
|
|
149
172
|
}
|
|
150
|
-
}
|
|
173
|
+
},
|
|
151
174
|
});
|
|
152
|
-
}
|
|
175
|
+
},
|
|
153
176
|
});
|
|
154
177
|
},
|
|
155
178
|
openPreformDialog() {
|
|
@@ -161,30 +184,30 @@ modules = {
|
|
|
161
184
|
confirmInsertMenuKind(rows) {
|
|
162
185
|
if (rows.length > 0) {
|
|
163
186
|
let row = rows[0];
|
|
164
|
-
this.$set(this.formScript,
|
|
165
|
-
this.$set(this.formScript,
|
|
187
|
+
this.$set(this.formScript, "menuKindCode", row.menuKindCode);
|
|
188
|
+
this.$set(this.formScript, "menuKindName", row.name);
|
|
166
189
|
}
|
|
167
190
|
},
|
|
168
191
|
getBdEnv() {
|
|
169
192
|
getBdFlag({
|
|
170
|
-
success: res => {
|
|
171
|
-
this.isDev = res.objx == 1
|
|
172
|
-
}
|
|
193
|
+
success: (res) => {
|
|
194
|
+
this.isDev = res.objx == 1;
|
|
195
|
+
},
|
|
173
196
|
});
|
|
174
197
|
},
|
|
175
198
|
getMenuKindAuth(menuKindCode) {
|
|
176
|
-
if(this.otherFlag){
|
|
199
|
+
if (this.otherFlag) {
|
|
177
200
|
this.getOtherMenuKindAuth();
|
|
178
|
-
}else if (menuKindCode) {
|
|
201
|
+
} else if (menuKindCode) {
|
|
179
202
|
this.$http({
|
|
180
203
|
aes: true,
|
|
181
|
-
url: USER_PREFIX +
|
|
204
|
+
url: USER_PREFIX + "/menu_kind_auth/getAuth",
|
|
182
205
|
method: `post`,
|
|
183
|
-
data: {stringOne: menuKindCode},
|
|
206
|
+
data: { stringOne: menuKindCode },
|
|
184
207
|
isLoading: true,
|
|
185
|
-
success: res => {
|
|
186
|
-
this.menuKindAuth = res.objx || {}
|
|
187
|
-
}
|
|
208
|
+
success: (res) => {
|
|
209
|
+
this.menuKindAuth = res.objx || {};
|
|
210
|
+
},
|
|
188
211
|
});
|
|
189
212
|
}
|
|
190
213
|
},
|
|
@@ -195,7 +218,7 @@ modules = {
|
|
|
195
218
|
aes: true,
|
|
196
219
|
url: USER_PREFIX + "/form_script_auth/getAuth",
|
|
197
220
|
method: `post`,
|
|
198
|
-
data: {stringOne: this.formScript.sid},
|
|
221
|
+
data: { stringOne: this.formScript.sid },
|
|
199
222
|
isLoading: true,
|
|
200
223
|
success: (res) => {
|
|
201
224
|
this.menuKindAuth = res.objx || {};
|
|
@@ -203,13 +226,13 @@ modules = {
|
|
|
203
226
|
});
|
|
204
227
|
}
|
|
205
228
|
},
|
|
206
|
-
openOtherAuthDialog(){
|
|
207
|
-
this.sid = this.formScript.sid
|
|
208
|
-
this.showOtherAuthDialog = true
|
|
229
|
+
openOtherAuthDialog() {
|
|
230
|
+
this.sid = this.formScript.sid;
|
|
231
|
+
this.showOtherAuthDialog = true;
|
|
209
232
|
},
|
|
210
|
-
confirmOtherAuthDialog(){
|
|
211
|
-
this.$baseReload()
|
|
233
|
+
confirmOtherAuthDialog() {
|
|
234
|
+
this.$baseReload();
|
|
212
235
|
},
|
|
213
|
-
}
|
|
236
|
+
},
|
|
214
237
|
};
|
|
215
|
-
export default modules
|
|
238
|
+
export default modules;
|