|
@@ -90,7 +90,7 @@ const onSubmit = () => {
|
|
|
} as any).then(() => {
|
|
|
state.loading = true
|
|
|
const params = {
|
|
|
- indexId: props.transfer.id,
|
|
|
+ indexId: props.transfer.row.id,
|
|
|
themeId: state.form.themeId,
|
|
|
themeField: JSON.stringify(state.textTable.data)
|
|
|
}
|
|
@@ -132,7 +132,7 @@ const handleSelect = (obj) => {
|
|
|
}
|
|
|
const initText = () => {
|
|
|
sysIndexFieldList(proxy.$util.formatGetParam({
|
|
|
- indexId: props.transfer.id
|
|
|
+ indexId: props.transfer.row.id
|
|
|
})).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
state.textOptions = res.data
|
|
@@ -142,15 +142,8 @@ const initText = () => {
|
|
|
})
|
|
|
}
|
|
|
const initDetail = () => {
|
|
|
- state.loading = true
|
|
|
- sysIndexGetThemeByIndex(props.transfer.id).then(res => {
|
|
|
- if (res.code === 200) {
|
|
|
- state.form = res.data || {}
|
|
|
- state.loading = false
|
|
|
- } else {
|
|
|
- ElMessage.error(res.msg)
|
|
|
- }
|
|
|
- })
|
|
|
+ state.form = props.transfer.row
|
|
|
+ state.textTable.data = state.form.themeField ? JSON.parse(state.form.themeField) : []
|
|
|
}
|
|
|
watch(() => props.show, (n) => {
|
|
|
if (n) {
|