This commit is contained in:
qsh
2025-04-15 18:46:03 +08:00
parent 53d66f9676
commit 51140a3c41
2 changed files with 6 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
<el-date-picker <el-date-picker
v-model="form.effectiveDate" v-model="form.effectiveDate"
type="date" type="date"
:disabled="form.id" :disabled="!!form.id"
format="YYYY-MM-DD" format="YYYY-MM-DD"
value-format="YYYY-MM-DD" value-format="YYYY-MM-DD"
placeholder="选择日期时间" placeholder="选择日期时间"

View File

@@ -398,7 +398,11 @@ function open(type, val, queryType) {
krOptions.value = resp krOptions.value = resp
}) })
getChannelOptions().then((resp) => { getChannelOptions().then((resp) => {
sourceOptions.value = resp sourceOptions.value = listToTree(resp, {
id: 'sourceId',
pid: 'parentId',
children: 'children'
})
}) })
if (val) { if (val) {
formLoading.value = true formLoading.value = true