mahao
1 year ago
38 changed files with 481 additions and 1032 deletions
File diff suppressed because one or more lines are too long
@ -0,0 +1,37 @@ |
|||
import qs from "../lib/qs/shim.js"; |
|||
|
|||
function createDefaultRoute(type = "group", icon = "folder", isHidden = false, isTop = false) { |
|||
return { |
|||
type, |
|||
icon, |
|||
isTop, |
|||
isHidden, |
|||
}; |
|||
} |
|||
|
|||
function createRoute(path, meta = null, component = null) { |
|||
return { |
|||
path, |
|||
component, |
|||
meta: Object.assign(createDefaultRoute(), qs.parse(meta)), |
|||
}; |
|||
} |
|||
|
|||
function createPage(path, meta = null, component = null) { |
|||
return { |
|||
path, |
|||
component, |
|||
meta: Object.assign(createDefaultRoute("page", "file"), qs.parse(meta)), |
|||
}; |
|||
} |
|||
|
|||
function createButton(path, meta = null, component = null) { |
|||
return { |
|||
path, |
|||
component, |
|||
meta: Object.assign(createDefaultRoute("button", "file"), qs.parse(meta)), |
|||
}; |
|||
} |
|||
|
|||
export default createRoute; |
|||
export { createPage, createButton }; |
@ -1,15 +0,0 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/pub_sa_detail_service.js"; |
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
config.query.schema.properties.businessType.default="BeiJian"; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -1,16 +0,0 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/pub_sa_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
config.query.schema.properties.businessType.default="BeiJian"; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -1,16 +0,0 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/pub_sa_detail_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
config.query.schema.properties.businessType.default = "YinDuJian"; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -1,16 +0,0 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/pub_sa_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
config.query.schema.properties.businessType.default = "YinDuJian"; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,29 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import { useRoute } from "vue-router"; |
|||
import useConfig from "../../models/input/jie-suan.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
let config = null; |
|||
const route = useRoute(); |
|||
const businessType = route.meta.businessType; |
|||
if (businessType === "JisBBAC") { |
|||
config = useConfig("bbac_sa_service", "bbac_sa_detail_service"); |
|||
} else if (businessType === "JisHBPO") { |
|||
config = useConfig("hbpo_sa_service", "hbpo_sa_detail_service"); |
|||
} else { |
|||
config = useConfig(); |
|||
} |
|||
config.query.url = "settleaccount/bbac_sa_service/get-list"; |
|||
config.edit.importUrl = "settleaccount/bbac_sa_service/import"; |
|||
config.edit.exportUrl = "settleaccount/bbac_sa_detail_service/export"; |
|||
config.edit.deleteUrl = "settleaccount/bbac_sa_service/delete-list"; |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -1,15 +0,0 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/jis-bbac/input/bbac_sa_detail_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -1,15 +0,0 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/jis-bbac/input/bbac_sa_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -1,15 +0,0 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/jis-hbpo/input/hbpo_sa_detail_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -1,15 +0,0 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/jis-hbpo/input/hbpo_sa_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -1,16 +0,0 @@ |
|||
import AppList from "../../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../../models/pub_sa_detail_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
config.query.schema.properties.businessType.default = "ZhiGongJianBBAC"; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -1,16 +0,0 @@ |
|||
import AppList from "../../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../../models/pub_sa_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
config.query.schema.properties.businessType.default = "ZhiGongJianBBAC"; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -1,16 +0,0 @@ |
|||
import AppList from "../../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../../models/pub_sa_detail_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
config.query.schema.properties.businessType.default = "ZhiGongJianHBPO"; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -1,16 +0,0 @@ |
|||
import AppList from "../../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../../models/pub_sa_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
config.query.schema.properties.businessType.default = "ZhiGongJianHBPO"; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -1,16 +0,0 @@ |
|||
import AppList from "../../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../../models/pub_sa_detail_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
config.query.schema.properties.businessType.default = "MaiDanJianBBAC"; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -1,16 +0,0 @@ |
|||
import AppList from "../../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../../models/pub_sa_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
config.query.schema.properties.businessType.default = "MaiDanJianBBAC"; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -1,16 +0,0 @@ |
|||
import AppList from "../../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../../models/pub_sa_detail_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
config.query.schema.properties.businessType.default = "MaiDanJianHBPO"; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -1,16 +0,0 @@ |
|||
import AppList from "../../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../../models/pub_sa_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
config.query.schema.properties.businessType.default = "MaiDanJianHBPO"; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
Loading…
Reference in new issue