Commit 4477b0c0 by ‘july-fu’

fix: 架构元素关系管理调整新增编辑查看内容显示区分

1 parent a567c961
Showing with 18 additions and 66 deletions
......@@ -232,83 +232,35 @@
</div>
</div>
</div> -->
<!-- <div
style="text-align: right; margin: 20px 0 10px 0"
v-if="title == '编辑元素关系'"
>
<el-button type="primary" size="mini" @click="openDicyDialog"
>新增</el-button
>
<div style="text-align: right; margin: 20px 0 10px 0" v-if="title == '编辑元素关系' || title == '查看元素关系'">
<el-button type="primary" size="mini" @click="openDicyDialog" :disabled="title == '查看元素关系'">新增</el-button>
</div>
<el-table
height="300"
:data="tableData2"
stripe
border
v-if="title == '编辑元素关系'"
>
<el-table-column
type="index"
label="序号"
width="80"
align="center"
></el-table-column>
<el-table-column
prop="fieldName"
label="字段名"
align="center"
></el-table-column>
<el-table-column
prop="cnName"
label="中文名"
align="center"
></el-table-column>
<el-table-column
prop="displayOrder"
label="排序"
align="center"
></el-table-column>
<el-table-column
prop="contentLength"
label="长度"
align="center"
></el-table-column>
<el-table-column
prop="controlType"
label="控件"
align="center"
></el-table-column>
<el-table height="300" :data="tableData2" stripe border v-if="title == '编辑元素关系' || title == '查看元素关系'">
<el-table-column type="index" label="序号" width="80" align="center"></el-table-column>
<el-table-column prop="fieldName" label="字段名" align="center"></el-table-column>
<el-table-column prop="cnName" label="中文名" align="center"></el-table-column>
<el-table-column prop="displayOrder" label="排序" align="center"></el-table-column>
<el-table-column prop="contentLength" label="长度" align="center"></el-table-column>
<el-table-column prop="controlType" label="控件" align="center"></el-table-column>
<el-table-column label="操作" width="260" align="center">
<template slot-scope="scope">
<div
style="
<div style="
display: flex;
align-items: center;
justify-content: center;
"
>
<el-button
icon="el-icon-edit"
type="primary"
size="mini"
@click="edit_dicy(scope.row)"
>编辑</el-button
>
<el-button
class="shanChu_btn"
icon="el-icon-delete"
size="mini"
@click="delete_dicy(scope.row)"
>删除</el-button
>
">
<el-button icon="el-icon-edit" :disabled="title !== '编辑元素关系'" type="primary" size="mini"
@click="edit_dicy(scope.row)">编辑</el-button>
<el-button class="shanChu_btn" :disabled="title !== '编辑元素关系'" icon="el-icon-delete" size="mini"
@click="delete_dicy(scope.row)">删除</el-button>
</div>
</template>
</el-table-column>
</el-table> -->
</el-table>
</div>
<span slot="footer" class="dialog-footer">
<el-button class="greenButton" @click="operate('pushAdd')">发布</el-button>
<el-button class="greenButton" @click="operate('create')">保存</el-button>
<el-button class="greenButton" :disabled="title == '查看元素关系'" @click="operate('pushAdd')">发布</el-button>
<el-button class="greenButton" :disabled="title == '查看元素关系'" @click="operate('create')">保存</el-button>
<el-button @click="add_dialog = false">取消</el-button>
</span>
</el-dialog>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!