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 => {
服务客户:
</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 className={styles.l_item}>
<div className={styles.l_item_title} type="覆盖省份">
覆盖省份:
</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>
......
......@@ -268,27 +268,38 @@ const Demonstration = props => {
};
const getProjectConfig = () => {
if (!props.global?.userInfo?.loginName) return;
appService
.getAccountPageList({
const params = {
ignoreSite: true,
accountName: '项目案例临时账号管理',
isAll: true,
queryWheres: [
{
field: '账号',
type: '等于',
value: props.global.userInfo.loginName,
},
{
field: '是否禁用',
type: '不等于',
value: '是',
},
],
})
.then(res => {
const dataStr = res?.data?.jsonData || '';
const data = dataStr ? JSON.parse(dataStr) : [];
};
if (props.global.userInfo.OID) {
params.queryWheres.push({
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 = {};
data.forEach(d => {
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