dubch 5 years ago
parent
commit
9adb334b47

+ 4 - 2
src/dashoo.cn/backend/api/controllers/oilsupplier/supplier.go

@@ -1366,9 +1366,11 @@ func (this *OilSupplierController) GetDictListByStatus() {
 	svc.GetEntity(&registermodel, wherereg)
 	dictList["Register"] = registermodel
 
-	// 所有二级单位
+	// 所有专业处室
 	var allunitorglist []organize.Base_Organize
-	where = "Category='Unit' and ParentId in (100000001, 100000128)"
+	//where = "Category='Unit' and ParentId in (100000001, 100000128)"
+	//00097005 直属机构 00265300 公司机关 00097004 机关附属机构
+	where = "Category='Unit' and OuterPhone in (00097005,00265300,00097004)"
 	orgsvc.GetEntities(&allunitorglist, where)
 	dictList["Allunitorglist"] = allunitorglist
 

+ 1 - 1
src/dashoo.cn/backend/api/controllers/register/oilcorporateinfo.go

@@ -645,7 +645,7 @@ func (this *OilCorporateInfoController) OrgLoginList() {
 	svc := organize.GetOrganizeService(utils.DBE)
 	var org []organize.Base_Organize
 	//where := "Category='unit' and ParentId in (100000128,100000176) and Id not in (100000159,100000166)"
-	//00097005,100000061 直属机构 二级单位
+	//00097005,00097006 直属机构 二级单位
 	//00265439,50081902,50073840 土地公路管理部 矿区服务事业部 矿区服务事业部
 	where := "Category='unit' and OuterPhone in (00097005,00097006) and Code not in (00265439,50081902,50073840)"
 	svc.GetEntities(&org, where)

+ 3 - 3
src/dashoo.cn/frontend_web/src/pages/login.vue

@@ -242,9 +242,9 @@ import Cookies from 'js-cookie'
         return false
       }
       let params = {
-        appCode: 'SCGLDBWUrsaCL',
-        secret: 'HFxEwaX7YQpgVxTrEBpg',
-        code: '234'
+        appCode: 'SCGLpoS9g4PVq',
+        secret: 'EKI7QvGbOnZeCodOZG90',
+        code: iamCode
       }
       Iam.iamlogin(params, this.$axios).then(res => {
         console.log(res, '2222')