|
|
@ -160,29 +160,68 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
|
|
|
|
|
|
<el-row v-if=" activeElement.isEdit==1"> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="文本内容"> |
|
|
|
|
|
<el-input v-model="activeElement.value"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item label="控件名称"> |
|
|
|
|
|
<el-input v-model="activeElement.title"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item v-if="activeElement.isEdit==1" label="属性值"> |
|
|
|
|
|
|
|
|
<el-form-item v-if=" activeElement.type != 'braid-image' " label="属性值"> |
|
|
|
|
|
<el-input v-model="activeElement.value"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item v-if=" activeElement.type == 'braid-image' " label="文件名"> |
|
|
<el-input v-model="activeElement.name"></el-input> |
|
|
<el-input v-model="activeElement.name"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
<el-row v-if=" activeElement.isEdit==0"> |
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<el-form-item label="控件名称"> |
|
|
|
|
|
<el-input v-model="activeElement.title"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<el-form-item label="文本内容"> |
|
|
|
|
|
<el-input v-model="activeElement.value"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
|
import { getCodeTypeArray, getItemTypeArray } from '../../libs/props.js' |
|
|
import { getCodeTypeArray, getItemTypeArray } from '../../libs/props.js' |
|
|
|
|
|
|
|
|
|
|
|
//activeElement.value |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
imageName: '', |
|
|
|
|
|
value: '', |
|
|
codeTypeArray: getCodeTypeArray(), |
|
|
codeTypeArray: getCodeTypeArray(), |
|
|
itemTypeArray: getItemTypeArray(), |
|
|
itemTypeArray: getItemTypeArray(), |
|
|
|
|
|
url: 'http://192.168.1.83:9100/iamge/' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
watch :{ |
|
|
|
|
|
imageName:{ |
|
|
|
|
|
handler: function (newV, oldV) { |
|
|
|
|
|
this.activeElement.value = 'http://192.168.1.83:9100/iamge/'+this.imageName |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
activeElement:{ |
|
|
|
|
|
deep: true, |
|
|
|
|
|
handler: function (newV, oldV) { |
|
|
|
|
|
if (this.activeElement.isEdit == 1 && this.activeElement.type != 'braid-image'){ |
|
|
|
|
|
this.activeElement.name = this.activeElement.value.substring(1,this.activeElement.value.length-1) |
|
|
|
|
|
} |
|
|
|
|
|
if (this.activeElement.isEdit == 1 && this.activeElement.type == 'braid-image'){ |
|
|
|
|
|
this.activeElement.value = 'http://192.168.1.83:9100/iamge/'+this.activeElement.name |
|
|
|
|
|
} |
|
|
|
|
|
if (this.activeElement.isEdit == 0){ |
|
|
|
|
|
this.activeElement.defaultValue = this.activeElement.value |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
|