图形描述功能

This commit is contained in:
446052889@qq.com 2022-07-01 00:21:08 +08:00
parent c8d516b6b0
commit f188649688

View File

@ -54,6 +54,14 @@
prop="id"
label="ID">
</el-table-column>
<el-table-column
prop="desc"
label="描述">
<template slot-scope="scope">
<el-input v-model="scope.row.desc" placeholder="请输入内容" size="small" maxlength="50"
@change="updateMethodObjectDesc(scope.row.id, scope.row.desc)"></el-input>
</template>
</el-table-column>
<el-table-column
prop="modelName"
label="所属模型"
@ -78,10 +86,12 @@
<div class="operate-icon-display" style="text-align: center;height: 30px;line-height: 30px;">
<p class="text-second-color">
<el-tooltip v-if="scope.row.showShapeConfig" content="数据显示规则配置" placement="bottom" :hide-after=2000>
<i style="display: inline-block;cursor: pointer;margin-right: 10px;" class="iconfont" @click="handleShapeAnchorConfig(scope.row.id)">&#xe61c;</i>
<i style="display: inline-block;cursor: pointer;margin-right: 10px;" class="iconfont"
@click="handleShapeAnchorConfig(scope.row.id)">&#xe61c;</i>
</el-tooltip>
<el-tooltip content="形状属性配置" placement="bottom" :hide-after=2000>
<i style="display: inline-block;cursor: pointer;position: relative;font-size: 23px;top: 3px;" class="iconfont" @click="handleShapeAttrConfig(scope.row.id)">&#xe632;</i>
<i style="display: inline-block;cursor: pointer;position: relative;font-size: 23px;top: 3px;"
class="iconfont" @click="handleShapeAttrConfig(scope.row.id)">&#xe632;</i>
</el-tooltip>
</p>
</div>
@ -100,14 +110,17 @@
<div v-loading="drawer.loading">
<div id="drawerBody" style="overflow-y: auto;">
<!-- 扩展属性 -->
<div v-for="item in drawer.data" class="attr-row" @click="(item.isUse ? item.isUse = false : item.isUse = true)">
<div v-for="item in drawer.data" class="attr-row"
@click="(item.isUse ? item.isUse = false : item.isUse = true)">
<span>{{ item.name }}<span class="text-second-color" style="font-size=12px;">{{ item.id }}</span></span>
<i v-if="item.isUse" class="awsui-iconfont" style="float: right;color: #4E7FF9;">&#xe639;</i>
</div>
</div>
<div class="drawer-footer" :style="{'background-color': '#F2F2F2', height: drawer.footerHeight}">
<div id="drawerFooter" style="float: right;position: relative;top: 9px;">
<awsui-button size="large" style="width: 80px;" class="button-general-color" type="primary" :disabled="drawer.buttonDisabled" @click="saveAttrConfig">保存</awsui-button>
<awsui-button size="large" style="width: 80px;" class="button-general-color" type="primary"
:disabled="drawer.buttonDisabled" @click="saveAttrConfig">保存
</awsui-button>
<awsui-button size="large" style="width: 80px;" @click="closeDrawer">取消</awsui-button>
</div>
</div>
@ -375,6 +388,29 @@
}).catch(error => {
console.log(error);
})
},
updateMethodObjectDesc(shapeName, desc) {
const that = this;
const params = {
url: 'jd',
data: {
cmd: 'com.actionsoft.apps.coe.pal_pl_manage_method_object_desc_save',
shapeName: shapeName,
desc: desc,
methodId: that.methodId
}
};
//
awsuiAxios.post(params).then(function (ro) {
that.loading = false;
if (ro.result == 'ok') {
that.$message({message: '更新成功', type: 'success'});
} else {
that.$message.error(ro.msg);
}
}).catch(error => {
console.log(error);
})
}
},
computed: {
@ -398,6 +434,7 @@
border-bottom: 1px solid #f2f2f2;
font-size: 16px;
}
.icon-div-repository {
border-radius: 50%;
margin-left: 15px;
@ -408,12 +445,14 @@
line-height: 30px;
vertical-align: middle;
}
.icon-dynamic-repository {
color: white;
font-size: 16px;
/*position: relative;*/
/*top: -1px;*/
}
.div-repository-title {
display: inline-block;
position: relative;
@ -423,15 +462,18 @@
line-height: 30px;
vertical-align: middle;
}
.attr-row {
padding: 10px 20px;
height: 35px;
line-height: 35px;
vertical-align: middle;
}
.attr-row:hover {
background-color: #f2f2f2;
}
.header-div {
width: 100%;
height: 100%;
@ -439,6 +481,7 @@
line-height: 43px;
vertical-align: middle;
}
.header-method-id {
display: inline-block;
font-size: 12px;
@ -446,6 +489,7 @@
position: relative;
left: 0px;
}
.header-method-attr-config-icon {
display: inline-block;
height: 30px;