页面修改

main
mo 1 year ago
parent 6a31fdc589
commit e81a6aaeb0

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

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

Loading…
Cancel
Save