|
@@ -155,9 +155,11 @@ export default {
|
|
|
initFormData() {
|
|
|
if (!getExecuteUserType(getActive())) {
|
|
|
//初始化数据时给流程绑定用户类型
|
|
|
- this.updateExeUserType("1");
|
|
|
+ this.updateExeUserType("1", true);
|
|
|
}
|
|
|
this.exeUserType = getExecuteUserType(getActive()) || "1";
|
|
|
+ this.initOptions(this.exeUserType);
|
|
|
+ // this.updateExeUserType(this.exeUserType, true);
|
|
|
if (this.exeUserType == 2) {
|
|
|
let temp = getExecuteUser(getActive()) || "";
|
|
|
console.log(temp);
|
|
@@ -182,21 +184,34 @@ export default {
|
|
|
});
|
|
|
this.isArriveBoottom = false;
|
|
|
},
|
|
|
- updateExeUserType(value) {
|
|
|
+ initOptions(value) {
|
|
|
+ if (value == "3") {
|
|
|
+ // this.exeRoleListHandler();
|
|
|
+ this.exeUserValueList = this.roleList;
|
|
|
+ } else {
|
|
|
+ // this.exeUserListHandler();
|
|
|
+ this.exeUserValueList = this.userList;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ updateExeUserType(value, isFirst = false) {
|
|
|
setExecuteUserType(getActive(), value);
|
|
|
- value == 2
|
|
|
+ value == "2"
|
|
|
? setExecuteUser(getActive(), [], this.isNewNode())
|
|
|
: setExecuteUser(getActive(), "", this.isNewNode());
|
|
|
+ // if (!isFirst) {
|
|
|
this.exeUserValueList = [];
|
|
|
this.exeUserValue = "";
|
|
|
+ // }
|
|
|
+
|
|
|
if (!value) return;
|
|
|
- if (value == 3) {
|
|
|
+ if (value == "3") {
|
|
|
// this.exeRoleListHandler();
|
|
|
this.exeUserValueList = this.roleList;
|
|
|
} else {
|
|
|
// this.exeUserListHandler();
|
|
|
this.exeUserValueList = this.userList;
|
|
|
}
|
|
|
+ console.log(value, this.exeUserValueList);
|
|
|
},
|
|
|
async exeUserListHandler() {
|
|
|
this.allUserList().forEach((item) => {
|