|
|
@ -25,18 +25,18 @@ |
|
|
|
<el-button |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
@click="preview(scope.row.id,...scope.row)" |
|
|
|
@click="preview(scope.row.id,scope.row)" |
|
|
|
>{{ $t('preview') }}</el-button> |
|
|
|
<el-button |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
@click="addOrUpdateHandle(scope.row.id,...scope.row)" |
|
|
|
@click="addOrUpdateHandle(scope.row.id,scope.row)" |
|
|
|
>{{ $t('update') }}</el-button> |
|
|
|
<el-button |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
style="color:red" |
|
|
|
@click="deleteHandle(scope.row.id)" |
|
|
|
@click="deleteCrfItem(scope.row.id)" |
|
|
|
>{{ $t('delete') }}</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -77,9 +77,9 @@ export default { |
|
|
|
return { |
|
|
|
previewVisible: false, |
|
|
|
mixinViewModuleOptions: { |
|
|
|
getDataListURL: '/crf/page', |
|
|
|
getDataListURL: '/project/crf/template/page', |
|
|
|
getDataListIsPage: true, |
|
|
|
deleteURL: '/crf' |
|
|
|
deleteURL: '/project/crf/template' |
|
|
|
}, |
|
|
|
dataForm: { |
|
|
|
projectId: window.SITE_CONFIG['projectId'] |
|
|
@ -93,6 +93,14 @@ export default { |
|
|
|
this.$refs.preview.id = id |
|
|
|
this.$refs.preview.init() |
|
|
|
}) |
|
|
|
}, |
|
|
|
deleteCrfItem(id) { |
|
|
|
this.$confirm('确认删除吗?').then(() => { |
|
|
|
this.$http.delete('/project/crf/template', { params: { id }}).then(() => { |
|
|
|
this.$message.success('删除成功') |
|
|
|
this.getDataList() |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|