礼物管理土耳其编辑
This commit is contained in:
@@ -189,6 +189,12 @@
|
||||
<input type="text" class="form-control validate[required]" name="giftName" id="giftEnName">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="giftTrName" class="col-sm-2 control-label">土耳其礼物名称</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control validate[required]" name="giftName" id="giftTrName">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="goldPrice" class="col-sm-2 control-label">礼物价格</label>
|
||||
<div class="col-sm-10">
|
||||
@@ -1303,12 +1309,16 @@ export default {
|
||||
$("#giftArName").val(jsonName.ar);
|
||||
// 英语名称
|
||||
$("#giftEnName").val(jsonName.en);
|
||||
// 土耳其
|
||||
$("#giftTrName").val(jsonName.tr);
|
||||
} else {
|
||||
$("#giftName").val(giftName);
|
||||
// 阿语名称
|
||||
$("#giftArName").val(giftName);
|
||||
// 英语名称
|
||||
$("#giftEnName").val(giftName);
|
||||
// 土耳其名称
|
||||
$("#giftTrName").val(giftName);
|
||||
}
|
||||
$("#goldPrice").val(json.entity.goldPrice);
|
||||
|
||||
@@ -1455,8 +1465,10 @@ export default {
|
||||
var ar_name = $("#giftArName").val();
|
||||
// 英语名称
|
||||
var en_name = $("#giftEnName").val();
|
||||
// 土耳其名称
|
||||
var tr_name = $("#giftTrName").val();
|
||||
// 国际化字段
|
||||
var jsonName = {"zh":name,"ar":ar_name,"en":en_name}
|
||||
var jsonName = {"zh":name,"ar":ar_name,"en":en_name,'tr':tr_name}
|
||||
const nameValue = JSON.stringify(jsonName);
|
||||
// 修改属性值
|
||||
formData.giftName = nameValue; // 将giftName修改为"newGiftName"
|
||||
|
Reference in New Issue
Block a user