|
@@ -44,11 +44,10 @@
|
|
|
<el-button link type="primary" @click="toShowPDF(row)">
|
|
|
预览
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- @click="deleteRecord(row, index, done)"
|
|
|
- text
|
|
|
- icon="el-icon-delete"
|
|
|
- type="primary"
|
|
|
+ <el-button @click="doEdit(row, index)" text type="primary"
|
|
|
+ >编辑</el-button
|
|
|
+ >
|
|
|
+ <el-button @click="deleteRecord(row, index, done)" text type="danger"
|
|
|
>删除</el-button
|
|
|
>
|
|
|
</template>
|
|
@@ -347,6 +346,13 @@ option.value = Object.assign(option.value, {
|
|
|
],
|
|
|
});
|
|
|
|
|
|
+const doEdit = (row, index) => {
|
|
|
+ pdfUrlList.value = [];
|
|
|
+ srcList.value = [];
|
|
|
+ fileNameList.value = [];
|
|
|
+ crudRef.value && crudRef.value.rowEdit(row, index);
|
|
|
+};
|
|
|
+
|
|
|
const deleteRecord = (row, index, done) => {
|
|
|
deleteRow(row, index, done);
|
|
|
dataEditList();
|