使用产品:iserver 11c
问题详细描述:调用new L.supermap.EditFeaturesParameters接口进行要素修改后,打开原始数据的smwu文件,提示无法打开数据
调用代码如下:
deleteGridman(){
//删除请求
this.form.name=''
//将其中一个属性置空
this.QueryGridData.properties.GRIDMAN =''
var editFeatureParams = new L.supermap.EditFeaturesParameters({
features: this.QueryGridData,
dataSourceName: this.GridConfigList[0].children[0].title.split(":")[0],
dataSetName: this.GridConfigList[0].children[0].title.split(":")[1],
editType: "UPDATE",
returnContent: true,
});
let url = this.GridDSurl; //数据源iserver服务地址
new L.supermap.FeatureService(url).editFeatures(
editFeatureParams,
function (serviceResult) {
if (serviceResult.result.succeed) {
_this.$message({
message: "网格员删除成功",
type: "success",
});
console.log("删除成功");
} else {
_this.$message.error("网格员删除失败,请联系管理员");
}
}
);
},