页面修改

main
mo 1 year ago
parent 6a31fdc589
commit e81a6aaeb0

@ -204,8 +204,17 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="handleView(scope.row)"
>查看
</el-button>
<el-button
size="mini"
type="text"
@ -407,7 +416,9 @@
</el-row> -->
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button type="primary" @click="submitForm" v-if="optType != 'view'"
> </el-button
>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
@ -442,6 +453,7 @@ export default {
},
//
loading: true,
optType: undefined,
//
exportLoading: false,
//
@ -607,12 +619,25 @@ export default {
handleAdd() {
this.reset();
this.open = true;
this.optType = "add";
this.title = "添加资产档案";
},
/** 查看按钮操作 */
handleView(row) {
this.reset();
this.optType = "view";
const id = row.id;
getElectronicAssets(id).then((response) => {
this.form = response.data;
this.open = true;
this.title = "查看资产档案";
});
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id;
this.optType = "edit";
getElectronicAssets(id).then((response) => {
this.form = response.data;
this.open = true;

@ -348,9 +348,7 @@
</el-form-item>
</el-col>
</el-row>
<el-form-item label="咨询内容 ">
<editor v-model="form.consultationContent" :min-height="192" />
</el-form-item>
<el-row>
<el-col :span="8">
<el-form-item label="咨询人 " prop="consultorName">
@ -456,6 +454,9 @@
</el-form-item>
</el-col>
</el-row>
<el-form-item label="咨询内容 ">
<editor v-model="form.consultationContent" :min-height="192" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm" v-if="optType != 'view'"
@ -489,6 +490,11 @@ export default {
},
data() {
return {
propName: {
label: "pName",
value: "pId",
multiple: false,
},
//
loading: true,
optType: undefined,

Loading…
Cancel
Save