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