|
@@ -17,6 +17,14 @@
|
|
|
<el-button type="text" size="mini" @click="lookData(row)" v-if="!row.operationIds">
|
|
|
查看
|
|
|
</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="row.operationId != undefined && row.operationId != null"
|
|
|
+ type="primary"
|
|
|
+ link
|
|
|
+ size="small"
|
|
|
+ @click="doEdit(row, index)"
|
|
|
+ ><i-ep-edit />编辑
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
</div>
|
|
@@ -69,6 +77,10 @@ const {
|
|
|
} = useCrud({
|
|
|
src: "/api/v1/testData/testData",
|
|
|
});
|
|
|
+const crudRefJSSJ=ref(null);
|
|
|
+const doEdit = (row, index) => {
|
|
|
+ crudRefJSSJ.value && crudRefJSSJ.value.rowEdit(row, index);
|
|
|
+};
|
|
|
const { dataList, createRow, updateRow, deleteRow, searchChange, resetChange } =
|
|
|
Methords; //增删改查
|
|
|
const { selectionChange, multipleDelete } = Methords; //选中和批量删除事件
|
|
@@ -89,7 +101,6 @@ defineExpose({ refreshTra });
|
|
|
onMounted(() => {
|
|
|
if (userStore.user.userId === 10000) {
|
|
|
option.value.menu = true;
|
|
|
- option.value.editBtn = true;
|
|
|
}
|
|
|
});
|
|
|
|