mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-09 00:20:26 +08:00
17 lines
378 B
JavaScript
17 lines
378 B
JavaScript
|
|
Tea.context(function () {
|
||
|
|
this.type = this.chart.type
|
||
|
|
this.typeDefinition = null
|
||
|
|
|
||
|
|
this.$delay(function () {
|
||
|
|
this.changeType()
|
||
|
|
})
|
||
|
|
|
||
|
|
this.changeType = function () {
|
||
|
|
let that = this
|
||
|
|
this.typeDefinition = this.types.$find(function (k, v) {
|
||
|
|
return v.code == that.type
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
this.success = NotifySuccess("保存成功", Tea.url(".chart", {chartId: this.chart.id}))
|
||
|
|
})
|