Commit e4ad13aa authored by zhengke's avatar zhengke

Merge branch 'master' into 1.4.0

parents 4a9db423 1b97b1b3
...@@ -525,9 +525,24 @@ const setTemplate = async (type) =>{ ...@@ -525,9 +525,24 @@ const setTemplate = async (type) =>{
||queryObj.value.ColorStr==''||queryObj.value.SeasonName=='')){ ||queryObj.value.ColorStr==''||queryObj.value.SeasonName=='')){
datas.loading = false datas.loading = false
mainStore.setToolbarState(ToolbarStates.EL_TEMPLATEDATA) mainStore.setToolbarState(ToolbarStates.EL_TEMPLATEDATA)
return ElMessage({ if(queryObj.value.Title=='') return ElMessage({
showClose: true,
message: '请完善右侧模版名称',
type: 'warning',
})
if(queryObj.value.CountryName=='') return ElMessage({
showClose: true,
message: '请完善右侧国家',
type: 'warning',
})
if(queryObj.value.ColorStr=='') return ElMessage({
showClose: true,
message: '请完善右侧颜色',
type: 'warning',
})
if(queryObj.value.SeasonName=='') return ElMessage({
showClose: true, showClose: true,
message: '请完善右侧模版数据', message: '请完善右侧季节',
type: 'warning', type: 'warning',
}) })
} }
......
...@@ -97,7 +97,6 @@ ...@@ -97,7 +97,6 @@
</div> </div>
</div> </div>
</div> </div>
<div class="row q-mt-md"> <div class="row q-mt-md">
<el-select v-model="queryObj.CountryName" filterable class="m-2" placeholder="请选择国家" <el-select v-model="queryObj.CountryName" filterable class="m-2" placeholder="请选择国家"
@change="getCountryId"> @change="getCountryId">
...@@ -468,6 +467,7 @@ ...@@ -468,6 +467,7 @@
}) })
return return
} }
datas.params.Content = datas.params.Name
try { try {
datas.addNationLoading = true datas.addNationLoading = true
let dataRes = await ConfigService.SetTemplateConfigData(datas.params) let dataRes = await ConfigService.SetTemplateConfigData(datas.params)
......
...@@ -126,6 +126,7 @@ ...@@ -126,6 +126,7 @@
message: '请完善国家名称', message: '请完善国家名称',
type: 'warning', type: 'warning',
}) })
datas.params.Content = datas.params.Name
datas.requestLoading = true datas.requestLoading = true
const result = await ConfigService.SetTemplateConfigData(datas.params) const result = await ConfigService.SetTemplateConfigData(datas.params)
if(result){ if(result){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment