feat: 同步规格优化
This commit is contained in:
@@ -246,6 +246,7 @@ export interface UserInfo {
|
||||
* 用户分页查询对象
|
||||
*/
|
||||
export interface UserPageQuery extends PageQuery {
|
||||
times: any;
|
||||
/** 搜索关键字 */
|
||||
keywords?: string;
|
||||
|
||||
|
||||
@@ -200,18 +200,21 @@ let datas = reactive({
|
||||
remark: "",
|
||||
images: []
|
||||
});
|
||||
console.log(isSyncStatus())
|
||||
console.log(contentConfig.toolbar)
|
||||
if (isSyncStatus()) {
|
||||
if (JSON.stringify(contentConfig.toolbar)?.indexOf("add") != -1) {
|
||||
contentConfig.toolbar?.splice(0, 1)
|
||||
// contentConfig.toolbar?.splice(0, 1)
|
||||
}
|
||||
if (JSON.stringify(contentConfig.cols[contentConfig.cols.length - 1].operat)?.indexOf("delete") != -1) {
|
||||
contentConfig.cols[contentConfig.cols.length - 1].operat?.splice(2, 1)
|
||||
}
|
||||
} else {
|
||||
if (JSON.stringify(contentConfig.toolbar)?.indexOf("sync") != -1) {
|
||||
contentConfig.toolbar?.splice(1, 1)
|
||||
// contentConfig.toolbar?.splice(1, 1)
|
||||
}
|
||||
}
|
||||
console.log(contentConfig.toolbar)
|
||||
|
||||
onMounted(() => {
|
||||
console.log(route.query);
|
||||
|
||||
@@ -58,7 +58,13 @@ const contentConfig: IContentConfig<UserPageQuery> = {
|
||||
},
|
||||
pk: "id",
|
||||
toolbar: [
|
||||
"add",
|
||||
{
|
||||
icon: "plus",
|
||||
text: "新增",
|
||||
type: "primary",
|
||||
name: "add",
|
||||
auth: "import",
|
||||
},
|
||||
{
|
||||
icon: "refresh",
|
||||
text: "同步",
|
||||
|
||||
Reference in New Issue
Block a user