|
|
@@ -496,6 +496,7 @@ export default class extends Vue {
|
|
|
}
|
|
|
|
|
|
GetEntityData(F_id) {
|
|
|
+ let that = this;
|
|
|
const formData = new FormData();
|
|
|
formData.append('F_id', F_id);
|
|
|
insideGetEntity(formData).then(response => {
|
|
|
@@ -514,15 +515,18 @@ export default class extends Vue {
|
|
|
const F_TextureCodeWithColor = response.Data.F_TextureCodeWithColor;
|
|
|
// 处理纹理
|
|
|
if (F_TextureCodeWithColor) {
|
|
|
- this.textureCode_selValue = F_TextureCodeWithColor.split("-")[1];
|
|
|
+ // this.textureCode_selValue = F_TextureCodeWithColor.split("-")[1];
|
|
|
// 找到选中的纹理项和索引
|
|
|
let selectedItem = null;
|
|
|
let selectedIndex = -1;
|
|
|
this.textureCode_options.forEach((item, index) => {
|
|
|
- if (item.text === this.textureCode_selValue) {
|
|
|
- selectedItem = item;
|
|
|
- selectedIndex = index;
|
|
|
- }
|
|
|
+ item.subitems.forEach((childItem,childIndex) => {
|
|
|
+ if (childItem.value === F_TextureCodeWithColor) {
|
|
|
+ that.textureCode_selValue = item.text;
|
|
|
+ selectedItem = item;
|
|
|
+ selectedIndex = index;
|
|
|
+ }
|
|
|
+ })
|
|
|
});
|
|
|
this.textureCode_selItem_index = selectedIndex;
|
|
|
// 找到选中的纹理颜色
|