Commit 51bb739d authored by 周宏民's avatar 周宏民

fix: 项目案例权限通过 userID判断

parent 659dd87b
Pipeline #89220 waiting for manual action with stages
...@@ -137,14 +137,14 @@ const BottomItem = props => { ...@@ -137,14 +137,14 @@ const BottomItem = props => {
服务客户: 服务客户:
</div> </div>
<div className={styles.l_item_num_list}>{renderNum(infoData['服务客户'], '服务客户')}</div> <div className={styles.l_item_num_list}>{renderNum(infoData['服务客户'], '服务客户')}</div>
<div className={styles.l_item_num_unit} type="add" /> <div className={styles.l_item_num_unit}></div>
</div> </div>
<div className={styles.l_item}> <div className={styles.l_item}>
<div className={styles.l_item_title} type="覆盖省份"> <div className={styles.l_item_title} type="覆盖省份">
覆盖省份: 覆盖省份:
</div> </div>
<div className={styles.l_item_num_list}>{renderNum(infoData['覆盖省份'], '覆盖省份')}</div> <div className={styles.l_item_num_list}>{renderNum(infoData['覆盖省份'], '覆盖省份')}</div>
<div className={styles.l_item_num_unit} type="add" /> <div className={styles.l_item_num_unit}></div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -268,27 +268,38 @@ const Demonstration = props => { ...@@ -268,27 +268,38 @@ const Demonstration = props => {
}; };
const getProjectConfig = () => { const getProjectConfig = () => {
if (!props.global?.userInfo?.loginName) return; if (!props.global?.userInfo?.loginName) return;
appService const params = {
.getAccountPageList({
ignoreSite: true, ignoreSite: true,
accountName: '项目案例临时账号管理', accountName: '项目案例临时账号管理',
isAll: true, isAll: true,
queryWheres: [ queryWheres: [
{
field: '账号',
type: '等于',
value: props.global.userInfo.loginName,
},
{ {
field: '是否禁用', field: '是否禁用',
type: '不等于', type: '不等于',
value: '是', value: '是',
}, },
], ],
}) };
.then(res => { if (props.global.userInfo.OID) {
const dataStr = res?.data?.jsonData || ''; params.queryWheres.push({
const data = dataStr ? JSON.parse(dataStr) : []; field: '账号',
type: '等于',
value: props.global.userInfo.OID.toString(),
});
}
appService.getAccountPageList(params).then(res => {
let data = res?.data?.list || [];
data = data.map(d => {
const obj = {
ID: d.id,
};
if (Array.isArray(d.webRow)) {
d.webRow.forEach(w => {
obj[w.fieldName] = w.fieldValue;
});
}
return obj;
});
const obj = {}; const obj = {};
data.forEach(d => { data.forEach(d => {
if (!d['项目平台名称']) return; if (!d['项目平台名称']) return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment