fix(icc add hls)
This commit is contained in:
parent
4b8f16cb56
commit
a36ea869ac
|
@ -111,6 +111,7 @@ const BTable = (props: any) => {
|
|||
scroll={scroll}
|
||||
loading={store.listStatus}
|
||||
rowSelection={rowSelection}
|
||||
rowKey={(record) => record.id}
|
||||
columns={[...props.columns, actionDefultColumn]}
|
||||
dataSource={dataSource}
|
||||
/>
|
||||
|
|
|
@ -9,7 +9,7 @@ const Company = (props: Store) => {
|
|||
const { companyStore } = props;
|
||||
|
||||
useEffect(() => {
|
||||
companyStore.getlist();
|
||||
companyStore.getlist()
|
||||
}, [companyStore]);
|
||||
|
||||
return (
|
||||
|
|
|
@ -18,7 +18,7 @@ const User = (props: Store) => {
|
|||
element.thing_ids = element.thing.map((item) => item.thing_identity)
|
||||
}
|
||||
});
|
||||
}, [usrStore]);
|
||||
}, [usrStore, usrStore.isRefresh]);
|
||||
|
||||
return (
|
||||
<div className="contentBox">
|
||||
|
|
|
@ -13,13 +13,6 @@ export const defaultConfig = [
|
|||
value: "",
|
||||
rules: [{ required: true, message: "请输入用户名称!" }],
|
||||
},
|
||||
// {
|
||||
// type: FormType.input,
|
||||
// label: "身份证",
|
||||
// name: "id_card",
|
||||
// value: "",
|
||||
// rules: [{ required: true, message: "请输入身份证" }],
|
||||
// },
|
||||
{
|
||||
type: FormType.input,
|
||||
label: "登录账号",
|
||||
|
@ -71,6 +64,7 @@ export const defaultConfig = [
|
|||
keys: "company_id",
|
||||
rules: [{ required: true, message: "所属单位不能为空" }],
|
||||
},
|
||||
|
||||
{
|
||||
type: FormType.select,
|
||||
label: "角色",
|
||||
|
@ -79,18 +73,19 @@ export const defaultConfig = [
|
|||
value: "",
|
||||
rules: [{ required: true, message: "角色不能为空" }],
|
||||
},
|
||||
// {
|
||||
// type: FormType.input,
|
||||
// label: "邮箱",
|
||||
// name: "email",
|
||||
// value: "",
|
||||
// },
|
||||
{
|
||||
type: FormType.inputNumber,
|
||||
label: "排序",
|
||||
name: "orders",
|
||||
value: 0,
|
||||
},
|
||||
{
|
||||
type: FormType.upload,
|
||||
label: "头像",
|
||||
name: "head_img",
|
||||
value: [],
|
||||
},
|
||||
|
||||
|
||||
];
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ interface BaseStoreInterface<T> {
|
|||
page: Pages
|
||||
setPages(pages: Pages): any
|
||||
listStatus: boolean | null | undefined
|
||||
isRefresh: boolean
|
||||
}
|
||||
|
||||
class BaseStore<B> implements BaseStoreInterface<B> {
|
||||
|
@ -32,6 +33,7 @@ class BaseStore<B> implements BaseStoreInterface<B> {
|
|||
})
|
||||
this.urlConfig = urlConfig;
|
||||
}
|
||||
|
||||
|
||||
// 删除
|
||||
async deleteItem(id: number) {
|
||||
|
@ -57,6 +59,7 @@ class BaseStore<B> implements BaseStoreInterface<B> {
|
|||
message.error(res.msg)
|
||||
return false
|
||||
}
|
||||
this.isRefresh = true
|
||||
this.getlist(listParam)
|
||||
return true;
|
||||
} catch (error) {
|
||||
|
@ -72,6 +75,7 @@ class BaseStore<B> implements BaseStoreInterface<B> {
|
|||
message.error(res.msg)
|
||||
return false
|
||||
}
|
||||
this.isRefresh = true
|
||||
this.getlist(listParam)
|
||||
return true;
|
||||
} catch (error) {
|
||||
|
@ -117,6 +121,7 @@ class BaseStore<B> implements BaseStoreInterface<B> {
|
|||
total!: number;
|
||||
page!: Pages;
|
||||
listStatus: boolean | null | undefined;
|
||||
isRefresh!: boolean;
|
||||
}
|
||||
|
||||
export default BaseStore
|
Loading…
Reference in New Issue