|
@@ -33,17 +33,17 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="起点实体类ID" prop="startId">
|
|
|
+ <el-form-item label="起点实体类ID" prop="startID">
|
|
|
<el-input
|
|
|
- v-model="queryParams.startId"
|
|
|
+ v-model="queryParams.startID"
|
|
|
placeholder="请输入起点实体类ID"
|
|
|
clearable
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="终点实体类ID" prop="endId">
|
|
|
+ <el-form-item label="终点实体类ID" prop="endID">
|
|
|
<el-input
|
|
|
- v-model="queryParams.endId"
|
|
|
+ v-model="queryParams.endID"
|
|
|
placeholder="请输入终点实体类ID"
|
|
|
clearable
|
|
|
@keyup.enter.native="handleQuery"
|
|
@@ -103,14 +103,14 @@
|
|
|
|
|
|
<el-table v-loading="loading" :data="classRelationList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
- <el-table-column label="关系id" align="center" prop="relClsId" />
|
|
|
+ <el-table-column label="关系id" align="center" prop="relClsID" />
|
|
|
<el-table-column label="关系类名称" align="center" prop="relClsName" />
|
|
|
<el-table-column label="关系类描述" align="center" prop="relClsMemo" />
|
|
|
<el-table-column label="关系类背景颜色" align="center" prop="backGroundColor" />
|
|
|
<el-table-column label="关系类类型" align="center" prop="clsType" />
|
|
|
<el-table-column label="是否模板" align="center" prop="isModel" />
|
|
|
- <el-table-column label="起点实体类ID" align="center" prop="startId" />
|
|
|
- <el-table-column label="终点实体类ID" align="center" prop="endId" />
|
|
|
+ <el-table-column label="起点实体类ID" align="center" prop="startID" />
|
|
|
+ <el-table-column label="终点实体类ID" align="center" prop="endID" />
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
@@ -154,11 +154,11 @@
|
|
|
<el-form-item label="是否模板" prop="isModel">
|
|
|
<el-input v-model="form.isModel" placeholder="请输入是否模板" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="起点实体类ID" prop="startId">
|
|
|
- <el-input v-model="form.startId" placeholder="请输入起点实体类ID" />
|
|
|
+ <el-form-item label="起点实体类ID" prop="startID">
|
|
|
+ <el-input v-model="form.startID" placeholder="请输入起点实体类ID" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="终点实体类ID" prop="endId">
|
|
|
- <el-input v-model="form.endId" placeholder="请输入终点实体类ID" />
|
|
|
+ <el-form-item label="终点实体类ID" prop="endID">
|
|
|
+ <el-input v-model="form.endID" placeholder="请输入终点实体类ID" />
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
@@ -203,17 +203,17 @@ export default {
|
|
|
backGroundColor: null,
|
|
|
clsType: null,
|
|
|
isModel: null,
|
|
|
- startId: null,
|
|
|
- endId: null,
|
|
|
+ startID: null,
|
|
|
+ endID: null,
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
- startId: [
|
|
|
+ startID: [
|
|
|
{ required: true, message: "起点实体类ID不能为空", trigger: "blur" }
|
|
|
],
|
|
|
- endId: [
|
|
|
+ endID: [
|
|
|
{ required: true, message: "终点实体类ID不能为空", trigger: "blur" }
|
|
|
],
|
|
|
}
|
|
@@ -240,14 +240,14 @@ export default {
|
|
|
// 表单重置
|
|
|
reset() {
|
|
|
this.form = {
|
|
|
- relClsId: null,
|
|
|
+ relClsID: null,
|
|
|
relClsName: null,
|
|
|
relClsMemo: null,
|
|
|
backGroundColor: null,
|
|
|
clsType: null,
|
|
|
isModel: null,
|
|
|
- startId: null,
|
|
|
- endId: null,
|
|
|
+ startID: null,
|
|
|
+ endID: null,
|
|
|
createBy: null,
|
|
|
createTime: null,
|
|
|
updateBy: null,
|
|
@@ -267,7 +267,7 @@ export default {
|
|
|
},
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
- this.ids = selection.map(item => item.relClsId)
|
|
|
+ this.ids = selection.map(item => item.relClsID)
|
|
|
this.single = selection.length!==1
|
|
|
this.multiple = !selection.length
|
|
|
},
|
|
@@ -280,8 +280,8 @@ export default {
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
|
- const relClsId = row.relClsId || this.ids
|
|
|
- getClassRelation(relClsId).then(response => {
|
|
|
+ const relClsID = row.relClsID || this.ids
|
|
|
+ getClassRelation(relClsID).then(response => {
|
|
|
this.form = response.data;
|
|
|
this.open = true;
|
|
|
this.title = "修改实体类关系管理";
|
|
@@ -291,7 +291,7 @@ export default {
|
|
|
submitForm() {
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
- if (this.form.relClsId != null) {
|
|
|
+ if (this.form.relClsID != null) {
|
|
|
updateClassRelation(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
@@ -309,9 +309,9 @@ export default {
|
|
|
},
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
|
- const relClsIds = row.relClsId || this.ids;
|
|
|
- this.$modal.confirm('是否确认删除实体类关系管理编号为"' + relClsIds + '"的数据项?').then(function() {
|
|
|
- return delClassRelation(relClsIds);
|
|
|
+ const relClsIDs = row.relClsID || this.ids;
|
|
|
+ this.$modal.confirm('是否确认删除实体类关系管理编号为"' + relClsIDs + '"的数据项?').then(function() {
|
|
|
+ return delClassRelation(relClsIDs);
|
|
|
}).then(() => {
|
|
|
this.getList();
|
|
|
this.$modal.msgSuccess("删除成功");
|