|
@@ -170,13 +170,6 @@ export default {
|
|
|
this.searchs = new Searchs("process" + processId);
|
|
|
const getSearch = this.searchs.get();
|
|
|
this.cacheFormData = getSearch || [];
|
|
|
- if (this.cacheFormData.length > 0) {
|
|
|
- const tempSearch = this.cacheFormData[0];
|
|
|
- this.ruleForm.deptId = tempSearch.deptId
|
|
|
- ? Number(tempSearch.deptId)
|
|
|
- : null;
|
|
|
- this.ruleForm.priority = tempSearch.priority;
|
|
|
- }
|
|
|
|
|
|
await this.getUserInfo();
|
|
|
await this.getAllOrgan();
|
|
@@ -334,20 +327,28 @@ export default {
|
|
|
this.deptList = response.data.depts || [];
|
|
|
const defaultDept = response.data.deptId;
|
|
|
this.socialId = defaultDept;
|
|
|
- this.deptList.forEach((item, index) => {
|
|
|
- if (defaultDept) {
|
|
|
- if (item.deptId == defaultDept) {
|
|
|
- this.deptName = item.deptName;
|
|
|
- this.ruleForm.deptId = item.deptId;
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (index == 0) {
|
|
|
- this.deptName = item.deptName;
|
|
|
- this.ruleForm.deptId = item.deptId;
|
|
|
+ if (this.cacheFormData.length > 0) {
|
|
|
+ const tempSearch = this.cacheFormData[0];
|
|
|
+ this.ruleForm.deptId = tempSearch.deptId
|
|
|
+ ? Number(tempSearch.deptId)
|
|
|
+ : null;
|
|
|
+ this.ruleForm.priority = tempSearch.priority;
|
|
|
+ } else {
|
|
|
+ this.deptList.forEach((item, index) => {
|
|
|
+ if (defaultDept) {
|
|
|
+ if (item.deptId == defaultDept) {
|
|
|
+ this.deptName = item.deptName;
|
|
|
+ this.ruleForm.deptId = item.deptId;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (index == 0) {
|
|
|
+ this.deptName = item.deptName;
|
|
|
+ this.ruleForm.deptId = item.deptId;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- item.text = item.deptName;
|
|
|
- });
|
|
|
+ item.text = item.deptName;
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
const psv = response.data.edges || [];
|
|
|
const btn_group = [];
|