单独构建大屏ui库,避免引入混乱

This commit is contained in:
aixianling
2024-04-12 10:22:47 +08:00
parent a4d4e3cea5
commit b5523f5f40
191 changed files with 374 additions and 355 deletions

0
ui/dv/model/Party.js Normal file
View File

26
ui/dv/model/PartyOrg.js Normal file
View File

@@ -0,0 +1,26 @@
import http from "dui/lib/js/request";
import Vue from "vue"
export default class PartyOrg {
constructor(id) {
this.id = id
this.loaded = false
this.init().finally(() => this.loaded = true)
}
init() {
return PartyOrg.getInfo(this.id).then(data => {
Object.entries(data).map(([k, v]) => Vue.set(this, k, v))
})
}
static getInfo(id) {
return http.post("/app/partyOrganization/queryOrgById", null, {
params: {id}
}).then(res => {
if (res?.data) {
return res.data
}
})
}
}