|
|
|
@ -165,7 +165,7 @@ |
|
|
|
:title="title == '1' ? '新增' : '修改'" |
|
|
|
:visible.sync="dialogVisible" |
|
|
|
width="75%" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:close-on-click-modal="false" |
|
|
|
> |
|
|
|
<el-form ref="form" :model="form" label-width="80px"> |
|
|
|
<el-row> |
|
|
|
@ -235,7 +235,6 @@ |
|
|
|
</el-dialog> |
|
|
|
<!-- 查看详情弹框 --> |
|
|
|
<el-dialog |
|
|
|
|
|
|
|
title="查询" |
|
|
|
:visible.sync="detailspopup" |
|
|
|
width="50%" |
|
|
|
@ -356,6 +355,7 @@ export default { |
|
|
|
displayName: "", |
|
|
|
creatorName: "", |
|
|
|
}, |
|
|
|
curRow: {}, |
|
|
|
dialogVisible: false, |
|
|
|
title: "1", //新增或者编辑标题 |
|
|
|
pages: { |
|
|
|
@ -398,8 +398,10 @@ export default { |
|
|
|
this.getlists(); |
|
|
|
}, |
|
|
|
rowick(row) { |
|
|
|
this.form = row; |
|
|
|
console.log(this.form); |
|
|
|
this.curRow = { ...row }; |
|
|
|
//this.form = row; |
|
|
|
|
|
|
|
console.log(this.curRow); |
|
|
|
}, |
|
|
|
handleSizeChange(val) { |
|
|
|
this.pages.MaxResultCount = val; |
|
|
|
@ -645,6 +647,7 @@ export default { |
|
|
|
}, |
|
|
|
//置低 |
|
|
|
setlow(row) { |
|
|
|
this.form = { ...this.curRow }; |
|
|
|
if (this.form.id == undefined) { |
|
|
|
this.$message.warning("请选择操作的数据"); |
|
|
|
} else { |
|
|
|
@ -656,6 +659,7 @@ export default { |
|
|
|
}, |
|
|
|
//置顶 |
|
|
|
topping(row) { |
|
|
|
this.form = { ...this.curRow }; |
|
|
|
if (this.form.id == undefined) { |
|
|
|
this.$message.warning("请选择操作的数据"); |
|
|
|
} else { |
|
|
|
@ -700,6 +704,7 @@ export default { |
|
|
|
}, |
|
|
|
//删除 |
|
|
|
confirmdeltion(row) { |
|
|
|
this.form = { ...this.curRow }; |
|
|
|
if (this.form.id == undefined) { |
|
|
|
this.$message.warning("请选择删除的数据"); |
|
|
|
} else { |
|
|
|
@ -730,6 +735,12 @@ export default { |
|
|
|
this.dialogVisible = true; |
|
|
|
this.form = {}; |
|
|
|
this.title = 1; |
|
|
|
// if (this.title == 1) { |
|
|
|
// this.form.displayName = ""; |
|
|
|
// this.form.id = ""; |
|
|
|
// this.form.creationTime = ""; |
|
|
|
// this.form.lastModificationTime = ""; |
|
|
|
// } |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.refinput.focus(); |
|
|
|
}); |
|
|
|
@ -737,11 +748,11 @@ export default { |
|
|
|
}, |
|
|
|
//编辑弹框 |
|
|
|
editandmofin(row) { |
|
|
|
if (this.form.id == undefined) { |
|
|
|
if (this.curRow.id == undefined) { |
|
|
|
this.$message.warning("请选择编辑的数据"); |
|
|
|
} else { |
|
|
|
this.dialogVisible = true; |
|
|
|
|
|
|
|
this.form = { ...this.curRow }; |
|
|
|
console.log(row); |
|
|
|
this.title = 2; |
|
|
|
guideid(this.form.id).then((res) => { |
|
|
|
|